How to install Mantis Bug tracker on CentOS 7 using Nginx, MariaDB and PHP 7
To install Mantis Bug tracker on CentOS 7 using Nginx, MariaDB and PHP 7
Mantis is a free and popular open source bug tracking system. It is written in PHP and supports all types of database server. It provides a professional dashboard to manage bugs assigned to the user. It supports powerful access control which provides per project base user access. It is very flexible, you can customize the issue fields, notifications, and workflow. Before starting the installation procedure, make sure that the target system contains LEMP environment for the application to work in. This tutorial covers the ground on the installation of Mantis Bug tracker on CentOS 7 in LEMP environment.
Installation procedure
To proceed with the installation procedure, go to its official website and get the package link in latest stable version and download it using wget command in your terminal followed by the download link.
[root@linuxhelp ~]# wget https://sourceforge.net/projects/mantisbt/files/mantis-stable/2.6.0/mantisbt-2.6.0.tar.gz/download
--2017-09-11 12:25:31-- https://sourceforge.net/projects/mantisbt/files/mantis-stable/2.6.0/mantisbt-2.6.0.tar.gz/download
Resolving sourceforge.net (sourceforge.net)... 216.34.181.60
Connecting to sourceforge.net (sourceforge.net)|216.34.181.60|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://downloads.sourceforge.net/project/mantisbt/mantis-stable/2.6.0/mantisbt-2.6.0.tar.gz?r=& ts=1505112965& use_mirror=excellmedia [following]
--2017-09-11 12:25:38-- https://downloads.sourceforge.net/project/mantisbt/mantis-stable/2.6.0/mantisbt-2.6.0.tar.gz?r=& ts=1505112965& use_mirror=excellmedia
Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 216.34.181.59
Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|216.34.181.59|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://excellmedia.dl.sourceforge.net/project/mantisbt/mantis-stable/2.6.0/mantisbt-2.6.0.tar.gz [following]
--2017-09-11 12:25:39-- https://excellmedia.dl.sourceforge.net/project/mantisbt/mantis-stable/2.6.0/mantisbt-2.6.0.tar.gz
Resolving excellmedia.dl.sourceforge.net (excellmedia.dl.sourceforge.net)... 202.153.32.19
Connecting to excellmedia.dl.sourceforge.net (excellmedia.dl.sourceforge.net)|202.153.32.19|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 15939114 (15M) [application/x-gzip]
Saving to: ‘ download’
100%[======================================> ] 15,939,114 166KB/s in 50s
Extract the downloaded package by executing the following tar command.
[root@linuxhelp ~]# tar -xvf download
mantisbt-2.6.0/
mantisbt-2.6.0/manage_config_workflow_page.php
mantisbt-2.6.0/manage_user_proj_delete.php
mantisbt-2.6.0/query_store.php
mantisbt-2.6.0/manage_plugin_upgrade.php
mantisbt-2.6.0/scripts/
mantisbt-2.6.0/scripts/travis_script.sh
mantisbt-2.6.0/scripts/Web.config
.
.
.
mantisbt-2.6.0/doc/modern_view_issues.png
mantisbt-2.6.0/doc/ace-theme-license.txt
mantisbt-2.6.0/doc/modern_my_view.png
mantisbt-2.6.0/doc/CREDITS
mantisbt-2.6.0/manage_proj_create.php
Edit the php configuration file using vim editor. Save and exit the file.
[root@linuxhelp ~]# vim /etc/php.ini
cgi.fix_pathinfo=0
Then edit the following changes in php-fpm configuration file. Save and exit the file.
[root@linuxhelp ~]# vim /etc/php-fpm.d/www.conf
vim /etc/php-fpm.d/www.conf
listen = /run/php-fpm/php-fpm.sock
listen.owner = nginx
listen.group = nginx
user = nginx
group = nginx
Start the php-fpm service.
[root@linuxhelp share]# systemctl start php-fpm
Set owner permission as nginx by running the following command.
[root@linuxhelp share]#chown &ndash R nginx:nginx /run/php-fpm/php-fpm.sock
Restart the php-fpm service.
[root@linuxhelp share]# systemctl restart php-fpm
Open nginx.conf configuration file and enter the following contents in the file. Save and exit the file.
[root@linuxhelp html]# vim /etc/nginx/nginx.conf
server {
listen 80 default_server
listen [::]:80 default_server
server_name 192.168.7.165
root /usr/share/nginx/html
index index.php
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf
location ~ \.php$ {
try_files $uri =404
fastcgi_pass unix:/run/php-fpm/php-fpm.sock
fastcgi_index index.php
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name
include fastcgi_params
}
}
Restart your Nginx service.
[root@linuxhelp html]# systemctl restart nginx
Switch over to the browser and enter http://192.168.7.165/ mantisbt-2.6.0. The pre-installation checks of file is shown in the screen.
Enter the required details to create a database for Mantis application.
Click install or upgrade database option to install the newly created database.
The installation is complete. Click continue option to login to Mantis.
Enter the admin credentials to login to Mantis.
After entering the default password for Mantis, change the default password to a new password for security purposes.
The admin page of Mantis bug tracker is now running successfully.
The installation procedure of Mantis Bug tracker on CentOS 7 with LEMP is done without any glitches.
Comments ( 0 )
No comments available