- Make Database
Create a new database (name it as Openfire).
Create a user (username: openfire password: something you like) - 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
- Install Openfire RPM
Code: Select all
rpm –ivh openfire-3.6.4-1.i386.rpm
- Start Openfire service
Code: Select all
service openfire start
- Set it to auto-start whenever your server is rebooted
Code: Select all
chkconfig --level 235 openfire on
- 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) - Login to admin window by http://yourname.com:9090 and do the settings as below.
- Language selection is first
- Next you'll specify some basic server settings. For simple deployments, it's best to leave the defaults in place.
- For the database setup step, specify a standard database connection and enter your Postgresql database information.
- Unless you really know what you're doing (i.e. you have an existing LDAP environment), leave the default profile settings in place.
- The last step in the installation is to set up your administrator account.
- 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';
- Now we need to restart the Openfire service
Code: Select all
service openfire restart
- Now login using admin and 123456 as set before.
- Next, install Spark (The chat client of Openfire)
- Enter user, password and your server.
- That's it! (Don't forget to say thanks here
)
Openfire installation guide
Openfire installation guide
This is a simple guide that demonstrate how to install Openfire on Cent OS.