Openfire installation guide

Web hosting, SEO, etc... related
Post Reply
User avatar
Saman
Lieutenant Colonel
Lieutenant Colonel
Posts: 828
Joined: Fri Jul 31, 2009 10:32 pm
Location: Mount Lavinia

Openfire installation guide

Post by Saman » Thu Aug 12, 2010 3:05 am

This is a simple guide that demonstrate how to install Openfire on Cent OS.
  1. Make Database
    Create a new database (name it as Openfire).
    Create a user (username: openfire password: something you like)
  2. Download Openfire RPM and upload to your server
    You may also download the file directly using wget using following syntax.

    Code: Select all

    wget http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire-3.6.4-1.i386.rpm
  3. Install Openfire RPM

    Code: Select all

    rpm –ivh openfire-3.6.4-1.i386.rpm
  4. Start Openfire service

    Code: Select all

    service openfire start
  5. Set it to auto-start whenever your server is rebooted

    Code: Select all

    chkconfig --level 235 openfire on
  6. Adjust Firewall Settings
    3478 - STUN Service (NAT connectivity)
    3479 - STUN Service (NAT connectivity)
    5222 - Client to Server (standard and encrypted)
    5223 - Client to Server (legacy SSL support)
    5229 - Flash Cross Domain (Flash client support)
    7070 - HTTP Binding (unsecured HTTP connections)
    7443 - HTTP Binding (secured HTTP connections)
    7777 - File Transfer Proxy (XMPP file transfers)
    9090 - Admin Console (unsecured)
    9091 - Admin Console (secured)
  7. Login to admin window by http://yourname.com:9090 and do the settings as below.
    1. Language selection is first
      1.png
      1.png (16.19 KiB) Viewed 9531 times
    2. Next you'll specify some basic server settings. For simple deployments, it's best to leave the defaults in place.
      2.png
      2.png (11.47 KiB) Viewed 9531 times
    3. For the database setup step, specify a standard database connection and enter your Postgresql database information.
      3.png
      3.png (14.5 KiB) Viewed 9531 times
      4.png
      4.png (20.6 KiB) Viewed 9531 times
    4. Unless you really know what you're doing (i.e. you have an existing LDAP environment), leave the default profile settings in place.
      5.png
      5.png (16.6 KiB) Viewed 9531 times
    5. The last step in the installation is to set up your administrator account.
      6.png
      6.png (15.14 KiB) Viewed 9531 times
  8. Though you have set password correctly you will mostly not be able to login.
    To fix this, open your database and open ofUser.
    Run following SQL.

    Code: Select all

    update ofUser set password='123456', encryptedPassword = null where username ='admin';
  9. Now we need to restart the Openfire service

    Code: Select all

    service openfire restart
  10. Now login using admin and 123456 as set before.
  11. Next, install Spark (The chat client of Openfire)
  12. Enter user, password and your server.
    7.png
    7.png (17.59 KiB) Viewed 9531 times
  13. That's it! (Don't forget to say thanks here :) )
Post Reply

Return to “Web Related”