How to Install Openfire in Debian Etch

What is Openfire

Openfire formerly known as Wildfire is a popular jabber/XMPP server written in Java and dual-licensed under both a proprietary license and the GNU General Public License. Openfire is easy to setup and administer, administration is done through a web interface, moreover Openfire offers numerous features, there are also several plugins available in Openfire to extend its functionalities. You can check the list of its features here and plugins here.

Installing Openfire

To install Openfire, you must have a domain name either local or public. If you are using Openfire in your local LAN, you can use a local domain. Please check this tutorial about setting up your own local DNS server.

First you need to install Sun Java Runtime Environment (JRE).

apt-get install sun-java5-bin

Set java 1.5 as your default jre

update-java-alternatives -s java-1.5.0-sun

Login to your mysql server

mysql -u root -p

and create the database for your Openfire server

GRANT ALL ON openfire.* TO openfireadmin@localhost IDENTIFIED BY 'admin';

Download the latest version of Openfire from its website and move to /opt directory.

mv openfire_3_5_2.tar.gz /opt

Extract the files and create a symlink of openfire script to /etc/init.d/

tar -zxvf openfire_3_5_2.tar.gz
ln -s /opt/openfire/bin/openfire /etc/init.d/

Make the symlink executable and add to startup

chmod +x /etc/init.d/openfire
update-rc.d defaults openfire

Start the Openfire server

/etc/init.d/openfire start

Fix the nohup: appending output to `nohup.out' error.

nohup ls >ls.log 2>&1 &

Then open your browser and point to http://localhost:9090 and start the Openfire setup.

Openfire install 1

The installation will only take a few steps, its easy and straightforward. First thing you need to do is to choose your preferred language. Select what language you will be using and click Continue.

Openfire install 2

Next is the Server Settings, normally, it will automatically detect your domain settings etc. Double check and replace it if the settings are incorrect, otherwise proceed to the next step.

Openfire install 3

In the Database Settings just select the Standard Database Connection and click Continue.

Openfire install 4

Select MySQL in "Database Driver Presets" and change the "Database URL" jdbc:mysql://[host]:3306/[database-name],User, and Password to these values:

User: openfireadmin
Password: admin

Openfire install 5

Click Continue...

Openfire install 6

Enter your email address and password.

Openfire install 7

Well done... The installation is finished.

Openfire install 8

Login using "username" admin and the password is the one you entered before.

Openfire install 9

After you login, you can configure and install some plugins to your Openfire server to extend its functionality. You can start using your Openfire server. Have fun...