Installing OpenFire on CentOS 5

Installing OpenFire on CentOS 5

Download and install the openfire rpm 3.6.3 (as of this writing).

#mkdir downloads

#cd downloads


# 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
Enter password:
mysql -> create database openfire;
mysql -> GRANT ALL ON openfire.* TO openfire@localhost 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
Enter password:

Reload the database:

# mysqladmin -u root -p reload
Enter password:

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.

That’s all there is to it!

2 thoughts on “Installing OpenFire on CentOS 5

  1. Mustafa says:

    but a small issue. when i run command ./ it starts the server but if i somehow stop it or disconnect putty, it gets stopped. so when i again run this command, it again works and spark gets connected to openfire server perfectly again but again disconnects if i disconnect the putty.

    i cant keep it on, i need to do some other work also. cant it run as background process?
    any suggestion please? 🙁

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.