Install ejabberd on CentOS

Posted on Tue 19 April 2011 in 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.