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.)
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.
Code:
$ sudo vi /etc/apt/sources.list
Uncomment the following line(s):
Default source.list.
Code:
# deb http://us.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
Uncommented.
Code:
deb http://us.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
Update system.
Code:
$ sudo apt-get update
Install java6.
Code:
$ sudo apt-get install sun-java6-bin
Check java versions on your system.
Install java6 If you don't have java already installed.
Code:
$ sudo apt-get install sun-java6-bin
Configure Java.
Code:
$ sudo update-alternatives --config java
Select java6 for your default.
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
Login to 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;
Download Openfire to a directory. I chose the /opt/ directory.
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 output.
Code:
# vim /opt/openfire/bin/openfire
Modify openfire script with the following: >../logs/SDTOUT.log 2>../logs/SDTERR.log into /opt/openfire/bin/openfire
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 &
Now lets start Openfire (xmpp-server). Restart or run the following command to start Openfire:
Code:
# /opt/openfire/bin/openfire start
Now setup the rest of Openfire through your browser.
http://localhost:9090
Bookmarks