<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>XMPP Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/xmpp/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Wed, 13 Feb 2019 12:17:06 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>Install Ejabberd on CentOS 7</title>
		<link>https://www.osradar.com/install-ejabberd-on-centos-7/</link>
					<comments>https://www.osradar.com/install-ejabberd-on-centos-7/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 13 Feb 2019 12:17:06 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[communications]]></category>
		<category><![CDATA[ejabberd]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[XMPP]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=10736</guid>

					<description><![CDATA[<p>In today&#8217;s age, the age of security, many organizations like to have control of their communications. Fortunately, it has an open, secure and reliable protocol like XMPP. Thanks to this, it is possible to deploy various communication solutions for businesses and organization, specifically messaging. Therefore, today I will teach you how to install Ejabberd on [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-ejabberd-on-centos-7/">Install Ejabberd on CentOS 7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In today&#8217;s age, the age of security, many organizations like to have control of their communications. Fortunately, it has an open, secure and reliable protocol like XMPP. Thanks to this, it is possible to deploy various <a href="https://www.osradar.com/slack-a-great-application-for-team-communication/" rel="noopener">communication</a> solutions for businesses and organization, specifically messaging. Therefore, today I will teach you how to install Ejabberd on <a href="https://osradar.com/tag/centos/" rel="noopener">CentOS</a> 7 so that you too can take advantage of this protocol.</p>
<p>In case you did not know, <a href="https://www.process-one.net/en/ejabberd/" rel="noopener">Ejabberd</a> is a messaging server that uses the <a href="https://xmpp.org/" rel="noopener">XMPP</a> protocol. It is open source and has a community version that will save us money, ideal if our company is small. Its main objective is to be fast and scalable, so, that it can be used in almost any scenario.</p>
<p>So, let us start to install Ejabberd on CentOS 7.</p>
<h2>1. Upgrade the system and install glibc</h2>
<p>First, you need to update the system. You know, with this you will have installed the latest security patches and you will be able to enjoy a more stable and secure system.</p>
<pre class="">:~$ su
:~# yum update</pre>
<figure id="attachment_10739" aria-describedby="caption-attachment-10739" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10739" src="https://www.osradar.com/wp-content/uploads/2019/02/1-9.png" alt="1.- Upgrade the system" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/02/1-9.png 1366w, https://www.osradar.com/wp-content/uploads/2019/02/1-9-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/1-9-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/1-9-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/1-9-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/1-9-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/1-9-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10739" class="wp-caption-text">1.- Upgrade the system</figcaption></figure>
<p>Now, you have to install a required library. It is <code>glibc</code>.</p>
<pre class="">:~# yum install glibc</pre>
<figure id="attachment_10740" aria-describedby="caption-attachment-10740" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10740" src="https://www.osradar.com/wp-content/uploads/2019/02/2-9.png" alt="2.- Install glibc" width="1365" height="638" srcset="https://www.osradar.com/wp-content/uploads/2019/02/2-9.png 1365w, https://www.osradar.com/wp-content/uploads/2019/02/2-9-300x140.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/2-9-768x359.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/2-9-1024x479.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/2-9-696x325.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/2-9-1068x499.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/2-9-899x420.png 899w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-10740" class="wp-caption-text">2.- Install glibc</figcaption></figure>
<p>So, now you have the system updated and with glibc installed, you can continue with the installation.</p>
<h2>2. Download and install Ejabberd</h2>
<p>The next step is to download the Ejabberd binaries from the <a href="https://www.process-one.net/en/ejabberd/downloads/" rel="noopener">website</a>. In this case, I will use the binary in. RPM format. At the time of writing this post, the latest stable version of Ejabberd is 18.12.1.</p>
<pre class="">:~# yum install wget
:~# wget https://www.process-one.net/downloads/downloads-action.php?file=/ejabberd/18.12.1/ejabberd-18.12.1-0.x86_64.rpm</pre>
<figure id="attachment_10741" aria-describedby="caption-attachment-10741" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10741" src="https://www.osradar.com/wp-content/uploads/2019/02/3-9.png" alt="3.- Donwload ejabberd" width="1365" height="430" srcset="https://www.osradar.com/wp-content/uploads/2019/02/3-9.png 1365w, https://www.osradar.com/wp-content/uploads/2019/02/3-9-300x95.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/3-9-768x242.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/3-9-1024x323.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/3-9-696x219.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/3-9-1068x336.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/3-9-1333x420.png 1333w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-10741" class="wp-caption-text">3.- Download ejabberd</figcaption></figure>
<p>After that, install the downloaded package using yum.</p>
<pre class="">:~# mv downloads-action.php\?file\=%2Fejabberd%2F18.12.1%2Fejabberd-18.12.1-0.x86_64.rpm ejabberd.rpm
:~# rpm -ivh ejabberd.rpm</pre>
<figure id="attachment_10742" aria-describedby="caption-attachment-10742" style="width: 912px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10742" src="https://www.osradar.com/wp-content/uploads/2019/02/4-7.png" alt="4.- Install Ejabberd on CentOS" width="912" height="171" srcset="https://www.osradar.com/wp-content/uploads/2019/02/4-7.png 912w, https://www.osradar.com/wp-content/uploads/2019/02/4-7-300x56.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/4-7-768x144.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/4-7-696x131.png 696w" sizes="(max-width: 912px) 100vw, 912px" /><figcaption id="caption-attachment-10742" class="wp-caption-text">4.- Install Ejabberd on CentOS</figcaption></figure>
<p>Note the following, the ejabberd initialization script is located at <code>/etc/init.d/</code>. In addition, the <code>ejabberd</code> user will be created.</p>
<h2>3. Starting the Ejabberd service</h2>
<p>Now it is necessary to work with the Ejabberd service, to start it or restart it when it is convenient.</p>
<p>All you have to do is copy the <code>ejabberd.service</code> file located in the <code>/opt/ejabberd-18.12.1/bin/</code> folder to the <code>/etc/systemd/system/</code> folder.</p>
<pre class="">:~# cp /opt/ejabberd-18.12.1/bin/ejabberd.service /etc/systemd/system/</pre>
<figure id="attachment_10743" aria-describedby="caption-attachment-10743" style="width: 843px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10743" src="https://www.osradar.com/wp-content/uploads/2019/02/5-9.png" alt="5.- Working with the ejabberd service" width="843" height="110" srcset="https://www.osradar.com/wp-content/uploads/2019/02/5-9.png 843w, https://www.osradar.com/wp-content/uploads/2019/02/5-9-300x39.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/5-9-768x100.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/5-9-696x91.png 696w" sizes="(max-width: 843px) 100vw, 843px" /><figcaption id="caption-attachment-10743" class="wp-caption-text">5.- Working with the ejabberd service</figcaption></figure>
<p>In order for the service to be recognized by systemd, it is necessary to refresh the services.</p>
<pre class="">:~# systemctl daemon-reload</pre>
<figure id="attachment_10744" aria-describedby="caption-attachment-10744" style="width: 831px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10744" src="https://www.osradar.com/wp-content/uploads/2019/02/6-8.png" alt="6.- Reload the services" width="831" height="130" srcset="https://www.osradar.com/wp-content/uploads/2019/02/6-8.png 831w, https://www.osradar.com/wp-content/uploads/2019/02/6-8-300x47.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/6-8-768x120.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/6-8-696x109.png 696w" sizes="(max-width: 831px) 100vw, 831px" /><figcaption id="caption-attachment-10744" class="wp-caption-text">6.- Reload the services</figcaption></figure>
<p>After that, enable and start the service. Finally, it is a good idea to check the status of the service.</p>
<pre class="">:~# systemctl enable ejabberd
:~# systemctl start ejabberd
:~# systemctl status ejabberd</pre>
<figure id="attachment_10745" aria-describedby="caption-attachment-10745" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10745" src="https://www.osradar.com/wp-content/uploads/2019/02/7-8.png" alt="7.- Ejabberd service" width="1365" height="384" srcset="https://www.osradar.com/wp-content/uploads/2019/02/7-8.png 1365w, https://www.osradar.com/wp-content/uploads/2019/02/7-8-300x84.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/7-8-768x216.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/7-8-1024x288.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/7-8-696x196.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/7-8-1068x300.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-10745" class="wp-caption-text">7.- Ejabberd service</figcaption></figure>
<p>As you can see in the image above, everything is going well. It is now necessary to create an administrator account.</p>
<h2>4. Create an administrator account and access from the web browser</h2>
<p>To access the Ejabberd administration panel, it is necessary to create an administrator account. Let us go for it.</p>
<p>First, access the folder where the binary is.</p>
<pre class="">:~# cd /opt/ejabberd-18.12.1/bin/</pre>
<p>Then, use the following formula to create your user.</p>
<pre class="">:~# ./ejabberdctl register user localhost your_password</pre>
<p>Of course, replace user and your_password by yours. And localhost by your hostname.</p>
<figure id="attachment_10747" aria-describedby="caption-attachment-10747" style="width: 910px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10747" src="https://www.osradar.com/wp-content/uploads/2019/02/8-9.png" alt="8.- Creating the admin user" width="910" height="127" srcset="https://www.osradar.com/wp-content/uploads/2019/02/8-9.png 910w, https://www.osradar.com/wp-content/uploads/2019/02/8-9-300x42.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/8-9-768x107.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/8-9-696x97.png 696w" sizes="(max-width: 910px) 100vw, 910px" /><figcaption id="caption-attachment-10747" class="wp-caption-text">8.- Creating the admin user</figcaption></figure>
<p>After that, you have to edit one file to give administration rights to the new user.</p>
<pre class="">:~# nano /opt/ejabberd/conf/ejabberd.yml</pre>
<figure id="attachment_10751" aria-describedby="caption-attachment-10751" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-10751 size-full" src="https://www.osradar.com/wp-content/uploads/2019/02/9-11.png" alt="9.- Edit the configuration file" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/02/9-11.png 1366w, https://www.osradar.com/wp-content/uploads/2019/02/9-11-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/9-11-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/9-11-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/9-11-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/9-11-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/9-11-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10751" class="wp-caption-text">9.- Edit the configuration file</figcaption></figure>
<p>Then, restart the service to apply the changes.</p>
<pre class="">:~# systemctl restart ejabberd</pre>
<p>After that, set the right rules in the firewall for ejabberd. Remember, ejabberd uses the 5280 port.</p>
<pre class="">:~# firewall-cmd --add-port=5280/tcp --permanent
:~# firewall-cmd --reload</pre>
<figure id="attachment_10750" aria-describedby="caption-attachment-10750" style="width: 926px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10750" src="https://www.osradar.com/wp-content/uploads/2019/02/10-8.png" alt="10.- Firewall settings" width="926" height="199" srcset="https://www.osradar.com/wp-content/uploads/2019/02/10-8.png 926w, https://www.osradar.com/wp-content/uploads/2019/02/10-8-300x64.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/10-8-768x165.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/10-8-696x150.png 696w" sizes="(max-width: 926px) 100vw, 926px" /><figcaption id="caption-attachment-10750" class="wp-caption-text">10.- Firewall settings</figcaption></figure>
<p>Finally, open your web browser and go to <code>http://SERVER_IP:5280/admin</code> and log in. Remember the user is complete including the hostname. In my case is <strong>angelo@osradar</strong>.</p>
<figure id="attachment_10752" aria-describedby="caption-attachment-10752" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10752" src="https://www.osradar.com/wp-content/uploads/2019/02/11-5.png" alt="11.- Administration dashboard" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2019/02/11-5.png 1366w, https://www.osradar.com/wp-content/uploads/2019/02/11-5-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/11-5-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/11-5-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/11-5-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/02/11-5-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/11-5-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/11-5-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10752" class="wp-caption-text">11.- Administration dashboard</figcaption></figure>
<p>So, that is it.</p>
<h2>Conclusion</h2>
<p>Ejabberd is a great alternative to deploy an XMPP server quickly and easily. That&#8217;s why Ejabberd is listed as one of the leading solutions in this segment. Its installation in CentOS 7 is quite simple and does not present too many drawbacks.</p>
<p>Share this post with your friends.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-ejabberd-on-centos-7/">Install Ejabberd on CentOS 7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-ejabberd-on-centos-7/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
