<?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>tuorial Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/tuorial/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Thu, 30 Jul 2020 16:45:24 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.13</generator>
	<item>
		<title>Install Apache ActiveMQ on Ubuntu 20.04 / 18.04</title>
		<link>https://www.osradar.com/install-apachemq-ubuntu-20-04-18-04/</link>
					<comments>https://www.osradar.com/install-apachemq-ubuntu-20-04-18-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 31 Jul 2020 01:00:00 +0000</pubDate>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Activemq]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[tuorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=10374</guid>

					<description><![CDATA[<p>On an enterprise server, many important applications are likely to cohabit. The need for a broker makes more sense if these applications are constantly transferring information. In addition, an organization&#8217;s scalable infrastructure depends on the quality of the applications. Therefore, in this post, I will show you how to install Apache ActiveMQ on Ubuntu 20.04 [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-apachemq-ubuntu-20-04-18-04/">Install Apache ActiveMQ on Ubuntu 20.04 / 18.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>On an enterprise server, many important applications are likely to cohabit. The need for a broker makes more sense if these applications are constantly transferring information. In addition, an organization&#8217;s scalable infrastructure depends on the quality of the applications. Therefore, in this post, I will show you how to install Apache ActiveMQ on <a href="http://osradara.com/tag/ubuntu" rel="noopener">Ubuntu</a> 20.04 / 18.04.</p>
<p>In computing, the term broker defines an intermediary between two or more applications that need resources and information between them. So, Apache <a href="http://activemq.apache.org/" rel="noopener">ActiveMQ</a> is the most popular and powerful open source messaging and Integration Patterns server. It is open source licensed under the Apache 2.0 License.</p>
<p>Besides being able to be used in <a href="https://www.osradar.com/how-to-install-oracle-java-on-ubuntu-18-10/" rel="noopener">Java</a>, ActiveMQ can also be used in .NET, <a href="https://www.osradar.com/install-codeblocks-on-linux/" rel="noopener">C/C++</a> or Delphi or from script languages such as Perl, <a href="https://www.osradar.com/get-the-latest-python-on-linux/" rel="noopener">Python</a>, PHP, and <a href="https://www.osradar.com/how-to-install-ruby-on-rails-on-ubuntu-18-04/" rel="noopener">Ruby</a> through various &#8220;cross-language clients&#8221;.</p>
<p>So, let us start.</p>
<h2>1. Install Java</h2>
<p>If you use Ubuntu 20.04 / 18.04 it is unlikely that you do not have Java installed, however, you can do it in an easy way with the following command:</p>
<pre class="">:~$ sudo apt install openjdk-11-jre
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  at-spi2-core ca-certificates-java fontconfig-config fonts-dejavu-core fonts-dejavu-extra java-common libatk-bridge2.0-0 libatk-wrapper-java libatk-wrapper-java-jni
  libatk1.0-0 libatk1.0-data libatspi2.0-0 libavahi-client3 libavahi-common-data libavahi-common3 libcups2 libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1
  libfontconfig1 libfontenc1 libgif7 libgl1 libgl1-mesa-dri libglapi-mesa libglvnd0 libglx-mesa0 libglx0 libice6 libjpeg-turbo8 libjpeg8 liblcms2-2 libllvm10 libnspr4
  libnss3 libpciaccess0 libpcsclite1 libsensors-config libsensors5 libsm6 libvulkan1 libwayland-client0 libx11-xcb1 libxaw7 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0
  libxcb-present0 libxcb-randr0 libxcb-shape0 libxcb-sync1 libxcomposite1 libxdamage1 libxfixes3 libxft2 libxi6 libxinerama1 libxkbfile1 libxmu6 libxpm4 libxrandr2
  libxrender1 libxshmfence1 libxt6 libxtst6 libxv1 libxxf86dga1 libxxf86vm1 mesa-vulkan-drivers openjdk-11-jre-headless x11-common x11-utils
Suggested packages:
  default-jre cups-common liblcms2-utils pcscd lm-sensors libnss-mdns fonts-ipafont-gothic fonts-ipafont-mincho fonts-wqy-microhei | fonts-wqy-zenhei fonts-indic
  mesa-utils
The following NEW packages will be installed:
  at-spi2-core ca-certificates-java fontconfig-config fonts-dejavu-core fonts-dejavu-extra java-common libatk-bridge2.0-0 libatk-wrapper-java libatk-wrapper-java-jni
  libatk1.0-0 libatk1.0-data libatspi2.0-0 libavahi-client3 libavahi-common-data libavahi-common3 libcups2 libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1
  libfontconfig1 libfontenc1 libgif7 libgl1 libgl1-mesa-dri libglapi-mesa libglvnd0 libglx-mesa0 libglx0 libice6 libjpeg-turbo8 libjpeg8 liblcms2-2 libllvm10 libnspr4
  libnss3 libpciaccess0 libpcsclite1 libsensors-config libsensors5 libsm6 libvulkan1 libwayland-client0 libx11-xcb1 libxaw7 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0
  libxcb-present0 libxcb-randr0 libxcb-shape0 libxcb-sync1 libxcomposite1 libxdamage1 libxfixes3 libxft2 libxi6 libxinerama1 libxkbfile1 libxmu6 libxpm4 libxrandr2
  libxrender1 libxshmfence1 libxt6 libxtst6 libxv1 libxxf86dga1 libxxf86vm1 mesa-vulkan-drivers openjdk-11-jre openjdk-11-jre-headless x11-common x11-utils
0 upgraded, 74 newly installed, 0 to remove and 83 not upgraded.
Need to get 72.6 MB of archives.</pre>
<figure id="attachment_22122" aria-describedby="caption-attachment-22122" style="width: 1361px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-22122 size-full" src="https://www.osradar.com/wp-content/uploads/2019/01/1-27.png" alt="1.- Installing Java on Ubuntu 20.04" width="1361" height="408" srcset="https://www.osradar.com/wp-content/uploads/2019/01/1-27.png 1361w, https://www.osradar.com/wp-content/uploads/2019/01/1-27-300x90.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/1-27-1024x307.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/1-27-768x230.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/1-27-696x209.png 696w, https://www.osradar.com/wp-content/uploads/2019/01/1-27-1068x320.png 1068w" sizes="(max-width: 1361px) 100vw, 1361px" /><figcaption id="caption-attachment-22122" class="wp-caption-text">1.- Installing Java on Ubuntu 20.04 / 18.04</figcaption></figure>
<p>Next, check the java version to ensure that everything is Ok.</p>
<pre class="">:~$ java -version
openjdk version "11.0.8" 2020-07-14
OpenJDK Runtime Environment (build 11.0.8+10-post-Ubuntu-0ubuntu120.04)
OpenJDK 64-Bit Server VM (build 11.0.8+10-post-Ubuntu-0ubuntu120.04, mixed mode, sharing)</pre>
<p>This first step is vital because Apache ActiveMQ requires Java to work. That&#8217;s why we had to install it.</p>
<h2>2. Install Apache ActiveMQ</h2>
<p>Now we can continue with the installation. The best way to install Apache ActiveMQ is through your binaries that we can get from your website. With this, you guarantee that you will have the latest stable version available.</p>
<p>First, download the file.</p>
<pre class="">:~$ cd /opt/
:~$ sudo wget -c http://mirrors.advancedhosters.com/apache/activemq/5.16.0/apache-activemq-5.16.0-bin.tar.gz</pre>
<figure id="attachment_22124" aria-describedby="caption-attachment-22124" style="width: 1352px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-22124 size-full" src="https://www.osradar.com/wp-content/uploads/2019/01/2-25.png" alt="2.- Download Apache ActiveMQ" width="1352" height="245" srcset="https://www.osradar.com/wp-content/uploads/2019/01/2-25.png 1352w, https://www.osradar.com/wp-content/uploads/2019/01/2-25-300x54.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/2-25-1024x186.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/2-25-768x139.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/2-25-696x126.png 696w, https://www.osradar.com/wp-content/uploads/2019/01/2-25-1068x194.png 1068w" sizes="(max-width: 1352px) 100vw, 1352px" /><figcaption id="caption-attachment-22124" class="wp-caption-text">2.- Download Apache ActiveMQ</figcaption></figure>
<p>Decompress it.</p>
<pre class="">:~$ sudo tar xzvf apache-activemq-5.16.0-bin.tar.gz</pre>
<p>Then, create a symbolic link to make easier the access.</p>
<pre class="">:~$ sudo ln -s apache-activemq-5.16.0 activemq
</pre>
<p>Then, create a new user for ActiveMQ. Assign permissions to the folder and then log in as that new user.</p>
<pre>$ sudo useradd activemq
$ sudo chown -RH activemq: /opt/activemq</pre>
<h2>3. Configure Apache ActiveMQ</h2>
<p>First of all, it is necessary to create a systemd service in order to access the program even more easily. To do this, run:</p>
<pre class="">:~$ sudo nano /etc/systemd/system/activemq.service</pre>
<p>And add the following:</p>
<pre class="">[Unit]
Description=Apache ActiveMQ
After=network.target

[Service]
Type=forking

User=activemq
Group=activemq

ExecStart=/opt/activemq/bin/activemq start
ExecStop=/opt/activemq/bin/activemq stop

[Install]
WantedBy=multi-user.target
</pre>
<figure id="attachment_22125" aria-describedby="caption-attachment-22125" style="width: 966px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-22125 size-full" src="https://www.osradar.com/wp-content/uploads/2019/01/3-25.png" alt="3.- Creating a systemd service" width="966" height="320" srcset="https://www.osradar.com/wp-content/uploads/2019/01/3-25.png 966w, https://www.osradar.com/wp-content/uploads/2019/01/3-25-300x99.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/3-25-768x254.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/3-25-696x231.png 696w" sizes="(max-width: 966px) 100vw, 966px" /><figcaption id="caption-attachment-22125" class="wp-caption-text">3.- Creating a systemd service</figcaption></figure>
<p>Now, reload the systemd cache.</p>
<pre class="">:~$ sudo systemctl daemon-reload</pre>
<p><strong><em>NOTE: It is not mandatory to create the file to transform ActiveMQ into a </em>systemd<em> service and in some </em>cases<em>, it can cause problems.</em></strong></p>
<p>You can also start ActiveMQ with this command:</p>
<pre class="">:~$ /opt/activemq/bin/activemq start</pre>
<p>Also, you can use the newly created service:</p>
<pre>:~$ sudo systemctl start activemq</pre>
<p>Or stop it with this command:</p>
<pre class="">:~$ /opt/activemq/bin/activemq stop</pre>
<figure id="attachment_10404" aria-describedby="caption-attachment-10404" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10404" src="https://www.osradar.com/wp-content/uploads/2019/01/6-19.png" alt="6.- Start and stop the ActiveMQ program" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/01/6-19.png 1366w, https://www.osradar.com/wp-content/uploads/2019/01/6-19-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/6-19-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/6-19-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/6-19-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/01/6-19-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/01/6-19-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10404" class="wp-caption-text">4.- Start and stop the ActiveMQ program</figcaption></figure>
<p>Next, let us configure it.</p>
<p>Open the activem.xml file. This file contains all ActiveMQ settings.</p>
<pre class="">:~$ sudo nano /opt/activemq/conf/activemq.xml</pre>
<figure id="attachment_10405" aria-describedby="caption-attachment-10405" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10405" src="https://www.osradar.com/wp-content/uploads/2019/01/7-19.png" alt="7.- The config file" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/01/7-19.png 1366w, https://www.osradar.com/wp-content/uploads/2019/01/7-19-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/7-19-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/7-19-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/7-19-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/01/7-19-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/01/7-19-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10405" class="wp-caption-text">5.- The config file</figcaption></figure>
<h3>Creating a transport connector</h3>
<p>The first step is to configure the transport connector. Edit the file in question and place it in the transport connector section.</p>
<p>It&#8217;s a pretty large file, but with the help of nano, we can quickly find the sections. Press CTRL + W and type &#8220;transport&#8221;.</p>
<figure id="attachment_10406" aria-describedby="caption-attachment-10406" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10406" src="https://www.osradar.com/wp-content/uploads/2019/01/8-16.png" alt="8.-Config file" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/01/8-16.png 1366w, https://www.osradar.com/wp-content/uploads/2019/01/8-16-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/8-16-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/8-16-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/8-16-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/01/8-16-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/01/8-16-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10406" class="wp-caption-text">6.-Config file</figcaption></figure>
<p>The syntax is very simple:</p>
<ul>
<li>broker_name: is the brokerName attribute of the tag broker of activemq.xml</li>
<li>transportOptions: different communication options.</li>
</ul>
<p>Now, the parameters URI is the in the connection type function. For example, you can specify a broker using TCP or VM.</p>
<p>Let us see an example:</p>
<pre class="">&lt;transportConnection name="openwire" uri="tcp://192.168.3.4:8765?trace=false&amp;soTimeout=60000"&gt;</pre>
<p>On the URI option, you have to add the protocol, the port, and the options.</p>
<figure id="attachment_10408" aria-describedby="caption-attachment-10408" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10408" src="https://www.osradar.com/wp-content/uploads/2019/01/9-11.png" alt="9.- Creating a transport connector" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/01/9-11.png 1366w, https://www.osradar.com/wp-content/uploads/2019/01/9-11-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/9-11-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/9-11-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/9-11-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/01/9-11-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/01/9-11-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10408" class="wp-caption-text">7.- Creating a transport connector</figcaption></figure>
<h3>System usage</h3>
<p>It is also possible to limit the use of system resources. In the same file in the system usage section, you can configure it.</p>
<figure id="attachment_10409" aria-describedby="caption-attachment-10409" style="width: 798px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10409" src="https://www.osradar.com/wp-content/uploads/2019/01/10-9.png" alt="10.- System usage" width="798" height="302" srcset="https://www.osradar.com/wp-content/uploads/2019/01/10-9.png 798w, https://www.osradar.com/wp-content/uploads/2019/01/10-9-300x114.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/10-9-768x291.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/10-9-696x263.png 696w" sizes="(max-width: 798px) 100vw, 798px" /><figcaption id="caption-attachment-10409" class="wp-caption-text">8.- System usage</figcaption></figure>
<p>There you can limit, for example, the use of the hard disk and the RAM memory.</p>
<h3>Finals settings</h3>
<p>These are basic ActiveMQ configurations. One thing you can do is prevent the storage buffer from ending up with all the RAM. For that, in the same configuration file go to the policy entry section.</p>
<p>You can limit all the messages to a specific size.</p>
<figure id="attachment_10411" aria-describedby="caption-attachment-10411" style="width: 693px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10411" src="https://www.osradar.com/wp-content/uploads/2019/01/11-7.png" alt="11.- Limit the messages" width="693" height="319" srcset="https://www.osradar.com/wp-content/uploads/2019/01/11-7.png 693w, https://www.osradar.com/wp-content/uploads/2019/01/11-7-300x138.png 300w" sizes="(max-width: 693px) 100vw, 693px" /><figcaption id="caption-attachment-10411" class="wp-caption-text">9.- Limit the messages</figcaption></figure>
<p>Another thing ActiveMQ has a built-in database manager called KahaDB that is mainly in charge of storing messages. You can replace it with <a href="https://www.osradar.com/making-a-mysql-database-backup-with-mysqldump/" rel="noopener">MySQL</a> or <a href="https://www.osradar.com/optimize-mysql-mariadb-on-linux/" rel="noopener">MariaDB</a> but KahaDB is very superior in performance, so it is not recommended to do this.</p>
<p>Finally, start ActiveMQ. Then, open your web browser and go to http://SERVER_IP:8161.</p>
<pre class="">:~$ /opt/activemq/bin/activemq start</pre>
<figure id="attachment_10415" aria-describedby="caption-attachment-10415" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10415" src="https://www.osradar.com/wp-content/uploads/2019/01/12-7.png" alt="12.- ActiveMQ web interface" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2019/01/12-7.png 1366w, https://www.osradar.com/wp-content/uploads/2019/01/12-7-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/12-7-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/12-7-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/12-7-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/01/12-7-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/01/12-7-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2019/01/12-7-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10415" class="wp-caption-text">10.- ActiveMQ web interface</figcaption></figure>
<h2>Conclusion</h2>
<p>It is clear that ActiveMQ is an enterprise infrastructure software. Known and very popular for being efficient and a benchmark in its area.</p>
<p>Please share this post with your friends. Join <a href="https://t.me/osradar" target="_blank" rel="noopener noreferrer">our Telegram Channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-apachemq-ubuntu-20-04-18-04/">Install Apache ActiveMQ on Ubuntu 20.04 / 18.04</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-apachemq-ubuntu-20-04-18-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install Mantis Bug Tracker on Ubuntu 18.04?</title>
		<link>https://www.osradar.com/install-mantis-bug-tracker-ubuntu-1804/</link>
					<comments>https://www.osradar.com/install-mantis-bug-tracker-ubuntu-1804/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 05 Feb 2019 05:10:47 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[bionic]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[bug tracker]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mantis bug tracker]]></category>
		<category><![CDATA[mariadb]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[tuorial]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=10506</guid>

					<description><![CDATA[<p>f you are a developer you know that bugs are always present in the process of building a program. Especially if we work as a team on certain projects. Therefore, it is necessary to have software that can distribute the workflow of the project or simply track these problems. That is why today I will [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-mantis-bug-tracker-ubuntu-1804/">Install Mantis Bug Tracker on Ubuntu 18.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>f you are a developer you know that bugs are always present in the process of building a program. Especially if we work as a team on certain projects. Therefore, it is necessary to have software that can distribute the workflow of the project or simply track these problems. That is why today I will show you how to install Mantis Bug tracker on a server with Ubuntu 18.04.</p>
<p><a href="https://www.mantisbt.org/" rel="noopener">Mantis Bug Tracker</a> is an open source application that is used to test automated solutions, keeping a historical record of alterations and managing work teams remotely.</p>
<p>On the other hand, Mantis Bug Tracker allows the team to report errors and organize who can take care of them. Users are able to get started in minutes and start managing their projects while collaborating with their teammates and clients effectively.</p>
<p>So, let us start.</p>
<h2>1.- Install Apache web server and PHP</h2>
<p>Mantis Bug Tracker requires a web server to work. You can use <a href="https://www.osradar.com/how-to-install-apache-gui-on-debian-9/" rel="noopener">Apache</a> or <a href="https://www.osradar.com/install-nginx-from-the-source-code-ubuntu-18-04/" rel="noopener">Nginx</a> but in this case, I will use Apache because it is very easy to use.</p>
<p>So, open a terminal and run:</p>
<pre class="">:~$ sudo apt install apache2</pre>
<figure id="attachment_10509" aria-describedby="caption-attachment-10509" style="width: 1259px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10509" src="https://www.osradar.com/wp-content/uploads/2019/02/1-2.png" alt="1.- Install Apache2" width="1259" height="405" srcset="https://www.osradar.com/wp-content/uploads/2019/02/1-2.png 1259w, https://www.osradar.com/wp-content/uploads/2019/02/1-2-300x97.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/1-2-768x247.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/1-2-1024x329.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/1-2-696x224.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/1-2-1068x344.png 1068w" sizes="(max-width: 1259px) 100vw, 1259px" /><figcaption id="caption-attachment-10509" class="wp-caption-text">1.- Install Apache2</figcaption></figure>
<p>After that, enable and start the Apache web server service.</p>
<pre class="">:~$ sudo systemctl enable apache2
:~$ sudo systemctl start apache2</pre>
<figure id="attachment_10510" aria-describedby="caption-attachment-10510" style="width: 886px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10510" src="https://www.osradar.com/wp-content/uploads/2019/02/2-2.png" alt="2.- Enabling apache2 service" width="886" height="193" srcset="https://www.osradar.com/wp-content/uploads/2019/02/2-2.png 886w, https://www.osradar.com/wp-content/uploads/2019/02/2-2-300x65.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/2-2-768x167.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/2-2-696x152.png 696w" sizes="(max-width: 886px) 100vw, 886px" /><figcaption id="caption-attachment-10510" class="wp-caption-text">2.- Enabling apache2 service</figcaption></figure>
<p>Next, you have to install PHP and wget. The program is built using PHP as the programming language. Wget is a CLI tool for download files.</p>
<pre class="">:~$ sudo apt install php php-cli php-fpm php-mysql php-zip php-gd php-mbstring php-curl php-xml php-pear php-bcmath</pre>
<figure id="attachment_10511" aria-describedby="caption-attachment-10511" style="width: 1340px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10511" src="https://www.osradar.com/wp-content/uploads/2019/02/3-2.png" alt="3.- Install PHP" width="1340" height="480" srcset="https://www.osradar.com/wp-content/uploads/2019/02/3-2.png 1340w, https://www.osradar.com/wp-content/uploads/2019/02/3-2-300x107.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/3-2-768x275.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/3-2-1024x367.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/3-2-696x249.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/3-2-1068x383.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/3-2-1173x420.png 1173w" sizes="(max-width: 1340px) 100vw, 1340px" /><figcaption id="caption-attachment-10511" class="wp-caption-text">3.- Install PHP</figcaption></figure>
<p>Then, you have to test the PHP installation. Create a file in the <code>/var/www/html/</code> folder named <code>test.php</code>.</p>
<pre class="">:~$ sudo nano /var/www/html/test.php</pre>
<p>Now, put the following:</p>
<pre class="">&lt;?php
phpinfo();
?&gt;</pre>
<figure id="attachment_10512" aria-describedby="caption-attachment-10512" style="width: 825px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10512" src="https://www.osradar.com/wp-content/uploads/2019/02/4-1.png" alt="4.- PHP info" width="825" height="162" srcset="https://www.osradar.com/wp-content/uploads/2019/02/4-1.png 825w, https://www.osradar.com/wp-content/uploads/2019/02/4-1-300x59.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/4-1-768x151.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/4-1-696x137.png 696w" sizes="(max-width: 825px) 100vw, 825px" /><figcaption id="caption-attachment-10512" class="wp-caption-text">4.- PHP info</figcaption></figure>
<p>Now, save the changes by pressing CTRL + O and next close the file by pressing CTRL + X.</p>
<p>Next, restart Apache.</p>
<pre class="">:~$ sudo systemctl restart apache2</pre>
<p>After that, open the web browser and go to <code>http://SERVER_IP/test.php</code>.</p>
<figure id="attachment_10513" aria-describedby="caption-attachment-10513" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10513" src="https://www.osradar.com/wp-content/uploads/2019/02/5-2.png" alt="5.- PHP info function" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2019/02/5-2.png 1366w, https://www.osradar.com/wp-content/uploads/2019/02/5-2-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/5-2-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/5-2-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/5-2-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/02/5-2-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/5-2-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/5-2-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10513" class="wp-caption-text">5.- PHP info function</figcaption></figure>
<p>So, PHP and Apache are correctly installed.</p>
<h2>2. Install MariaDB</h2>
<p>The next step to install Mantis Bug Tracker is to install a database driver. Currently, Mantis is compatible with <a href="https://www.osradar.com/password-hashing-mysql-mariadb/" rel="noopener">MariaDB</a>, MySQL, and <a href="https://osradar.com/tag/postgresql/" rel="noopener">PostgreSQL</a>. I will choose MariaDB because it is in the official repositories.</p>
<pre class="">:~$ sudo apt install mariadb-server</pre>
<figure id="attachment_10514" aria-describedby="caption-attachment-10514" style="width: 1306px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10514" src="https://www.osradar.com/wp-content/uploads/2019/02/6-2.png" alt="6.- Install MariaDB" width="1306" height="469" srcset="https://www.osradar.com/wp-content/uploads/2019/02/6-2.png 1306w, https://www.osradar.com/wp-content/uploads/2019/02/6-2-300x108.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/6-2-768x276.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/6-2-1024x368.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/6-2-696x250.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/6-2-1068x384.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/6-2-1170x420.png 1170w" sizes="(max-width: 1306px) 100vw, 1306px" /><figcaption id="caption-attachment-10514" class="wp-caption-text">6.- Install MariaDB</figcaption></figure>
<p>After that, set a root password using the <code>mysql_secure_installation</code> script.</p>
<pre class="">:~$ sudo mysql_secure_installation</pre>
<figure id="attachment_10515" aria-describedby="caption-attachment-10515" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10515" src="https://www.osradar.com/wp-content/uploads/2019/02/7-2.png" alt="7.- Using the mysql_secure_installation script" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/02/7-2.png 1366w, https://www.osradar.com/wp-content/uploads/2019/02/7-2-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/7-2-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/7-2-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/7-2-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/7-2-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/7-2-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10515" class="wp-caption-text">7.- Using the mysql_secure_installation script</figcaption></figure>
<p>You can also make other settings by answering each question. I&#8217;ll do it this way: Y, N, Y, Y.</p>
<p>Then, it is necessary to create a new database and user for Mantis.</p>
<pre class="">:~$ sudo mysql -u root -p
CREATE DATABASE mantisdb;
GRANT ALL PRIVILEGES ON mantisdb.* TO 'mantisuser'@'localhost' IDENTIFIED BY 'mantispss';
FLUSH PRIVILEGES;
exit;
</pre>
<figure id="attachment_10516" aria-describedby="caption-attachment-10516" style="width: 945px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10516" src="https://www.osradar.com/wp-content/uploads/2019/02/8-2.png" alt="8.- Creating a new database for Mantis" width="945" height="426" srcset="https://www.osradar.com/wp-content/uploads/2019/02/8-2.png 945w, https://www.osradar.com/wp-content/uploads/2019/02/8-2-300x135.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/8-2-768x346.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/8-2-696x314.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/8-2-932x420.png 932w" sizes="(max-width: 945px) 100vw, 945px" /><figcaption id="caption-attachment-10516" class="wp-caption-text">8.- Creating a new database for Mantis</figcaption></figure>
<h2>3. Install Mantis Bug Tracker</h2>
<p>At the time of writing this post the latest stable version of Mantis is 2.19.0 so let&#8217;s download it.</p>
<pre class="">:~$ wget https://liquidtelecom.dl.sourceforge.net/project/mantisbt/mantis-stable/2.19.0/mantisbt-2.19.0.zip</pre>
<figure id="attachment_10524" aria-describedby="caption-attachment-10524" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10524" src="https://www.osradar.com/wp-content/uploads/2019/02/9-2.png" alt="9.- Download mantis" width="1365" height="233" srcset="https://www.osradar.com/wp-content/uploads/2019/02/9-2.png 1365w, https://www.osradar.com/wp-content/uploads/2019/02/9-2-300x51.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/9-2-768x131.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/9-2-1024x175.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/9-2-696x119.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/9-2-1068x182.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-10524" class="wp-caption-text">9.- Download mantis</figcaption></figure>
<p>Next, decompress it.</p>
<pre class="">:~$ unzip mantisbt-2.19.0.zip</pre>
<p>And move it to the /srv folder.</p>
<pre class="">:~$ sudo mv mantisbt-release-2.19.0/ /srv/mantis/</pre>
<div class="mceTemp"></div>
<figure id="attachment_10525" aria-describedby="caption-attachment-10525" style="width: 611px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10525" src="https://www.osradar.com/wp-content/uploads/2019/02/10-2.png" alt="10.- Moving the folder" width="611" height="153" srcset="https://www.osradar.com/wp-content/uploads/2019/02/10-2.png 611w, https://www.osradar.com/wp-content/uploads/2019/02/10-2-300x75.png 300w" sizes="(max-width: 611px) 100vw, 611px" /><figcaption id="caption-attachment-10525" class="wp-caption-text">10.- Moving the folder</figcaption></figure>
<p>Set the right permissions to the folder.</p>
<pre class="">:~$ sudo chown -R www-data:www-data /srv/mantisbt-2.19.0/
:~$ sudo chmod -R 755 /srv/mantisbt-2.19.0/</pre>
<div class="mceTemp"></div>
<figure id="attachment_10527" aria-describedby="caption-attachment-10527" style="width: 843px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10527" src="https://www.osradar.com/wp-content/uploads/2019/02/11-1-1.png" alt="11.- set the right permissions" width="843" height="150" srcset="https://www.osradar.com/wp-content/uploads/2019/02/11-1-1.png 843w, https://www.osradar.com/wp-content/uploads/2019/02/11-1-1-300x53.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/11-1-1-768x137.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/11-1-1-696x124.png 696w" sizes="(max-width: 843px) 100vw, 843px" /><figcaption id="caption-attachment-10527" class="wp-caption-text">11.- set the right permissions</figcaption></figure>
<p>Create a new <a href="https://www.osradar.com/how-to-configure-an-apache-virtual-host-on-debian-9/">virtual host</a> for Mantis.</p>
<pre class="">:~$ sudo nano /etc/apache2/sites-enabled/mantis.conf</pre>
<p>Then, add the following.</p>
<pre class="">&lt;VirtualHost *:80&gt;
        ServerAdmin admin@your-server.com
        DocumentRoot "/srv/mantisbt-2.19.0"
        ServerName bt.osradar.lan
        ServerAlias www.bt.osradar.lan
        ErrorLog "/var/log/apache2/mantisbt-error_log"
        TransferLog "/var/log/apache2/mantisbt-access_log"
        &lt;Directory "/srv/mantisbt-2.19.0"&gt;
                DirectoryIndex index.php index.html
                Options FollowSymLinks
                AllowOverride None
                Require all granted
                Options MultiViews FollowSymlinks
        &lt;/Directory&gt;
&lt;/VirtualHost&gt;</pre>
<figure id="attachment_10523" aria-describedby="caption-attachment-10523" style="width: 868px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10523" src="https://www.osradar.com/wp-content/uploads/2019/02/12-2.png" alt="12.- Creating a new virtualhost" width="868" height="412" srcset="https://www.osradar.com/wp-content/uploads/2019/02/12-2.png 868w, https://www.osradar.com/wp-content/uploads/2019/02/12-2-300x142.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/12-2-768x365.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/12-2-696x330.png 696w" sizes="(max-width: 868px) 100vw, 868px" /><figcaption id="caption-attachment-10523" class="wp-caption-text">12.- Creating a new virtual host</figcaption></figure>
<p>So, restart apache.</p>
<pre class="">:~$ sudo systemctl restart apache2</pre>
<p>And complete the installation using the web interface.</p>
<h2>4. Complete the installation</h2>
<p>Now, go to the web browser and complete the installation.</p>
<figure id="attachment_10528" aria-describedby="caption-attachment-10528" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10528" src="https://www.osradar.com/wp-content/uploads/2019/02/13-1.png" alt="13.- Install Mantis Bug Tracker" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2019/02/13-1.png 1366w, https://www.osradar.com/wp-content/uploads/2019/02/13-1-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/13-1-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/13-1-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/13-1-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/02/13-1-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/13-1-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/13-1-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10528" class="wp-caption-text">13.- Install Mantis Bug Tracker</figcaption></figure>
<p>After that, you have to add the MySQL credentials.</p>
<figure id="attachment_10529" aria-describedby="caption-attachment-10529" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10529" src="https://www.osradar.com/wp-content/uploads/2019/02/14-1.png" alt="14.- MySQL credentials" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2019/02/14-1.png 1366w, https://www.osradar.com/wp-content/uploads/2019/02/14-1-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/14-1-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/14-1-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/14-1-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/02/14-1-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/14-1-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/14-1-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10529" class="wp-caption-text">14.- MySQL credentials</figcaption></figure>
<p>If everything is OK, at the end of the page, you will see this.</p>
<figure id="attachment_10530" aria-describedby="caption-attachment-10530" style="width: 1354px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10530" src="https://www.osradar.com/wp-content/uploads/2019/02/15-1.png" alt="15.- It's ok" width="1354" height="411" srcset="https://www.osradar.com/wp-content/uploads/2019/02/15-1.png 1354w, https://www.osradar.com/wp-content/uploads/2019/02/15-1-300x91.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/15-1-768x233.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/15-1-1024x311.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/15-1-696x211.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/15-1-1068x324.png 1068w" sizes="(max-width: 1354px) 100vw, 1354px" /><figcaption id="caption-attachment-10530" class="wp-caption-text">15.- It&#8217;s ok</figcaption></figure>
<p>Next, log in. The user is administrator and the password is root.</p>
<figure id="attachment_10531" aria-describedby="caption-attachment-10531" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10531" src="https://www.osradar.com/wp-content/uploads/2019/02/16-1.png" alt="16.- Mantris Log in" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2019/02/16-1.png 1366w, https://www.osradar.com/wp-content/uploads/2019/02/16-1-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/16-1-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/16-1-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/16-1-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/02/16-1-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/16-1-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/16-1-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10531" class="wp-caption-text">16.- Mantris Log in</figcaption></figure>
<p>Finally, you will see the main screen.</p>
<figure id="attachment_10532" aria-describedby="caption-attachment-10532" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10532" src="https://www.osradar.com/wp-content/uploads/2019/02/17-1.png" alt="17.- Dashboard" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2019/02/17-1.png 1366w, https://www.osradar.com/wp-content/uploads/2019/02/17-1-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/17-1-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/17-1-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/17-1-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/02/17-1-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/17-1-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/17-1-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10532" class="wp-caption-text">17.- Dashboard</figcaption></figure>
<p>So, that&#8217;s it.</p>
<h2>Conclusion</h2>
<p>The Mantis installation process is quite simple but it will help you to manage and locate project bugs in an easy and agile way.</p>
<p>Please share this post with your friends.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-mantis-bug-tracker-ubuntu-1804/">Install Mantis Bug Tracker on Ubuntu 18.04?</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-mantis-bug-tracker-ubuntu-1804/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
