http://blog.csdn.net/kay_wyong/article/details/6695457
The following is the installation detail process for the mantis under Ubuntu first, the environment to build
1, Apache server installation sudo apt-get install apache2
2, PHP5 installation sudo apt-get install PHP5
3, Apache and php5 associated sudo apt-get install LIBAPACHE2-MOD-PHP5
4, MySQL installation sudo apt-get install Mysql-server
Then configure MySQL to assume that both the username and password are root
5, MySQL support to the php5 sudo apt-get install php5-mysql otherwise install mantis error
6, PHP file test, write a php file test.php into the/var/www folder
Restart the Apache server sudo/etc/init.d/apache2 restart
Login http://localhost/test.php View Apache configuration Second, mantis installation
7, download mantis address for http://www.mantisbt.org/download.php, after decompression placed in the/var/www folder, modify the permissions sudo chmod-r 777 Mantis
This directory is Apache's virtual directory, the specific information can refer to Apache's configuration file/etc/apache2/sites-available/default
8, modify the Apache configuration file, add in the/etc/apache2/httpd.conf
AddType application/x-httpd-php. php
AddType application/x-httpd-php. html so Apache can parse PHP files
9, modify the PHP5 configuration file, find under/etc/php5/apache2/php.ini "; extension=msql.so" Remove the preceding semicolon
10, MySQL Database creation: CREATE DATABASE BugTracker character set UTF8 collate utf8_general_ci;
11, restart the Apache server, landing Http://localhost/mantis can be installed Mantis
12, after the successful installation, change the Mantis folder under the Admin folder name is arbitrary, or delete this folder.
At this point mantis basically complete the installation. Can log in with Admin User: Administrator root
You need to configure your mailbox environment to work properly with Mantis
The configuration steps are as follows:
1, download phpmailer_v5.1, assume the extract directory 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 = ' bugtracker ';
$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 at this point
Chinese environment configuration:
Modify Mantis Profile:/var/www/mantist/config_defaults_inc.php
Find where $g_default_language changes its value to ' chinese_simplified '