Installing openfire
http://www.igniterealtime.org/projec...fire/index.jsp
Install Ubuntu 6.06 LTS LAMP - Recommended sites to setup your LAMP server:
https://help.ubuntu.com/community/ApacheMySQLPHP
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.)
Java 6 is available for 6.06 LTS via the “backports” repository. If
this is a fresh install of Ubuntu, you will need to edit your
SOURCES.LIST to enable this repository.
$ sudo vi /etc/apt/sources.list
Uncomment the following line(s):
-
deb Index of /ubuntu dapper-backports main restricted universe multiverse*
-
deb-src Index of /ubuntu dapper-backports main restricted universe multiverse*
$ sudo apt-get update
$ sudo apt-get install sun-java6-bin
- Thanks for the edit SkydiverFL
$ java -version
Install java6 If you don’t have java already installed.
$ sudo apt-get install sun-java6-bin
Set java6 as your default.
$ 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
$ su
Login to MySQL
- mysql*
or the following if you setup a user and a password.
- mysql -u USERNAME -p*
Create the database in MySQL
-
mysql> CREATE DATABASE openfire;*
-
mysql> exit*
If you need more help setting up and/or configuring MySQL I recommend these two sites:
http://www.howtoforge.com/perfect_setup_ubuntu_6.06_p4
http://stanton-finley.net/fedora_core_5_installation_notes.html#MySQL
Download Openfire to a directory. I chose the /opt/ directory.
- cd /opt*
Download File or go here to get the most recent: Ignite Realtime: Downloads
-
wget http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_3_3_2.t ar.gz*
-
mv downloadServlet?filename=openfire%2Fopenfire_3_3_2.tar.gz openfire_3_3_2.tar.gz*
Extract the files.
- tar -zxvf openfire_3_3_2.tar.gz*
Create a symlink
- ln -s /opt/openfire/bin/openfire /etc/init.d/*
Make the symlink executible
- chmod +x /etc/init.d/openfire*
Add openfire to our startup.
- update-rc.d openfire defaults*
Fix the nohup output.
- vim /opt/openfire/bin/openfire*
Modify openfire script with the following: >…/logs/SDTOUT.log 2>…/logs/SDTERR.log into
ORIGINAL:
Code:
-----
nohup “$app_java_home/bin/java” -server -Dinstall4j.jvmDir=“$app_java_home” -Dexe4j.moduleName=“$prg_dir/$progname” $INSTALL4J_ADD_VM_PARAMS -classpath “$local_classpath” com.install4j.runtime.Launcher start org.jivesoftware.openfire.starter.ServerStarter false false “$prg_dir/…/logs/stderror.log” “$prg_dir/…/logs/stdoutt.log” true true false “” true true 0 0 “” 20 20 “Arial” “0,0,0” 8 500 “version 3.3.2” 20 40 “Arial” “0,0,0” 8 500 -1 -DopenfireHome=$app_home -Dopenfire.lib.dir=$app_home/lib &
-----
Goto line 262 of /opt/openfire/bin/openfire and insert the following at the end of nohup … with >…/logs/STDOUT.log 2>…/logs/STDERR.log
MODIFIED:
Code:
-----
nohup “$app_java_home/bin/java” -server -Dinstall4j.jvmDir=“$app_java_home” -Dexe4j.moduleName=“$prg_dir/$progname” $INSTALL4J_ADD_VM_PARAMS -classpath “$local_classpath” com.install4j.runtime.Launcher start org.jivesoftware.openfire.starter.ServerStarter false false “$prg_dir/…/logs/stderror.log” “$prg_dir/…/logs/stdoutt.log” true true false “” true true 0 0 “” 20 20 “Arial” “0,0,0” 8 500 “version 3.3.2” 20 40 “Arial” “0,0,0” 8 500 -1 -DopenfireHome=$app_home -Dopenfire.lib.dir=$app_home/lib >…/logs/STDOUT.log 2>…/logs/STDERR.log &
-----
Restart or run the following command to start Openfire
- /opt/openfire/bin/openfire start*
Now setup the rest of Openfire through your browser.