How to Setup own Instant Messaging Server using Openfire and Spark

This tutorial is helpful to install and configure your won instant messaging (chat) server using Openfire ( Server) and Spark ( Client ). You can configure it to use in your LAN environment also.

Step 1. Install Java

Before installing hadoop make sure you have java installed on your system. If you do not have java installed use following article to install Java.

Steps to install JAVA on CentOS 5/6 or RHEL 5/6

Step 2: Download and Install Openfire

Use following command to download openfire or download latest Openfire version from its official site.

# wget http://download.igniterealtime.org/openfire/openfire-3.8.2-1.i386.rpm

Install Openfire using rpm command

# rpm -ivh openfire-3.8.2-1.i386.rpm

Start Openfire Service

# service openfire start
Step 3: Create MySQL Database and User

Openfire required mysql as database server, Use following commands to create database and user.

# mysql -uroot -p
mysql> CREATE DATABASE openfire;
mysql> GRANT ALL on openfire.* to 'openfire'@localhost IDENTIFIED BY 'secretpassword';
mysql> FLUSH PRIVILEGES;
Step 4: Configure Openfire

Openfire by default works on port 9090, Connect your server on port 9090 using browser. It will open an configuration wizard, Follow the wizard and complete configuration. During wizard using above created mysql credentials.

URL: http://svr1.tecadmin.net:9090/

openfire-install-screen-1

Step 5: Create User in Openfire

Login to openfire using admin account and go to following location and create users.

openfire-login-screen

openfire-create-user

Step 6: Connect to Openfire

To connect to Openfire you need to download “spark” client software and install on your system. Download latest version from its official site or use below download link

http://download.igniterealtime.org/spark/spark_2_6_3.exe

Install spark client and login to your account, or register new accounts.

spark-login-screen

spark-create-user

Rahul

Founder of TecAdmin.net. I love to work with Linux and other open source application. Also I like to share knowledge with my friends and other Linux users. Follow me on Twitter, Add me on Google+ or Like Facebook page.

1 Comment

  1. Rahul,

    This is a great article with nice detailed steps, thank you.

    Do you have an article how to add voip and video to OpenFire (assume the above tutorial has been completed)?

Leave a Reply