eJabberd Installation for OurGrid


Installation


  1. Install

    1.1 Go to the Ejabberd download page and get the version for your operating system

    1.2 Install the Ejabberd as described in the installation guide


  2. Configure

    Edit the Ejabberd configuration file (ejabberd.cfg) with your default text editor, setting the custom parameters in one of these two ways described below:

    If you are using the template file (available here), just change the hostnames and IPs:
    - change {hosts, [“localhost”]}. to your host Ex.: {hosts, [“estrela”]}.
    - change {acl, admin, {user, "", "localhost"}}. to your admin user and host. Ex.: {acl, admin, {user, "abmar", "estrela"}}.
    - set the server external IP in the c2s and in the s2s connections, by adding an IP object: Ex.: {ip, {150, 165, 85, 185}}.

    If you are not using the template file, do the following changes:
    - remove ejabberd_c2s shaper by changing {shaper, c2s_shaper} to {shaper, none}.
    - remove registration_timeout by uncommenting the line {registration_timeout, 600}. and changing it to {registration_timeout, infinity}. (That line may not exist in every config file. In this case you should add this line without uncommenting anything).
    - increase max_user_sessions: Ex.: {access, max_user_sessions, [{100, all}]}.
    - open for inbound registration by changing {access, register, [{deny, all}]}. to {access, register, [{allow, all}]}.
    - remove max stanza limitter, by changing max_stanza_size to none, both in the c2s and in the s2s connections.
    - in the c2s connection, remove the starttls option and add the zlib option in order to allow for compression, as for issue https://support.process-one.net/browse/EJAB-1382.
    - remove traffic shapers and max stanza limit, by changing {access, c2s_shaper, [{none, admin}, {normal, all}]}. and {access, s2s_shaper, [{fast, all}]}. to {access, c2s_shaper, [{none, all}]}. and {access, s2s_shaper, [{none, all}]}., respectively.
    - remove welcome message by commenting {welcome_message, {"Welcome!" ...} and uncommenting {welcome_message, none}. (Remember to comment all lines from the welcome message).
    - comment the ejabberd mods that are not required.

    %% {access, muc},
    %% {access_create, muc},
    %% {access_persistent, muc},
    %% {access_admin, muc_admin},%% {max_users, 500}
    %% ]},
    %%{mod_pubsub, [ % requires mod_caps
    %%{access_createnode, pubsub_createnode},
    %%{plugins, ["default", "pep"]}
    %%]},
    %%{mod_roster, []},
    %%{mod_service_log,[]},
    %%{mod_shared_roster,[]},
    %%{mod_stats, []},
    %%{mod_time, []},
    %%{mod_vcard, []},
    %%{mod_adhoc, []},
    %%{mod_announce, [{access, announce}]}, % requires mod_adhoc
    %%{mod_caps, []},
    %%{mod_configure,[]}, % requires mod_adhoc
    %%{mod_ctlextra, []},
    %%{mod_echo, [{host, "echo.localhost"}]},
    %%{mod_irc,[]},
    %%{mod_last, []},
    %%{mod_muc,[
    %%{host, "conference.@HOST@"},
  3. Register Admin
    ejabberdctl register admin domain password

  4. Restart eJabberd
    ejabberdctl restart


Info To access the previous page of ourgrid.org click here

OurGrid is a trademark of the Federal University of Campina Grande
Contact us at