Setting up the XMPP Plugin for ownCloud
Follow this: https://www.digitalocean.com/community/tutorials/how-to-install-ejabberd-xmpp-server-on-ubuntu
Install this on ownCloud: http://apps.owncloud.com/content/show.php/JavaScript+XMPP+Chat?content=162257
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.
Tidak ada komentar:
Posting Komentar