Home » Centos/RHEL » How to install and configure ejabberd-Xmpp server on Centos/Ubuntu

How to install and configure ejabberd-Xmpp server on Centos/Ubuntu

The ejabberd is is one of the most popular jabber servers which be used for instant messaging on your own server. In this article, you will be able to learn how to install and configure ejabberd-Xmpp server on Linux server

First of all you need to activate EPEL-Repository on your CentOS machine..
Centos 6 For 64 Bit.

#rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

Centos6 For 32 Bit.

#rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

Centos 5 For 32 Bit.

#rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

Centos 5 For 64 Bit.

#rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

Installation

#yum install ejabberd

On Ubuntu

#sudo apt-get install ejabberd

Open the following port in the Firewall.
configure your firewall to allow following default ports:
5280:tcp for configuration admin-interface
5222:tcp for xmpp default port without ssl
optional:
5223:tcp for xmpp with ssl
5269:tcp for communication with other jabber servers
main configuration files are exist under /etc/ejabberd directory
Now edit the following lines in /etc/ejabberd/ejabberd.cfg

#vi /etc/ejabberd/ejabberd.cfg

Find the below line

{hosts, [“localhost”]}.

Modify this line to represent the correct host name. Example:

{hosts, [“localhost”,”domain.com”]}.

add admin:

{acl, admin, {user, “username”, “domain.com”}}.

now start your server and add the admin user:

#service ejabberd start
#ejabberdctl register username domain.com password

Finally Connect to webinterface via http://server-ip-address:5280/admin

About

I am founder and webmaster of www.linuxpcfix.com and working as a Sr. Linux Administrator (Expertise on Linux/Unix & Cloud Server) and have been in the industry from last 7 years.

Leave a Reply

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

*
*

Time limit is exhausted. Please reload the CAPTCHA.

Categorized Tag Cloud