Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

install-ejabberd.md 1.5 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. Install an ejabberd with synchronized credentials
  2. =================================================
  3. * [Home](help)
  4. [Ejabberd](https://www.ejabberd.im/) is a chat server that uses XMPP as messaging protocol that you can use with a large amount of clients.
  5. In conjunction with the "xmpp" addon it can be used for a web based chat solution for your users.
  6. Installation
  7. ------------
  8. - Change it's owner to whichever user is running the server, ie. ejabberd
  9. $ chown ejabberd:ejabberd /path/to/friendica/bin/auth_ejabberd.php
  10. - Change the access mode so it is readable only to the user ejabberd and has exec
  11. $ chmod 700 /path/to/friendica/bin/auth_ejabberd.php
  12. - Edit your ejabberd.cfg file, comment out your auth_method and add:
  13. {auth_method, external}.
  14. {extauth_program, "/path/to/friendica/bin/auth_ejabberd.php"}.
  15. - Disable the module "mod_register" and disable the registration:
  16. {access, register, [{deny, all}]}.
  17. - Enable BOSH:
  18. - Enable the module "mod_http_bind"
  19. - Edit this line:
  20. {5280, ejabberd_http, [captcha, http_poll, http_bind]}
  21. - In your apache configuration for your site add this line:
  22. ProxyPass /http-bind http://127.0.0.1:5280/http-bind retry=0
  23. - Restart your ejabberd service, you should be able to login with your friendica credentials
  24. Other hints
  25. -----------
  26. - if a user has a space or a @ in the nickname, the user has to replace these characters:
  27. - " " (space) is replaced with "%20"
  28. - "@" is replaced with "(a)"