Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/feed-rss2.php on line 8
XMPP and ejabberd on Debian – AKLWEB HOST LLC Support Center https://support.aklwebhost.com Sat, 14 Dec 2019 19:10:10 +0000 en-US hourly 1 https://wordpress.org/?v=6.4.4 XMPP and ejabberd on Debian https://support.aklwebhost.com/knowledgebase/xmpp-and-ejabberd-on-debian/ https://support.aklwebhost.com/knowledgebase/xmpp-and-ejabberd-on-debian/#respond Sat, 14 Dec 2019 19:10:10 +0000 https://support.aklwebhost.com/?post_type=manual_kb&p=2758 This setup will show you how to setup an XMPP server with ejabberd and Debian. For the course of this setup, we will assume that you are working with administrative privileges. If you want to use sudo, then append it where needed.

First, make sure that your packages are up-to-date. Then install ejabberd from the official Debian repositories:

apt-get update && apt-get upgrade && apt-get install ejabberd

Initial configuration can be done via debconf:

dpkg-reconfigure ejabberd

This will prompt you for:

  • A hostname – yourserver.tld.
  • An administrative user – name it whatever you like.
  • A password for the administrative user.

At this point, ejabberd is now functional, but you may want to do some fine-tuning. The configuration file is located under /etc/ejabberd/ejabberd.cfg. Open this file with your favorite text editor. Here you will see server variables, and you can edit them accordingly.

Ejabberd comes with three means of administrating it:

  • The command-line tool ejabberdctl.
  • The possibility to use your client (Pidgin, for example, supports this).
  • A web interface listening on yourdomain.tld:5280.

If you don’t need the web interface, then you can comment out the following sequence:

{5280, ejabberd_http, [
                       %%{request_handlers,
                       %% [
                       %%  {["pub", "archive"], mod_http_fileserver}
                       %% ]},
                       %%captcha,
                       http_bind,
                       http_poll,
                       web_admin
                      ]}

The built-in certificate of ejabberd is not valid and will prompt a security warning from your client. If possible, you should replace it with a certificate from a valid certificate authority (CA).

{s2s_use_starttls, true}.
{s2s_certfile, "/path/to/your/certificate.pem"}.

After making any changes to the configuration file, ejabberd needs to be restarted:

service ejabberd restart

You are now ready to use your new XMPP server. We recommend reviewing the official documentation, as it has a lot of useful features that aren’t covered here. For example, shared rosters and transport functionality for other instant messaging services.

]]>
https://support.aklwebhost.com/knowledgebase/xmpp-and-ejabberd-on-debian/feed/ 0