{"id":7383,"date":"2020-12-14T19:34:26","date_gmt":"2020-12-14T16:34:26","guid":{"rendered":"https:\/\/kifarunix.com\/?p=7383"},"modified":"2024-03-15T09:06:14","modified_gmt":"2024-03-15T06:06:14","slug":"install-mantis-bug-tracker-on-debian","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-mantis-bug-tracker-on-debian\/","title":{"rendered":"Install Mantis Bug Tracker on Debian 10"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"776\" height=\"491\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/12\/mantisbt-debian.png\" alt=\"Install Mantis Bug Tracker on Debian 10\" class=\"wp-image-7392\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/12\/mantisbt-debian.png?v=1607963103 776w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/12\/mantisbt-debian-768x486.png?v=1607963103 768w\" sizes=\"(max-width: 776px) 100vw, 776px\" \/><\/figure><\/div>\n\n\n<p>Welcome to our tutorial on how to installing Mantis Bug Tracker. <a aria-label=\"Mantis Bug Tracker (MantisBT) (opens in a new tab)\" class=\"rank-math-link\" href=\"https:\/\/www.mantisbt.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">Mantis Bug Tracker (MantisBT)<\/a>, is a popular free web-based\u00a0bug 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 Bug Tracker on Debian 10<\/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 MariaDB as the database backend. This therefore means that you need to a LAMP stack up and running for you to run Mantis bug tracker on Debian 10.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Install LAMP Stack on Debian 10<\/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 Debian 10.<\/p>\n\n\n\n<p>We have already covered the installation of LAMP Stack on Debian 10 in a separate tutorial whose link is provided below;<\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-lamp-stack-with-mariadb-10-on-debian-10-buster\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\" class=\"rank-math-link\">Install LAMP Stack on Debian 10<\/a><\/p>\n\n\n\n<p>The guide reference above uses PHP 7.3. However, if you need to install PHP 7.4, add SURY PPA repos and proceed as follows;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt -y install lsb-release apt-transport-https ca-certificates wget<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>wget -O \/etc\/apt\/trusted.gpg.d\/php.gpg https:\/\/packages.sury.org\/php\/apt.gpg<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>echo \"deb https:\/\/packages.sury.org\/php\/ $(lsb_release -sc) main\" | sudo tee \/etc\/apt\/sources.list.d\/php.list<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt update<\/code><\/pre>\n\n\n\n<p>Next, install PHP 7.4 and other other PHP extensions and other packages;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install php libapache2-mod-php php-{mysql,date,json,mbstring,curl,gd,ldap,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<p>If you have enabled password authentication;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>mysql -u root -p<\/code><\/pre>\n\n\n\n<p>Then create database and database user;<\/p>\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>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 MariaDB database service.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl restart mariadb<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Installing Mantis Bug Tracker <\/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 (ufw is).<\/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=\"Install Mantis Bug Tracker on Debian 10\" 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<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=\"\" 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>\n\n\n\n<p>You can now continue to explore MantisBT.<\/p>\n\n\n\n<p>That marks the end of our guide on how to install Mantis Bug Tracker on Debian 10.<\/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 aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-bugzilla-bug-tracker-on-ubuntu-20-04\/\" target=\"_blank\" 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 aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-and-setup-lemp-stack-on-ubuntu-20-04\/\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"rank-math-link\">Install and Setup LEMP Stack on Ubuntu 20.04<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-lemp-stack-on-debian-10-buster\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\" class=\"rank-math-link\">Install LEMP Stack on Debian 10 Buster<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Welcome to our tutorial on how to installing Mantis Bug Tracker. Mantis Bug Tracker (MantisBT), is a popular free web-based\u00a0bug tracking system. It is written<\/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,2952,997,2950,2949,2951],"class_list":["post-7383","post","type-post","status-publish","format-standard","hentry","category-bug-tracker","category-howtos","tag-bug-tracker","tag-bug-tracker-install-debian-10","tag-debian-10","tag-debian-10-mantis-bug-tracker","tag-install-mantis-bug-tracker-debian-10","tag-mantis-bt","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/7383"}],"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=7383"}],"version-history":[{"count":6,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/7383\/revisions"}],"predecessor-version":[{"id":21569,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/7383\/revisions\/21569"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=7383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=7383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=7383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}