Ubuntu mantis installation Configuration

Source: Internet
Author: User
Tags bug tracking system

Http://blog.csdn.net/kay_wyong/article/details/6695457

The following describes how to install mantis In ubuntu. 1. Set up the environment.

1. Install sudo apt-Get install apache2 on the Apache server

2. Install sudo apt-Get install PhP5 in PhP5

3. Associate sudo with Apache and PhP5
Apt-Get install libapache2-mod-php5

4. Install sudo in MySQL
Apt-Get install mysql-Server

Configure MySQL
Assume that both the user name and password are root

5. MySQL for PhP5 support sudo apt-Get install php5-mysql otherwise mantis installation will fail

6. Test the PHP file. Write a PHP file test. php and put it in the/var/WWW folder.

Restart Apache server sudo
/Etc/init. d/apache2 restart

Log on to http: // localhost/test. php to view Apache configuration

2. Mantis Installation

7. Download mantis at http://www.mantisbt.org/download.php and put it in the /var/www folder after decompression.
, Modify the permission sudo chmod-r 777 mantis

This directory is a virtual directory of Apache. For more information, see the Apache configuration file/etc/apache2/sites-available/default.

8. Modify the Apache configuration file and add it to/etc/apache2/httpd. conf.

Addtype application/X-httpd-PHP. php

Addtype application/X-httpd-PHP. html so that Apache can parse the PHP File

9. Modify the PhP5 configuration file and search for "; Extension = msql. So" in/etc/PhP5/apache2/PHP. ini to delete the semicolon.

10. Create a MySQL database: create database bugtracker character set utf8 collate utf8_general_ci;

11. Restart the Apache server and log on to http: // localhost/mantis to install Mantis.

12. After the installation is successful, change the admin folder name in the Mantis folder or delete the folder.

At this time, the installation of mantis is basically complete. You can log on as Administrator: administrator root

In this case, you need to configure the mailbox environment to use mantis normally.

The configuration steps are as follows:

1. Download phpmailer_v5.1. Assume that the extracted directory is in/var/www/phpmailer_v5.1.

2. Modify the/var/www/mantis/config_inc.php file:

<? PHP
$ G_hostname = 'localhost ';
$ G_db_type = 'mysql ';
$ G_database_name = 'buckettracker ';
$ G_db_username = 'root ';
$ G_db_password = 'root ';

$ G_use_phpmailer = on;
$ G_phpmailer_path = '/var/www/phpmailer_v5.1 ';
$ G_phpmailer_method = 2;
$ G_smtp_host = 'stmp .xx.cn ';
$ G_smtp_username = 'xx @ xx.cn ';
$ G_smtp_password = 'xx ';
$ G_return_path_email = 'xx @ xx.cn ';
$ G_administrator_email = 'xx @ xx.cn ';
$ G_webmaster_email = 'xx @ xx.cn ';
$ G_window_title = 'xx online BUG Tracking system ';
?>

Restart Apache.


Chinese environment Configuration:

Modify the Mantis Configuration File:/var/www/mantist/config_defaults_inc.php

Change $ g_default_language to 'Chinese _ simplified'

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.