{"id":7372,"date":"2020-12-10T23:24:38","date_gmt":"2020-12-10T20:24:38","guid":{"rendered":"https:\/\/kifarunix.com\/?p=7372"},"modified":"2024-03-15T09:08:02","modified_gmt":"2024-03-15T06:08:02","slug":"install-mantis-bug-tracker-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-mantis-bug-tracker-on-ubuntu-20-04\/","title":{"rendered":"Install Mantis Bug Tracker on Ubuntu 20.04"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"777\" height=\"566\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/12\/mantisbt.png\" alt=\"Install Mantis Bug Tracker on Ubuntu 20.04\" class=\"wp-image-7373\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/12\/mantisbt.png?v=1607575190 777w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/12\/mantisbt-768x559.png?v=1607575190 768w\" sizes=\"(max-width: 777px) 100vw, 777px\" \/><\/figure><\/div>\n\n\n<p>Welcome to our tutorial on how to install Mantis Bug Tracker on Ubuntu 20.04. <a href=\"https:\/\/www.mantisbt.org\/\" target=\"_blank\" aria-label=\"Mantis Bug Tracker (MantisBT) (opens in a new tab)\" rel=\"noreferrer noopener\" class=\"rank-math-link\">Mantis Bug Tracker (MantisBT)<\/a>, is a popular free web-based&nbsp;bug tracking system. It is written in PHP and supports to multiple database backends including MySQL, MS SQL and PostgreSQL.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installing Mantis BT on Ubuntu 20.04<\/h2>\n\n\n\n<p>MantisBT is PHP based and supports a variety of database backends as mentioned above. In this guide, however, we will install Mantis bug tracker with MySQL 8 as the database backend. This therefore means that you need to a LAMP stack up and running for you to run Mantis bug tracker.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Install LAMP Stack on Ubuntu 20.04<\/h3>\n\n\n\n<p>As already mentioned above, in this guide, we will setup MantisBT to use MySQL 8 database backend. As such, begin by installing LAMP stack on Ubuntu 20.04.<\/p>\n\n\n\n<p>We have already covered the installation of LAMP Stack on Ubuntu 20.04 in a separate tutorial whose link is provided below;<\/p>\n\n\n\n<p><a aria-label=\"Install LAMP Stack on Ubuntu 20.04 (opens in a new tab)\" rel=\"noreferrer noopener\" href=\"https:\/\/kifarunix.com\/install-lamp-stack-on-ubuntu-20-04\/\" target=\"_blank\" class=\"rank-math-link\">Install LAMP Stack on Ubuntu 20.04<\/a><\/p>\n\n\n\n<p>Install other PHP extensions and other packages;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install php-{mysql,date,json,mbstring,curl,gd,fileinfo,ldap,cli,intl,xml,zip,bcmath,pear} libpcre3 libpcre3-dev zip<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Create MantisBT Database and Database User<\/h3>\n\n\n\n<p> Login to MySQL and create MantisBT database and database user. Be sure to replace the names of the database, database user and the password.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>mysql<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>create database mantisbt;<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>create user mantisadmin@localhost identified by 'changeme';<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>grant all on mantisbt.* to mantisadmin@localhost;<\/code><\/pre>\n\n\n\n<p>Note that the Database root account is required to setup MantisBT. By default, MySQL 8 root account uses auth_socket authentication plugin and it doesn&#8217;t have any password set. Hence, change the authentication plugin to the mysql native plugin and set the password for MySQL root account.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>UPDATE mysql.user SET plugin = 'mysql_native_password' WHERE user = 'root' AND plugin = 'auth_socket';\nALTER USER root@localhost identified by 'changeme';<\/code><\/pre>\n\n\n\n<p>Reload privileges tables and exit the database connection.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>flush privileges;\nquit<\/code><\/pre>\n\n\n\n<p>Restart MySQL database service.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl restart mysql<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Install Mantis BT<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Download MantisBT archive<\/h4>\n\n\n\n<p>Download the latest stable MantisBT release from the <a aria-label=\"downloads (opens in a new tab)\" class=\"rank-math-link\" href=\"https:\/\/www.mantisbt.org\/download.php\" target=\"_blank\" rel=\"noreferrer noopener\">downloads<\/a> page.<\/p>\n\n\n\n<p>You can simply obtain the url and pull it using wget. For example, to download the current stable release (v2.24.3) as of this writing, simply run the command below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>wget https:\/\/tenet.dl.sourceforge.net\/project\/mantisbt\/mantis-stable\/2.24.3\/mantisbt-2.24.3.zip<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Extract MantisBT Archive<\/h4>\n\n\n\n<p>Extract MantisBT and move it to your default web root directory.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>unzip mantisbt-2.24.3.zip<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>mv mantisbt-2.24.3 \/var\/www\/html\/mantisbt<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Create Apache MantisBT Site Configuration<\/h4>\n\n\n\n<p>Next, create Apache MantisBT site configuration.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>vim \/etc\/apache2\/sites-available\/mantisbt.conf<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;VirtualHost *:80&gt;\n    DocumentRoot \"\/var\/www\/html\/mantisbt\"\n\n    ServerName mantisbt.kifarunix-demo.com\n\n    ErrorLog \"\/var\/log\/apache2\/mantisbt_error_log\"\n    CustomLog \"\/var\/log\/apache2\/mantisbt_access_log\" combined\n\n        &lt;Directory \"\/var\/www\/html\/mantisbt\/\"&gt;\n            DirectoryIndex index.php \n            Options -Indexes +FollowSymLinks\n            AllowOverride All\n            Require all granted\n        &lt;\/Directory&gt;\n\n&lt;\/VirtualHost&gt;<\/code><\/pre>\n\n\n\n<p>Save and exit the configuration file. Be sure to set the proper settings as per your setup.<\/p>\n\n\n\n<p>Check Apache Syntax configuration;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apachectl -t<\/code><\/pre>\n\n\n\n<p>Disable the default Apache site;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>a2dissite 000-default.conf<\/code><\/pre>\n\n\n\n<p>Enable MantisBT site;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>a2ensite mantisbt.conf<\/code><\/pre>\n\n\n\n<p>Change the ownership of the MantisBT web root directory;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>chown -R www-data: \/var\/www\/html\/mantisbt<\/code><\/pre>\n\n\n\n<p>Restart Apache;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl restart apache2<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Accessing MantisBT Web Interface<\/h4>\n\n\n\n<p>To allow external access, you need to open port 80\/tcp on UFW if it is running.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ufw allow Apache<\/code><\/pre>\n\n\n\n<p>Now access MantisBT using the URL <strong><code>http:\/\/server-IP-or-domain<\/code><\/strong>.<\/p>\n\n\n\n<p>Go through the Pre-Installation Check and ensure everything is good.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1884\" height=\"588\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/12\/precheck-install.png\" alt=\"\" class=\"wp-image-7376\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/12\/precheck-install.png?v=1607631108 1884w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/12\/precheck-install-768x240.png?v=1607631108 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/12\/precheck-install-1536x479.png?v=1607631108 1536w\" sizes=\"(max-width: 1884px) 100vw, 1884px\" \/><\/figure>\n\n\n\n<p>Configure MantisBT database connections;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1875\" height=\"906\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/12\/mantisbt-db-conx.png\" alt=\"\" class=\"wp-image-7377\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/12\/mantisbt-db-conx.png?v=1607631152 1875w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/12\/mantisbt-db-conx-768x371.png?v=1607631152 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/12\/mantisbt-db-conx-1536x742.png?v=1607631152 1536w\" sizes=\"(max-width: 1875px) 100vw, 1875px\" \/><\/figure>\n\n\n\n<p>Click <code><strong>Install\/Upgrade Database<\/strong><\/code> button to install setup MantisBT DB.<\/p>\n\n\n\n<p>Once the installation completes, you should see such an interface.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1879\" height=\"694\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/12\/mantisbt-installation-complete.png\" alt=\"\" class=\"wp-image-7378\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/12\/mantisbt-installation-complete.png?v=1607631198 1879w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/12\/mantisbt-installation-complete-768x284.png?v=1607631198 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/12\/mantisbt-installation-complete-1536x567.png?v=1607631198 1536w\" sizes=\"(max-width: 1879px) 100vw, 1879px\" \/><\/figure>\n\n\n\n<p>Rename the admin directory and click <strong>Continue<\/strong> to proceed to the login page.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>mv \/var\/www\/html\/mantisbt\/admin{,-old}<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"963\" height=\"589\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/12\/mantisbt-login.png\" alt=\"\" class=\"wp-image-7379\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/12\/mantisbt-login.png?v=1607631271 963w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/12\/mantisbt-login-768x470.png?v=1607631271 768w\" sizes=\"(max-width: 963px) 100vw, 963px\" \/><\/figure>\n\n\n\n<p>The default login credentials are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Username: <strong><code>administrator<\/code><\/strong><\/li>\n\n\n\n<li>Password: <strong><code>root<\/code><\/strong><\/li>\n<\/ul>\n\n\n\n<p>Upon successful login, you land on MantisBT dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1896\" height=\"920\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/12\/MantisBT-dashboard.png\" alt=\"\" class=\"wp-image-7380\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/12\/MantisBT-dashboard.png?v=1607631298 1896w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/12\/MantisBT-dashboard-768x373.png?v=1607631298 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/12\/MantisBT-dashboard-1536x745.png?v=1607631298 1536w\" sizes=\"(max-width: 1896px) 100vw, 1896px\" \/><\/figure>\n\n\n\n<p>Reset your admin password.<\/p>\n\n\n\n<p>MantisBT issues Dashboard.<\/p>\n\n\n\n<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/12\/mantis-issues.png\" class=\"td-modal-image\"><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1902\" height=\"661\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/12\/mantis-issues.png\" alt=\"Install Mantis Bug Tracker on Ubuntu 20.04\" class=\"wp-image-7381\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/12\/mantis-issues.png?v=1607631317 1902w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/12\/mantis-issues-768x267.png?v=1607631317 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/12\/mantis-issues-1536x534.png?v=1607631317 1536w\" sizes=\"(max-width: 1902px) 100vw, 1902px\" \/><\/figure><\/a><\/div>\n\n\n\n<p>You can now continue to explore MantisBT.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Reference<\/h3>\n\n\n\n<p><a href=\"https:\/\/www.mantisbt.org\/docs\/master\/en-US\/Admin_Guide\/html\/admin.install.new.html\" target=\"_blank\" aria-label=\"MantisBT Administration Guide (opens in a new tab)\" rel=\"noreferrer noopener\" class=\"rank-math-link\">MantisBT Administration Guide<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Other Guides<\/h3>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-bugzilla-bug-tracker-on-ubuntu-20-04\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\" class=\"rank-math-link\">Install Bugzilla Bug Tracker on Ubuntu 20.04<\/a><\/p>\n\n\n\n<p><a aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-bugzilla-bug-tracker-on-centos-8\/\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"rank-math-link\">Install Bugzilla Bug Tracker on CentOS 8<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-and-setup-lemp-stack-on-ubuntu-20-04\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\" class=\"rank-math-link\">Install and Setup LEMP Stack on Ubuntu 20.04<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Welcome to our tutorial on how to install Mantis Bug Tracker on Ubuntu 20.04. Mantis Bug Tracker (MantisBT), is a popular free web-based&nbsp;bug tracking system.<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[2942,121],"tags":[2934,2946,2947,2948,2944,2943,2945,1200],"class_list":["post-7372","post","type-post","status-publish","format-standard","hentry","category-bug-tracker","category-howtos","tag-bug-tracker","tag-bug-tracker-ubuntu-20-04","tag-install-mantis-bug-tracker-ubuntu-20-04","tag-install-mantis-ubuntu-20-04","tag-install-mantisbt-ubuntu-20-04","tag-mantis-bug-tracker","tag-mantis-ubuntu-20-04","tag-ubuntu-20-04","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/7372"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=7372"}],"version-history":[{"count":3,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/7372\/revisions"}],"predecessor-version":[{"id":21571,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/7372\/revisions\/21571"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=7372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=7372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=7372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}