drugnero.blogg.se

Ejabberd installation
Ejabberd installation











  1. #EJABBERD INSTALLATION INSTALL#
  2. #EJABBERD INSTALLATION 64 BIT#
  3. #EJABBERD INSTALLATION UPGRADE#
  4. #EJABBERD INSTALLATION PASSWORD#

#EJABBERD INSTALLATION INSTALL#

# Default: you can change the default node name.To install eJabberd XMPP server in Ubuntu By default your local single instance will be on a single node (localhost) as You can configure this in ejabberdctl.cfg. you have a cluster, then you may want to explicitly provide a name different instances (ejabberd node) as etc. # You can put here as many accounts as you want. # The 'admin' ACL grants administrative privileges to XMPP accounts. For e.g, in the hosts config you can provide your domain as follows:Īnd for the admin account of that domain as follows: So you can have different virtual hosts on the same instance. However, keep in mind that XMPP provides virtual hosting. If you opt for a different database other than mnesiaįor a single instance (node), you can you use the default configuration. You can use the following command to check if you have any errors while starting the server. If your server does not start you can check the logs in the log folder within the ejabberd installation folder. If everything went fine, you should see the web console.

#EJABBERD INSTALLATION PASSWORD#

Note: For https you will also need to configure the listener in the configuration file.Įnter your credentials using username and the password you entered while creating the admin user Replacing yourhostname and adminpassword with yours Step 8: Open web console Now that you have configured your server, you will need to add some users to the server.įor e.g, we will create the admin user, using the following command: /opt/ejabberd-17.01/bin/ejabberdctl register admin yourhostname adminpassword You can check the status of ejabberd using the following command: /opt/ejabberd-17.01/bin/ejabberdctl/ejabberdctl status Step 7: Add users Start ejabberd using the following command: /opt/ejabberd-17.01/bin/ejabberdctl start a complete list of configurations, check the documentation at Step 6: Start the server Lets configure our server: vi /opt/ejabberd-17.01/conf/ejabberd.ymlĪ) Configure hosts (domain names served by ejabberd not to be confused with the ejabberd node name)ī) Configure your admin user, For e.g, In the ACL section, you configure your admin user. Some of the configurations are pre-configured, however you will need to make some changes which are relevant to your requirements.

  • Copy the server.pem file to ejabberd conf folderĬonfigure your server using a text editor.
  • We do this using cat command as follows, in the order mentioned above:
  • After you receive the certificates from your CA, you need to create a pem file for ejabberd. You will have to follow concatenate according to the following order:.
  • Openssl req -nodes -newkey rsa:2048 -keyout server.key -out server.csr This will prompt you to enter information that will be incorporated into your certificate request. This will generate two files, the csr file and the server key. Using openssl command, you can generate the two files.
  • Generating a Certificate Signing Request with key.
  • ejabberd installation

    If you are using a server for production, you will need to install SSL certificates. To check if installation was successful, you should have the following foldersīin, conf, database, doc, lib and logs. Install ejabberd using the following command: dpkg -i ejabberd_17.01-0_bĮjabberd will be installed in the /opt folder, so change your directory to this folder. Note: Make sure you have the necessary backups before installing the new version.

    #EJABBERD INSTALLATION UPGRADE#

    When upgrading, also check the upgrade process from They will be located in /opt/ejabberd-xx.xx/database/ and /opt/ejabberd-xx.xx/conf respectively. Make a copy of the backup file and the conf folder.Where xx.xx is your current ejabberd version. If you are doing a fresh install, you can jump to Step 3. If you are upgrading ejabberd, take a backup of your database using the following command: /opt/ejabberd-xx.xx/bin/ejabberdctl backup ejabberd.backup Now rename the package as follows: mv downloads-action.php?file=%2Fejabberd%2F17.01%2Fejabberd_17.01-0_b ejabberd_17.01-0_b Step 2: Backup ejabberd

    ejabberd installation

    OR alternatively, use wget to download wget

    ejabberd installation

    #EJABBERD INSTALLATION 64 BIT#

    In this tutorial we are using the 64 bit deb package Step 1: Download ejabberd













    Ejabberd installation