User Tools

Site Tools


owncloud_xmpp_plugin_setup

Setting up the XMPP Plugin for ownCloud

Install eJabberd

   sudo apt-get update && sudo apt-get install ejabberd

Next, create an admin account:

   sudo ejabberdctl register <accountname> localhost <password>

Subsitute <accountname> and <password> for your desired admin account name and password (you don't need the greater and lesser signs).

The next part is to edit the ejabberd.cfg file:

   sudo nano /etc/ejabberd/ejabberd.cfg

This is where it gets a bit complicated, there are a few lines with the following:

   %% Admin user
   {acl, admin, {user, "admin", "localhost"}}.
   
   %% Hostname
   {hosts, ["localhost"]}.

At this part, add your desired admin users and domains, an example would look like this:

   %% Admin user
   {acl, admin, {user, "steve", "steveit.co.uk"}}.
   {acl, admin, {user, "steve", "localhost"}}.
        
   %% Hostname
   {hosts, ["localhost", "steveit.co.uk"]}.

There is another hosts declared later in the config file, don't touch this. From here though, you can restart ejabberd:

   sudo service ejabberd restart

Next, go to the administration page at: http://hostname.example.com:5280

Use user@yourdomain.com with the password that you used.

FYI, I kept localhost as a domain, for testing purposes. I will probably experiment removing it for security reasons in the future.

Setup XMPP in ownCloud

owncloud_xmpp_plugin_setup.txt · Last modified: 2017/03/22 23:19 (external edit)