Project

General

Profile

Support #539

Installing Ejabberd XMPP Server on FreeBSD

Added by Daniel Curtis over 5 years ago. Updated over 5 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

History

#1 Updated by Daniel Curtis over 5 years ago

  • Status changed from New to In Progress

#2 Updated by Daniel Curtis over 5 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

#3 Updated by Daniel Curtis over 5 years ago

  • Status changed from Resolved to Closed

#4 Updated by Daniel Curtis over 5 years ago

  • Target version set to FreeBSD 9

#5 Updated by Daniel Curtis over 5 years ago

  • Category set to XMPP Server

Also available in: Atom PDF