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.

Installation

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

install it via yum:

yum install ejabberd

Configuration

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 located under /etc/ejabberd

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

hosts:

{hosts, ["example.com"]}.

add admin:

{acl, admin, {user, "username", "example.com"}}.

now start your server and add the admin user:

/etc/init.d/ejabberd start
ejabberdctl register username example.com password

Connect to webinterface on <ip_or_hostname>:5280/admin

use your admin user you defined to login.