Setting up a chat server using OPENFIRE

Setting up a chat server using OPENFIRE

by -
0 2803


OPENFIRE is a widely used chat server, It is a real time collaboration (RTC) server licensed under the Open Source Apache License.The protocol works behind openfire is XMPP (also called Jabber) written in java. Now we will configure openfire and start one to one and group chat with our local user and manage user, database, sercurity on server by admin panel.

OPENFIRE Installation And Configuration

Tested on centos 5.4/6.2 32bit
Download and Install the Openfire Software
Openfire can be downloaded from the Ignite Realtime web site( Every openfire packages are avilable in 32bit.

[[email protected] ~]# yum install wget
[[email protected] ~]#wget

Now install the RPM, start the Openfire service, verify it is actively running, and set it to auto-start whenever your server is rebooted.

[[email protected] ~]# rpm -ivh openfire-3.10.0-1.i386.rpm
Preparing… ########################################### [100%]
1:openfire ########################################### [100%]
[[email protected] ~]# /etc/init.d/openfire start
[[email protected] ~]# chkconfig –level 235 openfire on

Configure Admin Panel

Configure Openfire through its Web Interface
Launch your favorite browser and go to http://IP_Address:9090

1: If you set up a DNS alias to go to the Openfire web interface. You’ll be greeted by Openfire’s setup tool. In the first step, select your language. Here we choose English.

Here i am using my local ip adderss to open admin configuration panel.

Screenshot from 2015-06-10 17:44:52


2: The next step is to set the server domain. If you opted for an IP address name, enter your server’s IP. If you opted to create a DNS alias, enter the DNS server domain. Here we created so we’ll enter that. By default the Openfire web interface console ports are 9090 and 9091 for standard and secure respectively. You can use other ports if you wish (NOTE: you’ll have to change your firewall settings if you use different ports), but for this guide we’re sticking with the default values.

Screenshot from 2015-06-10 17:47:55


3: You have two choices regarding which database to use for Openfire to store its data: an external database like MySQL, MSSQL, PostgreSQL, etc… or to use the bundled embedded database. If you setup a MySQL database then select the Standard Database Connection option. If you didn’t, the only choice is to use the Embedded Database.

Screenshot from 2015-06-10 17:51:46

4:The profile step has to do with the users and groups of chat members and where Openfire will store that information (new users, user groups, etc…). We won’t opt for LDAP to store this information. Here we choose default.

Screenshot from 2015-06-10 18:01:42

5:We’re almost done. Enter the administrator email address (your email address) and set a password for your Openfire server.

Screenshot from 2015-06-10 18:01:59

6: Now you’re done!. Click the Login to admin console button.

Screenshot from 2015-06-10 18:04:13

7: Type in the Openfire admin password you entered in Step 5 and click the Login button.

Screenshot from 2015-06-10 18:04:17

Openfire Administration Console

Welcome to the Openfire Administration Console. Take a look around and get familiar with the layout.

Screenshot from 2015-06-10 18:18:10

Step1: Open Server Setting -> Registration & Login-> and disabled options.If you will not disable that option user can make a new account without any admin previleges.

Screenshot from 2015-06-10 18:57:19

Step2: Click the Security Settings link on the left. Under Client Connection Security, choose the Required option to force jabber clients to use SSL (NOTE: If the client doesn’t support SSL and this option is enabled, the client will not be able to connect to the server). Click the Save Settings button.

Screenshot from 2015-06-10 19:08:15

Step3: Openfire SSL Certificates:Openfire creates self-signed SSL Certificates by default. Remember the port 9091 from before? If you ever want to access this administration console from a Secure Connection, then you’ll need to restart the Openfire HTTP Server.

Click the Server Certificates link on the left menu.

Screenshot from 2015-06-10 19:12:40

Step4: Go to Create New User under the Users section on the left. Fill in the Username, Password, and Confirm Password fields and click the Create User button.

Screenshot from 2015-06-10 18:35:52

Step5: Setting up a Jabber Client (Spark for Windows)

(a) Link is here

(b) Type in your Openfire user credentials (Username and Password). In the Server field, type in the Openfire Servers IP address or DNS alias. Click the Login button.

Screenshot from 2015-06-11 15:36:56

Step6: Make a group and add user on that group.

Screenshot from 2015-06-11 15:48:37

Here i create a group kvitchat_group and change settings.

Screenshot from 2015-06-11 15:54:47

Step7: Now login users and start chat.

Screenshot from 2015-06-11 15:58:56

Step8: Change the profile pics ->Login on spark-> Click on spark tab-> Click on edit my profile tab-> Click on Avtar and select your profile pic

Screenshot from 2015-06-11 16:00:25

Step9: Start Conference chat -> Click on Action tab and then start a Conference -> Invite avilable person to start conference chat->Click on Roster

Screenshot from 2015-06-11 16:21:32

Now Start Conference Chat

Screenshot from 2015-06-11 16:31:55

Step10: Open admin panel and click on Plugins tab-> Click on Available Plugins -> There are lot of plugins here you can install these plugins according to your requirements.

Screenshot from 2015-06-10 19:40:27

Step11: Now we install very impotant plugin to monitor the all users chat and manage it by admin panel.

Install Monitoring Service plugin and check it on Archiving section of admin panel then configure it.

Screenshot from 2015-06-11 16:02:08

Click on  right side of page Archive Settings, and select below options.

Screenshot from 2015-06-11 16:03:41

After that again go to archiving section and click on search tab

Screenshot from 2015-06-11 16:39:23

Now you can view all chat and download particular chat in pdf and send to user who complain that i am not sending any wrong message to another user.

Screenshot from 2015-06-11 16:39:35

Step12: Install Motd plugin and send the message of the day to every user whenever they will login.

Screenshot from 2015-06-11 16:47:11

Now the message will be share to all user who will login on chat server.

Step13: We can block any word form our chat server, we can’t send wrong word to any one by chat, if any one send the block word, he will get a message. Install content filter plugin and set below setting.

Screenshot from 2015-06-11 18:23:16

Now check the chat you will be not able to send any word you have blocked.

Step14: Now add subscription plugin and chenge the setting.

Screenshot from 2015-06-11 18:35:50

Enable user registration option.

Screenshot from 2015-06-11 19:01:41

Now opent the url on next tab of browser and login user

Screenshot from 2015-06-11 19:01:44

When the admin user login, he will get the message of new users on server and user will get welcome message.

Screenshot from 2015-06-11 19:04:05

Step15: The last step is to import and export user

Screenshot from 2015-06-11 19:01:52


Download PDF

CEO, KV IT-Solutions Pvt. Ltd. | [email protected] | 9810028374|
Linux Professional and an Industrial Trainer | 20 + years Experience in IT Industry

” We are born free, No Gate and Windows can snatch our freedom “


0 1700

0 1354

0 1218


Leave a Reply