mysql mantis sock_mantisbug 安装调试总结

2010 mantisbug 安装调试总结

今天去朋友那安装了mantisbug1.0.rc4软件,这个软件主要是供开发测试人员用的里面有详细的角色有测试人员,报告人员,主要是提交bug的一个工具,由php代码构成,刚开始

重新安装,但是安装中遇到许多问题

1.安装时候提示config.inc.php文件没有自动创建.解决方法就是自己创建一个用记事本,内容如下:

$g_hostname = 'localhost';//本地用户一般默认即可

$g_db_type = 'mysql';//数据库类型

$g_database_name = 'xxxxx';//数据库名字

$g_db_username = 'root';//数据库用户名

$g_db_password = 'xxxxxxx';//数据库密码

$g_smtp_host='smtp.163.com';//邮件发送地址

$g_smtp_username='xxxxxx';//邮箱名字@前面的东东

$g_smtp_password='xxxxxxxxxx';//邮箱的密码

$g_phpMailer_method =2;//采用smtp方式

?>

2.就是设置config_defaults.inc.php文件因为mantisbug有邮箱提醒功能,修改以下几处:

# --- database variables ---------

# set these values to match your setup

# hostname should be either a hostname or connection string to supply to adodb.

# For example, if you would like to connect to a mysql server on the local machine,

# set hostname to 'localhost', and db_type to 'mysql'.

# If you need to supply a port to connect to, set hostname as 'localhost:3306'.

$g_hostname    = 'localhost';

$g_db_username   = 'root';

$g_db_password   = 'xxxxx';

$g_database_name  = 'xxxxx';

$g_db_type   = 'mysql';

# select the method to mail by:

# 0 - mail()

# 1 - sendmail

# 2 - SMTP

$g_phpMailer_method  = 2;

# This option allows you to use a remote SMTP host.  Must use the phpMailer script

# Name of smtp host, needed for phpMailer, taken from php.ini

$g_smtp_host   = 'smtp.163.com';

# These options allow you to use SMTP Authentication when you use a remote

# SMTP host with phpMailer.  If smtp_username is not '' then the username

# and password will be used when logging in to the SMTP server.

$g_smtp_username = 'xxxxxx';

$g_smtp_password = 'xxxxxx';

# --- language settings -----------

# If the language is set to 'auto', the actual

# language is determined by the user agent (web browser)

# language preference.

$g_default_language  = 'chinese_simplified_utf8';

# list the choices that the users are allowed to choose

$g_language_choices_arr = array(

'auto',

'chinese_simplified',

'chinese_simplified_utf8',

'chinese_traditional',

'chinese_traditional_utf8',

'croatian',

'czech',

'danish',

'dutch',

'english',

'estonian',

'finnish',

'french',

'french_canadian',

'german',

'hungarian',

'icelandic',

'italian',

'japanese_euc',

'japanese_sjis',

'japanese_utf8',

'korean',

'latvian',

'lithuanian',

'norwegian',

'polish',

'portuguese_brazil',

'portuguese_standard',

'romanian',

'russian',

'russian_koi8',

'serbian',

'slovak',

'slovene',

'spanish',

'swedish',

'turkish',

'ukrainian'

);

#############################

# Mantis Email Settings

#############################

# --- email variables -------------

$g_administrator_email = 'xxxxxxx@163.com';

$g_webmaster_email  = 'xxxxxxx@163.com';

# the 'From: ' field in emails

$g_from_email   = 'xxxxxxx@163.com';

# the return address for bounced mail

$g_return_path_email = 'xxxxxxx@163.com';

3.mantisbug注册用户要输入验证小红叉上网查资料:

先检查是否支持gd库

开GD库支持,编辑PHP.INI,找到 extension=php_gd2.dll,将前面的 ;号去掉。这样,还是红叉,说明问题不是出在这里。

说是把 session.save_path = "" 的路径指向一个正确的位置,哦,仔细一看我的设置,发现果然设置错了。立即新建了一个文件夹,改正路径,编辑保存php.ini。刷新一下,果

然恢复正常。还有一种可能就是就是原来是utf-8改成了gbk。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值