Install and configure Mantis in CentOS

Source: Internet
Author: User
Mantis is a lightweight open source defect tracking system based on PHP Technology. It provides project management and defect tracking services in the form of Web operations. It is functional and practical enough to manage and track small and medium-sized projects. More importantly, it is open-source and does not have to pay any fees. 1. install necessary software such as apache and mysql. 1 # yumupdate2 # yuminstall & nbsp

Mantis is a lightweight open source defect tracking system based on PHP Technology. It provides project management and defect tracking services in the form of Web operations. It is functional and practical enough to manage and track small and medium-sized projects. More importantly, it is open-source and does not have to pay any fees.

1. install necessary software such as apache and mysql

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

2. download and decompress mantis

#cd /var/www/html#wget http://sourceforge.net/projects/mantisbt/files/mantis-stable/1.2.15/mantisbt-1.2.15.tar.gz/download#tar xvf mantisbt-1.2.15.tar.gz#mv  mantisbt-1.2.15  mantis#chown -R apache:apache mantis

3. create a database

#mysql -u root -p***>create database mantis;>grant all privileges on mantis.* to user@localhost identified by 'password';>flush privileges;>exit;#

4. install mantis

Enter http: // ip/mantis in the browser, and the browser will jump to http: // ip/mantis/admin/install. php: enter hostname, databasename (mantis in step 1), username (user in step 2), and password (password in step 2) according to the actual situation ). You can select Mysqli as the database type.

Fill in the content and click install/update database.

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'; # server address $ g_db_username = 'user'; # Database user $ g_db_password = 'password'; # database password $ g_database_name = 'Mantis '; # Database name $ g_db_type = 'mysqli'; # Database type $ g_allow_signup = ON; $ region = OFF; $ g_phpMailer_method = PHPMAILER_METHOD_SMTP; $ g_smtp_host = 'smtp .sina.com: 25 '; $ g_smtp_username = '***'; # email user name, that is, @ the previous section $ g_smtp_password = '***'; # email password $ g_administrator_email = '*** @ ***'; $ g_webmaster_email = '*** @ ***'; $ g_from_email = ''; # From field value $ g_return_path_email = ''; $ g_allow_file_upload = ON; $ g_file_upload_method = DISK; $ region = '/var/www/html/maintis/upload /'; $ g_max_file_size = 100000; # The unit is byte, that is, 100kB # Add $ g_default_language = 'auto' to the following two items; $ g_fallback_language = 'Chinese _ simplified ';

6. restart the service and delete the admin directory.

 

#service httpd restart#service mysqld restart#cd /var/www/html/mantis#rm -rf admin

 

In this case, enter http: // ip/mantis in the browser to access it.

Related Article

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.