Build your own instant messenger server Part 2

In the last post we just finished installing MySQL on minimal install of CentOS 6.5.

Note: If you have not yet read Part 1 please click here.

To rehash what we are working with below are the Hardware and Software, as well as our goals.

Hardware:
Virtual machine or physical machine to setup the server on.

Software:
Centos 6.5 minimal install
Openfire server software

Goal:
Have an internal IM client solution similar to windows live or gtalk,

Now we are going to install Open fire on our server.

Lets Get Started

Ensure you are logged into your server as root.

Install wget

1. Install wget with the following command

yum install wget

wget1

2. Answer Yes to install wget and its dependencies
wget2

Download and install Openfire

1. Download Openfire with the following command

wget http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire-3.9.1-1.i386.rpm

rpm1

2. Install Open fire by running the following command:

rpm -ivh openfire-3.9.1-1.i386.rpm

rpm2

3. Start Open Fire with the following command:

service openfire start

rpm3

4. Open iptables config file located in /etc /sysconfig/ iptables using vi

-A INPUT -p tcp -m state --state NEW -m tcp --dport 9090 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 9091 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 5222 -j ACCEPT

5.On another machine open a browser and go to http://[Server IP]:9090 to run the Setup

6. Select your language and click continue
web01

7. Change your domain to the domain you plan on using (or just use the server IP) select continue
web02

8. Select Standard Database Connection and click continue
web03

9. Select MySQL from database driver
Change[Host-name] to Localhost
Change [Database-name] to openfire
Enter openfire as username
Enter the password you created when creating the openfire database user
web04

10. Select Default and click continue
web05

11.Create your admin account and click continue
web06

Setup is now complete you can log into the admin console.

In Part 3 I will be going over how to create users and connect from your desktop.

 

 

 

One comment on “Build your own instant messenger server Part 2
  1. Pingback: Citycorpse | Build your own instant messenger server Part 1

Leave a Reply

Your email address will not be published. Required fields are marked *