Mantis一包搞定(windos)

上一篇 / 下一篇  2007-09-07 18:14:06 / 个人分类:work

Mantis:http://www.mantisbt.org/
 
1. Extract to some dir (C:\SW)
2. Modify start bat file (C:\SW\InstantMantis-1.0.8\imstart.cmd)
**************Content Start******************************
 
@ECHO OFF
TITLE Instant Mantis Server
 
SET APACHE_PORT=8008
SET MYSQL_PORT=3306
 
SET INSTANT_MANTIS_ROOT=%CD%
SET DOCUMENT_ROOT=%INSTANT_MANTIS_ROOT%/root/mantis
SET MYSQL_ROOT=%INSTANT_MANTIS_ROOT%\server\mysql-4.1.16-win32
SET DATA_ROOT=%INSTANT_MANTIS_ROOT%\data
 
ECHO Starting Apache...
 
start "Instant Mantis Apache" /B /D%INSTANT_MANTIS_ROOT%\server\apache2\bin apache_IM.exe -C "DocumentRoot %DOCUMENT_ROOT%" -C "Listen %Apache_Port%"
 
start "Instant Mantis MySQL" /B /D%MYSQL_ROOT%\bin mysqld --defaults-file=%MYSQL_ROOT%\my.ini --standalone --console --basedir=%MYSQL_ROOT% --datadir=%DATA_ROOT% --port=%MYSQL_PORT%
 
**************Content End ********************************
3. Modify system database access inc file (C:\SW\InstantMantis-1.0.8\root\mantis\config_inc.php)
Set as:
<?php $g_hostname='localhost:3306';$g_db_type='mysql';$g_database_name='mantis';$g_db_username='root';$g_db_password=''; ?>
 
4. Add Send mail function, copy phpmailer (C:\SW\InstantMantis-1.0.8\root\mantis\core\phpmailer) to php server(C:\SW\InstantMantis-1.0.8\server\php-4.4.2-Win32\PEAR), and then modify mantis default
inc file (C:\SW\InstantMantis-1.0.8\root\mantis\config_defaults_inc.php) as below shown:

$g_enable_email_notification = ON; #开通邮件通知
$g_smtp_host = ’smtp.163.com’; # SMTP
服务器
$g_smtp_username = 'xxx@163.com'; #
邮箱登录用户名
$g_smtp_password = ’******’; #
邮箱登录密码
$g_use_phpMailer = ON; #
使用PHPMailer发送邮件
$g_phpMailer_path = ’
C:/SW/InstantMantis-1.0.8/server/php-4.4.2-Win32/PEAR/phpmailer/’; # PHPMailer的存放路径
$g_phpMailer_method = 2; # PHPMailer
SMTP方式发送Email

NOTE:

 Mantis的设置是这样保存的:在config_defaults_inc.php中保存这Mantis的默认设置,用户自己的设置信息保存在config_inc.php中,如果某个选项在config_inc.php中有设置,则系统使用config_inc.php中的设置,否则使用config_defaults_inc.php的系统默认设置;config_inc.php.sample则是Mantis给出的一个用户设置文件例子。所以我们需要修改config_inc.php文件中的设置

$g_use_iis = ON; #使用IIS
$g_show_version = OFF; #
不在页面下部显示Mantis的版本号
$g_default_language = ’chinese_simplified’; #
默认语言为简体中文
$g_show_project_menu_bar = ON; #
显示项目选择栏
$g_show_queries_count = OFF; #
在页脚不显示执行的查询次数
$g_default_new_account_access_level = DEVELOPER; #
默认用户级别
$g_use_jpgraph = ON; #
使用图形报表
$g_jpgraph_path = ’C:/PHP/includes/JPGraph/src/’; # JPGraph
路径
$g_window_title = ’Mantis Bug
跟踪管理系统’; #浏览器标题
$g_page_title = ’Mantis Bug
跟踪管理系统’; #页面标题栏
$g_enable_email_notification = ON; #
开通邮件通知
$g_smtp_host = ’smtp.mail.net’; # SMTP
服务器
$g_smtp_username = ’mailuser’; #
邮箱登录用户名
$g_smtp_password = ’mailpwd’; #
邮箱登录密码
$g_use_phpMailer = ON; #
使用PHPMailer发送邮件
$g_phpMailer_path = ’C:/PHP/includes/PHPMailer/’; # PHPMailer
的存放路径
$g_phpMailer_method = 2; # PHPMailer
SMTP方式发送Email
$g_file_upload_ftp_server = ’ftp.yourftp.com’; #
上传文件FTP
$g_file_upload_ftp_user = ’ftpuser’; # FTP
登录用户名
$g_file_upload_ftp_pass = ’ftppwd’; # FTP
登录密码
$g_short_date_format = ’Y-m-d’; #
短日期格式,Y大写表示4位年
$g_normal_date_format = ’Y-m-d H:i’; #
普通日期格式
$g_complete_date_format = ’Y-m-d H:i:s’; #
完整日期格式

5. check system config and test mail sender, you can start server and access: http://localhost:8008/


TAG: work

nic ever 引用 删除 nic162534   /   2008-01-10 11:02:39
非常感谢,不过你确定直接安装能搞定吗?我试试看,我昨天瞎折腾,又是安装Mysql,Apache还有PHP。结果没安好!头疼啊!
 

评分:0

我来说两句

日历

« 2024-05-07  
   1234
567891011
12131415161718
19202122232425
262728293031 

数据统计

  • 访问量: 5672
  • 日志数: 10
  • 图片数: 2
  • 建立时间: 2007-09-06
  • 更新时间: 2011-12-29

RSS订阅

Open Toolbar