mantisbug 安装调试总结

本文涉及的产品
RDS MySQL Serverless 基础系列,0.5-2RCU 50GB
云数据库 RDS MySQL,集群系列 2核4GB
推荐场景:
搭建个人博客
云数据库 RDS MySQL,高可用系列 2核4GB
简介:
mantisbug 安装调试总结
今天去朋友那安装了mantisbug1.0.rc4软件,这个软件主要是供开发测试人员用的里面有详细的角色有测试人员,报告人员,主要是提交bug的一个工具,由php代码构成,刚开始
重新安装,但是安装中遇到许多问题
1.安装时候提示config.inc.php文件没有自动创建.解决方法就是自己创建一个用记事本,内容如下:
<?php
 ghostname=localhost;//g_db_type = 'mysql';//数据库类型
 gdatabasename=xxxxx;//g_db_username = 'root';//数据库用户名
 gdbpassword=xxxxxxx;//g_smtp_host='smtp.163.com';//邮件发送地址
        gsmtpusername=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'.
 ghostname=localhost;g_db_username   = 'root';
 gdbpassword=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.
 gsmtpusername=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。


本文转自zh888 51CTO博客,原文链接:http://blog.51cto.com/zh888/327178,如需转载请自行联系原作者

相关实践学习
如何快速连接云数据库RDS MySQL
本场景介绍如何通过阿里云数据管理服务DMS快速连接云数据库RDS MySQL,然后进行数据表的CRUD操作。
全面了解阿里云能为你做什么
阿里云在全球各地部署高效节能的绿色数据中心,利用清洁计算为万物互联的新世界提供源源不断的能源动力,目前开服的区域包括中国(华北、华东、华南、香港)、新加坡、美国(美东、美西)、欧洲、中东、澳大利亚、日本。目前阿里云的产品涵盖弹性计算、数据库、存储与CDN、分析与搜索、云通信、网络、管理与监控、应用服务、互联网中间件、移动服务、视频服务等。通过本课程,来了解阿里云能够为你的业务带来哪些帮助 &nbsp; &nbsp; 相关的阿里云产品:云服务器ECS 云服务器 ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。产品详情: https://www.aliyun.com/product/ecs
目录
打赏
0
0
0
0
69
分享
相关文章
【调试方法】基于vs环境下的实用调试技巧
【调试方法】基于vs环境下的实用调试技巧
实用调试技巧(1)
实用调试技巧(1)
68 7
|
10月前
实用调试技巧(2)
实用调试技巧(2)
51 0
掌握条件断点,调试技巧大揭秘
掌握条件断点,调试技巧大揭秘
171 0
VS2010调试技巧
调试可以深入程序内部,观察运行时各个变量的值。调试可以解决程序中出现的bug,同时还可以用来研究一些自己不太熟悉的语言特性和技术。下面说一些工作中遇到的VS2010调试技巧。 一、Ctrl+F10 运行到光标,快速执行到光标所在的代码处。
761 0
EucOne调试
~/.ssh/id_rsa权限问题,造成ssh无法登陆问题解决; 使用virsh 连接exsi5.0; 貌似这个在vm下再虚拟vm处问题,错误信息如下; Thu Jul 31 13:25:10 2014 [DiM][I]: New VM state is ACTIVE.
1090 0
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等