Project

General

Profile

Support #539

Installing Ejabberd XMPP Server on FreeBSD

Added by Daniel Curtis over 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XMPP Server
Target version:
Start date:
01/23/2015
Due date:
% Done:

100%

Estimated time:
1.00 h
Spent time:

Description

Install Ejabberd

  • Install the Ejabberd server. Use the following command:
    pkg install ejabberd openssl
    
  • Enable ejabberd to start at boot:
    echo 'ejabberd_enable="YES"' >> /etc/rc.conf
    

When pkg finishes, the Ejabberd server will have been successfully installed, and will be ready for configuration.

Configuring Ejabberd

  • Create a configuration file from the example config:
    cp /usr/local/etc/ejabberd/ejabberd.yml.example /usr/local/etc/ejabberd/ejabberd.yml
    
  • Edit the new configuration file:
    vi /usr/local/etc/ejabberd/ejabberd.yml
    
    • Add the XMPP domain to be served:
      hosts:
        - "localhost" 
        - "example.com" 
      

NOTE: Ejabberd is very feature rich, so adjust the configuration to suit whatever the use case may be.

Adding Users

  • Register a new user:
    su - ejabberd
    ejabberdctl register admin example.com SuperSecretPassword
    
    • Then add this to /usr/local/etc/ejabberd/ejabberd.yml:
        admin:
          user:
            - "admin": "example.com" 
      

Resources

Also available in: Atom PDF