I don't make software; I make it better

testlink安装过程及关键点

上一篇 / 下一篇  2009-09-25 11:03:00 / 个人分类:管理

在安装Testlink之前,需要首先安装Apache, PHP, Mysql支持软件包,例如XAMPP或EASYPHP等。
下面以XAMPP为例进行说明。

1 访问http://www.apachefriends.org/zh_cn/xampp.html 下载并安装最新的XAMPP版本。比如我下载的是:xampp-win32-1.7.2.exe

2 安装“xampp-win32-1.7.2.exe”采用默认方式,一直“下一步”操作即可;

3 启动“Apache”,“Mysql”服务,“filezila”服务

4  访问 http://testlink.sourceforge.net/docs/testLink.php    下载Testlink1.81

5   安装TestLink1.81

(1)    将TestLink解压缩到D:\xampp\htdocs,命名为testlink;

(2)    在IE中访问http://localhost/testlink/install/index.php;

(3)    点击“New Installation”安装TestLink;

(4)   Mysql数据库和TestLink数据库访问权限设置;(Mysql初始用户名是root,密码为空)

Database Type Mysql

Database host   localhost

//配置访问Mysql的地址;

Database login   root

Database password “为空”

//配置访问mysql的权限;

TestLink DB login “你的用户名”

TestLink DB passwaord “你的面貌”

//配置访问Testlink数据库的权限 ;

6 点击“同意许可协议”,继续

7 安装完成,点击最后一行的(Please Click Me!)

8 在Testlink第一次安装成功后,默认管理员帐户为admin,密码admin,使用其登录

9 登录Testlink成功后,在菜单栏中的Personal中更改admin的密码,然后注销;

10 删除C:\xampp\htdocs\testlink\install目录;

11 在IE中访问http://localhost/testlink/index.php,弹出Testlink页面为英文,修改配置文件使其默认为中文;

打开C:"xampp"htdocs"testlink下的config.inc.php文件;
查找$g_default_language = 'en_GB';
修改为$g_default_language = 'zh_CN';

12 汉化TestLink:下载utf8版本的strings.txt替换C:\xampp\htdocs\testlink\locale\zh_CN目录下的strings.txt即可;

13 搜索找到穆鲁下的配置文件const.inc.php,解决日期乱码问题;查询’zh_CN’ =>,修改为如下图红框所示:'zh_CN' => "%Y-%m-%d %H:%M:%S"

14.搭建OK

15.关键点
(1)由于xampp-win32-1.7.2.exe下的php版本号大于5.2,目前是5.3,所以需要修改部分地方
找到目录 testlink\lib\functions\ and change line number 173 in the file lang_api.php .
Change this line:
$t_lang_var = ereg_replace( '^TLS_', '', $t_var );
to be this line:
$t_lang_var = preg_replace( '/^TLS_/', '', $t_var );

2.登录成功进入后页头的一个安全错误:
To disable any reference to these checkings, set $tlCfg->config_check_warning_mode = SILENT;
解决方案,找到config.inc.php,找到“Cfg->config_check_warning_mode”,修改如下:

/** $tlCfg->config_check_warning_mode = 'FILE';        */
$tlCfg->config_check_warning_mode = 'SILENT';  

至此:完成安装与基本配置工作
使用过程中发现更多问题下面再补充

PS:部分参考卖烧烤鱼的文章


TAG:

引用 删除 yyang0514   /   2010-02-08 18:05:58
在7步点击后,无法登陆界面直接报了上面的错误。
我的操作系统WIN7 32版本的。
XAMPP是xampp-win32-1.7.3
按照你BLOG中15中关键点提示的修改后,仍然提示相同的错误。还请指教!!!
引用 删除 yyang0514   /   2010-02-08 17:43:24
请问点CLICK ME 之后报这个错误如何处理
Warning: require(C:\xampp\htdocs\testlink\locale\en_GB\strings.txt) [function.require]: failed to open stream: No such file or directory in C:\xampp\htdocs\testlink\lib\functions\lang_api.php on line 157

Fatal error: require() [function.require]: Failed opening required 'C:\xampp\htdocs\testlink\locale\en_GB\strings.txt' (include_path='.;C:\xampp\php\PEAR;.;C:\xampp\htdocs\testlink\lib\functions\') in C:\xampp\htdocs\testlink\lib\functions\lang_api.php on line 157
 

评分:0

我来说两句

Open Toolbar