Howto: Install Openfire XMPP Jabber Server on Ubuntu

Take control! Jabber technology enables you to run your own IM service, whether you want to host a public server or keep your messages safely behind the firewall. Thousands of organizations all over the world have freed themselves from legacy IM providers by running their own Jabber servers. Why not join them? Here's how to get started:



Installing openfire

http://www.igniterealtime.org/projec...fire/index.jsp

Install Ubuntu 6.06 LTS LAMP
Recommended sites to setup your LAMP server:
http://www.howtoforge.com/ubuntu_lamp_for_newbies
https://help.ubuntu.com/community/Ap...&redirect=LAMP

Check which version of Java you are running. Note the following: the .tar.gz build does not contain a bundled Java runtime (JRE). Therefore, you must have JDK or JRE 1.5.0 (Java 5) or later installed on your system. You can check your java version by typing "java -version" at the command line and (if necessary) upgrade your Java installation by visiting http://java.sun.com.)
Code:

$ java -version
Install java6 If you don't have java already installed.
Code:

$ sudo apt-get install sun-java6-bin
Set java6 as your default.
Code:

$ sudo update-alternatives --config java
select /usr/lib/jvm/java-6-sun/jre/bin/java

To create a database for openfire MySQL, Oracle, Microsoft SQLServer, PostgreSQL, IBM DB2, or HSQLDB can be used. I chose MySQL since it was installed with my LAMP setup.

Now use phpmyadmin or the terminal to create the database. The following is through the terminal.

Login as root
Code:

$ su
Login to MySQL
Code:

# mysql
or the following if you setup a user and a password.
Code:

# mysql -u USERNAME -p
Create the database in MySQL
Code:

# mysql> CREATE DATABASE openfire;
Code:

# mysql> exit
Download Openfire to a directory. I chose the /opt/ directory.
Code:

# cd /opt
Download File or go here to get the most recent: http://www.igniterealtime.org/downlo...x.jsp#openfire
Code:

# wget http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_3_3_2.tar.gz
Code:

# mv downloadServlet\?filename\=openfire%2Fopenfire_3_3_2.tar.gz openfire_3_3_2.tar.gz
Extract the files.
Code:

# tar -zxvf openfire_3_3_2.tar.gz
Create a symlink
Code:

# ln -s /opt/openfire/bin/openfire /etc/init.d/
Make the symlink executible
Code:

# chmod +x /etc/init.d/openfire
Add openfire to our startup.
Code:

# update-rc.d openfire defaults
Fix the nohup error.
Run the following command or you will get the following error: nohup: appending output to `nohup.out'
Code:

# nohup ls >ls.log 2>&1 &
Now setup the rest of Openfire through your browser.
http://localhost:9090

Clicky Web Analytics