Install ejabberd on CentOS

ejabberd is one of the most popular jabber servers. This howto explains how to run your own jabber server on CentOS using ejabberd.


First you need to activate EPEL-Repository on your CentOS machine.


install it via yum:

yum install ejabberd



configure your firewall to allow following default ports:

5280:tcp for configuration admin-interface

5222:tcp for xmpp default port without ssl


5223:tcp for xmpp with ssl

5269:tcp for communication with other jabber servers


main configuration files are located under /etc/ejabberd

modify following lines in you /etc/ejabberd/ejabberd.cfg



{hosts, [“”]}.

add admin:

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


now start your server and add the admin user:

/etc/init.d/ejabberd start


 ejabberdctl register username password


Connect to webinterface on <ip_or_hostname>:5280/admin

use your admin user you defined to login.

3 thoughts on “Install ejabberd on CentOS

  1. Pingback: Delicious Bookmarks for March 4th from 23:07 to 23:49 « Lâmôlabs

  2. Swapnil

    Awesome dude, I was trying to configure Ejabberd from last 2 days but i was getting error while registering user after following your steps its working now.

    I installed & configured pidgin on client system & now its working very well.

    Thanx Bro 🙂


Leave a Reply

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