發(fā)表于1年前(2012-08-01 09:43) , 已有486次閱讀 ,共2個評論
Mantis是一個基于PHP技術(shù)的輕量級的開源bug跟蹤系統(tǒng),以Web操作的形式提供項目管理及缺陷跟蹤服務(wù) 在ubuntu下安裝步驟: 一.先安裝lamp sudo apt-get install apache2 libapache2-mod-php5 sudo apt-get install mysql-server sudo apt-get install php5-mysql php5 php5-gd php5-mdb2-driver-mysql 修改配置 1.apache2 在/etc/apache2/httpd.conf中添加 AddType application/x-httpd-php .php AddType application/x-httpd-php .html LoadModule php5_module /usr/lib/apache2/modules/libphp5.so 2.php5 在/etc/php5/apache2/php.ini中添加 extension=mysql.so extension=gd.so 然后配置apache端口未8001 sudo /ect/init.d/apache2 restart 測試apache 訪問 IP:PORT/index.html(192.168.1.104:8001/index.html) 測試php cd /var/www sudo vim a.php 輸入<?php phpinfo(); ?> 然后訪問192.168.1.104:8001/1.php lamp 安裝完畢 二。安裝mantis 1.下載mantis 下載地址為 http://www./download.php 將壓縮包解壓至/var/www,并將文件夾改名為mantis,然后修改權(quán)限 sudo chmod 777 -R mantis 2.建立mysql數(shù)據(jù)庫 mysql -u root -p,進入mysql提示符 mysql> create database bugtracker; mysql> grant all privileges on bugtracker.* to root@localhost identified by 'password'; mysql> flush privileges; mysql> \q 3.創(chuàng)建mantis配置文件 sudo cp /var/www/mantis/config_inc.php.sample /var/www/mantis/config_inc.php 編輯這個文件 添加 $g_default_language = 'chinese_simplified'; 4.創(chuàng)建數(shù)據(jù)庫 mysql -uroot -p bugtracker < /var/www/mantis/library/adodb/session/adodb-sessions.mysql.sql 5.重啟apaches服務(wù),訪問http://IP/mantis/install.php并根據(jù)提示安裝。 6.訪問http://IP/mantis,用默認的管理員賬號密碼登陸 user :administrator pass:root 7.郵箱設(shè)置 由于各種操作都需要郵件通知,所以需要配置一下發(fā)郵件 sudo apt-get install sendmail ,安裝一個郵件代理 編輯/var/www/mantis/config_inc.php 修改加入如下: $g_hostname = '192.168.1.104'; $g_db_username = 'root'; $g_db_password = '數(shù)據(jù)庫密碼'; $g_database_name = 'bugtracker'; $g_db_type = 'mysql'; # --- Anonymous Access / Signup --- $g_allow_signup = ON; $g_allow_anonymous_login = OFF; $g_anonymous_account = ''; # --- Email Configuration --- $g_phpMailer_method = PHPMAILER_METHOD_MAIL; # or PHPMAILER_METHOD_SMTP, PHPMAILER_METHOD_SENDMAIL $g_user_phpMailer =ON; $g_phpMailer_method =2; $g_enable_email_notification = ON; $g_smtp_host = 'smtp.exmail.qq.com'; # used with PHPMAILER_METHOD_SMTP $g_smtp_username = 'shengxj@smvp.cn'; # used with PHPMAILER_METHOD_SMTP $g_smtp_password = '郵箱的密碼'; # used with PHPMAILER_METHOD_SMTP $g_administrator_email = 'shengxj@smvp.cn'; $g_webmaster_email = 'shengxj@smvp.cn'; $g_from_email = 'noreply@smvp.cn'; # the "From: " field in emails $g_return_path_email = 'shengxj@smvp.cn'; # the return address for bounced mail $g_phpMailer_path = '/var/www/mantis/library/phpmailer/'; $g_from_name = 'smvp bug tracker'; $g_default_language = 'chinese_simplified'; 安裝完畢~~~~~~ |
|