ejabberd Server Setup Tutorials

  • ejabberd Server Setup Tutorials

  • Install ejabberd server [latest available in ubuntu repository is 2.1.10 ) through commands  – sudo apt-get install ejabberd
  • You can start/stop ejabberd Server through commands  – sudo /etc/init.d/ejabberd [stop|start]
  • Change config settings to register Server Host in file /etc/ejabberd/ejabberd.cfg
    {hosts, [“administrator”, “localhost”, “[host]”]}.
    Change config settings to register Server Admin in file /etc/ejabberd/ejabberd.cfg
    {acl, admin, {user, “[admin-name]”, “localhost”}}.
  •  Setup password for admin
    – sudo ejabberdctl register [admin-name] localhost [password]
  • Check admin through Url http://localhost:5280/admin after entring credentials
Client connect through internal mnesia DB for ejabberd which only can be controllerd through Ejabberd – Web-Admin
   To Register users  Server internal Database.Check Virtual Hosts/[HOST]/Users. Then Jabber clients can connect to server using these registered users.
If you need to authenticate users against your DB. Then follow steps.
    Comment {auth_method,internal}. in file /etc/ejabberd/ejabberd.cfg
    Uncomment {auth_method,external}. in file /etc/ejabberd/ejabberd.cfg
    Setup provided authentication script path (newauth.php) in {extauth_program,[PATH]}.in file /etc/ejabberd/ejabberd.cfg
    Change in script for DB settings
    Stop/Start ejabberd Service
    Add corresponding users in your jabber client
There are nothing to do for Multi-User-Chat, Your jabber client should automatically working with that.
Auth scripts is attached with email.

Add a Comment

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