CENTOS7 Installation Mantis

Source: Internet
Author: User
Tags administrator password

The steps to install Mantis are as follows:

1. Install Apache, MySQL and other necessary software

1 #yum update2 #yum install httpd php php-pdo php-mysql php-gd mysql mysql-server3 #chkconfig mysqld on4 #service mysqld R Estart5 #chkconfig httpd on6 #service httpd restart

2. Download and Unzip Mantis

Https://sourceforge.net/projects/mantisbt/files/latest/download/mantis/mantisbt-1.2.19.zip
#unzip Mantisbt-1.2.19.zip

#chown-R Apache:apache Mantis

3. Create a Database

#mysql-u root-p***>create database mantis;>grant all privileges on mantis.* to [e-mail protected] identified by ' PA ssWOrd '; >flush privileges;>exit;#

4. Installing Mantis

Enter Http://ip/mantis in the browser, this time the browser will jump to http://ip/mantis/admin/install.php, according to the actual situation input Hostname,databasename ( That is the 3rd step inside the Mantis), username (that is, the 3rd step inside the user), password (that is, the 3rd step inside the password). Where the database type can choose Mysqli.

Fill in these contents, click Install/update Database.

Sometimes the following problems may exist

Change into Chinese interface

#cd/var/www/html/

#vim config_inc.php

$g _default_language = ' chinese_simplified ';

5. Configure Mantis

#cd/var/www/html/mantis#rm-rf  config_inc.php#cp config_inc.php.sample config_inc.php#vim config_inc.php

The main configuration is as follows:

$g _hostname = ' localhost ';              #服务器地址 $g _db_username = ' user ';               #数据库用户 $g _db_password = ' password ';        #数据库密码 $g _database_name = ' Mantis ';         #数据库名称 $g _db_type = ' mysqli ';                    #数据库类型 $g _allow_signup = on; $g _allow_anonymous_login = OFF; $g _phpmailer_method = phpmailer_method_smtp; $g _smtp_host = ' Smtp.sina.com:25 '; $g _smtp_username = ' * * * ';        #邮箱用户名, the part $g_smtp_password = ' * * * ' in front of the @;        #邮箱密码 $g _administrator_email = ' ***@*** '; $g _webmaster_email = ' ***@*** ';  $g _from_email = ";                    #From字段的值 $g _return_path_email = "; $g _allow_file_upload = on; $g _file_upload_method = DISK; $g _absolute_path_default_upload_folder = '/var/www/html/maintis/upload/'; $g _max_file_size = 100000;      #单位是字节, that is, add 100kb# below yourself

$g _default_language = ' chinese_simplified ';

6. Restart the service, delete the admin directory (can not be deleted, can be used to create new users)

#service httpd restart#service mysqld RESTART#CD/VAR/WWW/HTML/MANTIS#RM-RF Admin

Issues encountered installing Mantis:

1. Verification code picture does not display

2. Time zone is not correct

Incompatible version 3.mysql

Workaround: Change to the latest mantis version

4. Restart the service with the following command

Systemctl Restart Httpd.service

Systemctl Restart Mysqld.service

5. Delete Mantis

Cd/var/www/html

RM-RF Mantis

6. Finding files Find/-name php.ini

7.mantis Initial user Administrator password root

8.mantis login After, do any operation total prompt application error #1904, application error #2800; Restart the service can be used normally, as if the time-out caused by

CENTOS7 Installation Mantis

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.