Page 1 of 3 123 LastLast
Results 1 to 10 of 29

Thread: Howto: Openfire - XMPP (also called Jabber) Server

  1. #1
    Join Date
    Feb 2006
    Location
    U.S.A & Brazil
    Beans
    180
    Distro
    Ubuntu 12.04 Precise Pangolin

    Howto: Openfire - XMPP (also called Jabber) Server

    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.
    Code:
    $ java -version
    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
    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 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
    Last edited by handband2; September 18th, 2007 at 09:51 PM.

  2. #2
    Join Date
    Aug 2007
    Beans
    2

    Re: Howto: Openfire - XMPP (also called Jabber) Server

    Great tutorial.

    I have a question, though. I manage the IT department of a small company (in fact I am the department ). Until some months ago we were an 100% Microsoft based company, exception made for the creative department that uses Macintosh.

    My boss asked me to put together a small intranet Wiki and I saw the perfect opportunity to give Linux a try (I hate IIS). I installed Ubuntu, Apache, MySQL and PHP on an old machine, gave it a static IP and it has been functioning since then as an internal Web Server.

    Thus I'm loving the experience and the server has had absolutely no problem since then, there are still many co-workers of mine reluctant to accept GNU\Linux as a possible alternative to the Microsoft monopoly (which represents to us an massive investment, just in software licensing).

    Today it was given me the chance to, once more, prove the value of this kind of operating system: it was asked me to start an internal instant messaging server. I chose to create the IM server in that same Ubuntu machine and I went for an open-source solution: OpenFire (once again there are many people relutant to accept this solution as a good solution: there's a mentality that if it's free, it can't be that good).

    Because I'm new to this world, I'm having serious difficulties. I've found no relevant documentation in the Ignite Realtime foruns, and I started looking in the Ubuntu Foruns.

    I followed this tutorial (in fact it's very similar to the instructions given by the software creators) and successfully completed all steps, except the last one.

    I can't open the OpenFire setup page: I assume that it's because I'm running Apache. When I type the give URL, it just says that Firefox couldn't connect to the server...

    Help would me much appreciated. I've tried to search both Google and the Forum in several different ways, but I found nothing relevant. Once again I'm a complete n00b, so simple language and an explanation to what I'm in fact doing would also be much appreciated.

  3. #3
    Join Date
    Feb 2006
    Location
    U.S.A & Brazil
    Beans
    180
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Howto: Openfire - XMPP (also called Jabber) Server

    poractiv3,

    First lets see if OpenFire (xmpp-server) is running.

    Code:
    $ sudo netstat -tap
    You should find the following in the outputted list:
    Code:
    tcp6       0      0 *:xmpp-server           *:*                     LISTEN     3729/java
    More than likely your PID (the 3729 number) will be different.

    If nothing shows up then that means Openfire is not running. If that is the case restart the server or just start up Openfire with the following command:
    Code:
    $ sudo /opt/openfire/bin/openfire start
    I hope that helps....
    Last edited by handband2; August 21st, 2007 at 07:53 PM.

  4. #4
    Join Date
    Aug 2007
    Beans
    2

    Re: Howto: Openfire - XMPP (also called Jabber) Server

    Oops!

    In fact it wasn't running... Thanks for your time and help. Problem solved.

    I'm starting out, sorry for the newbie question.

    Regards

  5. #5
    Join Date
    Feb 2006
    Location
    U.S.A & Brazil
    Beans
    180
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Howto: Openfire - XMPP (also called Jabber) Server

    Quote Originally Posted by proactiv3 View Post
    Oops!

    In fact it wasn't running... Thanks for your time and help. Problem solved.

    I'm starting out, sorry for the newbie question.

    Regards
    I'm glad you got it working. It wasn't a newbie question. I forgot to add how to start up the xmpp server. I'll update the howto.

  6. #6
    Join Date
    Aug 2007
    Location
    Colorado
    Beans
    34
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Howto: Openfire - XMPP (also called Jabber) Server

    Anyone know how to get to the admin page other than using http://localhost:9090 I have this on my Ubuntu server that isn't connected to a monitor so I use Putty to get to it and I did try links to get to it but that did get me to the pages but it was kind of hard to read and so i am trying to find a way to get to the page other than using http://localhost:9090
    I did try IP of that box (192.168.1.5:9090) but it didn't work.

  7. #7
    Join Date
    Aug 2007
    Location
    Huntsville AL
    Beans
    6
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Howto: Openfire - XMPP (also called Jabber) Server

    when I do this command:
    Code:
    nohup ls >ls.log 2>&1 &
    I get this output:
    Code:
    -bash: ls.log: Permission denied
    
    [3]-  Exit 1                  hup ls > ls.log 2>&1
    how can i fix it?

    also, the nohup.out file has alot of these in it:
    Code:
    java.io.FileNotFoundException: ../lib/jasper-runtime.jar (Permission denied)
    please halp!

  8. #8
    Join Date
    Jan 2005
    Beans
    43
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Howto: Openfire - XMPP (also called Jabber) Server

    cdrappier:

    ensure that you are running the commands through sudo.

  9. #9
    Join Date
    Feb 2006
    Location
    Kansas City, MO
    Beans
    1,106
    Distro
    Ubuntu

    Re: Howto: Openfire - XMPP (also called Jabber) Server

    I've had a very rough time with the stability of the Openfire server I've set up recently. I've installed it on two different Ubuntu (7.04) machines and both have very similar issues. The first time a client tries to connect, they get either the invalid username/password error message or the server unreachable message. Usually about two minutes later, the client is able to connect. This wouldn't be so bad, but it seems to happen repeatedly even after the first login, but it's more random thereafter.

    Could this be an Ubuntu compatibility issue? I don't think it's a configuration issue or even an openfire one simply because I've used other jabber server software and I experience the same problems.

    It's really hard to reproduce the problem after the first login, but it happens enough to not use this in production.

    Thank you for your help!

  10. #10
    Join Date
    Apr 2007
    Location
    Calooca City, Philippines
    Beans
    177
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Howto: Openfire - XMPP (also called Jabber) Server

    how can i re-setup the server to use mysql database? currently it is using HSQL Database Engine 1.8.0

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •