Installing OpenFire on CentOS 5
Download and install the openfire rpm 3.6.3 (as of this writing).
# rpm -ivh openfire-3.6.3-1.i386.rpm
Openfire has an embedded database that you can use in case you don’t have MySQL installed, I prefer using MySQL though, I also tried using the embedded database, works just fine too. Create the database using mysql command line.
a. database name = openfire
b. database user = openfire
c. dbpassword = password
$ mysql -u root -p
mysql -> create database openfire;
mysql -> GRANT ALL ON openfire.* TO [email protected] IDENTIFIED BY "password";
q <-- exit mysql
Go to openfire’s directory
# cd /opt/openfire/resources/database
Import the sql file to openfire database
# cat openfire_mysql.sql | mysql -u root -p openfire
Reload the database:
# mysqladmin -u root -p reload
We’re almost done, now start openfire.
# cd /opt/openfire/bin
Then launch your browser (Firefox) and enter this at the url box -> https://localhost:9091 then follow the procedure on screen and complete the installation process.
Verify English is selected and click Continue
Click Continue for the Server Settings
Verify Standard Database Connection is chosen and click Continue
Set the following Database Settings (then click Continue):
Database Driver Presets: MySQL
Database URL: jdbc:mysql://localhost:3306/openfire
Username: openfire or root
Password: password ( you need have strong password )
Launch Gaim/Pidgin and create/register an account with the server, to send a message to user1, don’t forget to include the server hostname e.g. [email protected]
That’s all there is to it!