Get the App
SLTechnology News&Howtos  ›  Database  › 

Mantis 2.5.0 installation and configuration

Shulou Source: shulou.com Published: 2022-06-01 02:38:28 09月29日 Update

Defect management platform Mantis, also known as MantisBT, full name Mantis Bug Tracker. Mantis is a lightweight open source defect tracking system based on PHP technology.

Mantis 2.5.0

Download address: https://jaist.dl.sourceforge.net/project/mantisbt/mantis-stable/2.5.0/mantisbt-2.5.0.tar.gz

1. Php installation

Yum install-y libxml2-devel openssl openssl-devel bzip2 bzip2-devel libpng libpng-devel freetype freetype-devel libmcrypt-devel curl-devel readline-devel

1. Download the php source code package

Http://www.php.net/downloads.php

2. Install php

Tar-xvf php-5.5.13.tar.bz2

Cd php-5.5.13

. / configure-- prefix=/usr/local/php-- with-config-file-path=/etc-- enable-inline-optimization-- disable-debug-- disable-rpath-- enable-shared-- enable-opcache-- enable-fpm-- with-fpm-user=www-- with-fpm-group=www-- with-mysql=mysqlnd-- with-mysqli=mysqlnd-- with-pdo-mysql=mysqlnd-- with-gettext-- enable-mbstring-- with-iconv-with-mcrypt-- with-mhash-- with-openssl-- enable- Bcmath-enable-soap-with-libxml-dir-enable-pcntl-enable-shmop-enable-sysvmsg-enable-sysvsem-enable-sysvshm-enable-sockets-with-curl-with-zlib-enable-zip-with-bz2 with-readline without-sqlite3 without-pdo-sqlite with-pear

Make

Make install

Add a PHP command to an environment variable

Vim / etc/profile

Add at the end

PATH=$PATH:/usr/local/php/bin

Export PATH

The changes should be implemented immediately.

. / etc/profile or source / etc/profile

View environment variabl

Echo $PATH

View the version php-versoin

PHP 5.5.13 (cli) (built: Jan 19 2017 22:50:24)

Copyright (c) 1997-2016 The PHP Group

Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies

II. Database installation

Install mysql, set up database

Yum install-y mysql-server mysql-devel

Mysqladmin-uroot password 123456

Mysql > create database mantis character set utf8

Mysql > grant all privileges on mantis.* to mantis@localhost identified by '654321'

Mysql > flush privileges

III. Mantis configuration

Unzip mantisbt-2.5.0.zip

Cd mantisbt-2.5.0

Pwd

/ data/soft/mantis/mantisbt-2.5.0

IV. Nginx settings

Vim mantis.conf

Server {

Listen 7878

Location *\ .php$ {

# root "/ data/soft/mantisbt-2.5.0"

# root "/ data/soft/mantisbt"

Root "/ data/soft/mantis/mantisbt-2.5.0"

Index index.html index.php

Fastcgi_pass 127.0.0.1:9000

Fastcgi_index index.php

Fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name

Includefastcgi_params

}

Location ~ ^ / (p_w_picpaths | javascript | js | css | flash | media | static | fonts | scripts) / {

Root "/ data/soft/mantis/mantisbt-2.5.0"

# access_log off

Expires 30d

}

}

5. Set mantis

Http://ip:7878/admin/install.php

Fill in the database user name and password

All checks are good, and you will be required to write relevant information into config/config_inc.php as shown in the figure:

Registration and modification of mantis need to be done by email, so you need to configure email.

With this setting, you can send a letter.

Direct access: http://ip:7878/my_view_page.php use

Sixth, optimize

It takes a few days to find that mantis sends mail very slowly, which should be the problem of sending mail by php, which needs to be optimized.

First, clean up the accumulated queues, which will be deleted automatically after sending them under normal circumstances, and directly empty the data in the table mantis_email_mantis.

Mysql > select * from mantis_email_mantis

Empty set (0.00 sec)

Second, modify the configuration file

Vim config/config_inc.php

Modify $g_email_send_using_cronjob = ON

Third, you need to add a crontab to speed up the speed of sending email.

Crontab-e

* / 1 * / usr/bin/php / data/soft/mantis/mantisbt-2.5.0/scripts/send_emails.php > / root/logs/mantis_sendmail.log 2 > & 1

Fourth, it's gone.

Try it. You should be able to take off.

Note: please take care of me when I write a blog for the first time.

Tags: Mail data configuration database variables environment defect information full name blog command address password platform situation technology file end source code version Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL NVidia Shulou Information Apple MariaDB