Whatsapp, Facebook and many other realtime messaging started with ejabberd
ejabberd is an XMPP application server. ejabberd stands for Erlang Jabber Daemon (Jabber being a former name for XMPP) and is written in lowercase only.
ejabberd has a high level of compliance with XMPP. It provides a web interface which can be translated into other languages. ejabberd supports distributed computing by clustering, supports live upgrades, shared roster groups and provides support for virtual hosts. Database management systems supported include PostgreSQL and MySQL, and ODBC is supported for connectivity to other systems. LDAP authentication is supported, as is login via SSL/TLS, SASL and STARTTLS.
ejabberd is extensible via modules, which can provide support for additional capabilities such as saving offline messages or a user database.
To download ejabberd server on your server type
apt-get -y install ejabberd
Next step is to add admin user
ejabberdctl register admin localhost password
Now give Admin Privileges
By default, hostname used by eJabberd is ‘localhost’, which can be modified from config file.
For our example we will call our admin user “admin@localhost” and modify the following lines in /etc/ejabberd/ejabberd.cfg:
%% Admin user {acl, admin, {user, "admin", "localhost"}}. %% Hostname {hosts, ["localhost"]}.
Now restart Ejabberd server
service ejabberd restart
Now you can navigate to your eJabberd Web Admin interface on droplet’s IP address port 5280
http://domainname:5280/admin