Testlink 在Linux 安装

Testlink 在Linux 安装

 

1. 安装MySQL,见 Linux 安装 mysql5.5.19

2. 安装 Apache, 见 linux Apache 安装

3. 安装 php,见 Linux 安装 php-5.4.1

4. 安装 Testlink

1)将TestLink解压缩到/usr/local/web/apache/htdocs,命名文件夹为testlink
2)访问http://192.168.2.9/testlink
3)点击NewInstallation
4)数据库管理员填写rootroot的密码(如安装MySQL时没有设置密码则为空),TestLink数据库用户名和密码可自定义填写,但不可以为空。
5)点击安装按钮,然后同意许可协议,继续
6)安装完成,点击最后一行的(Please ClickMe!)
7)使用admin登录,密码:admin
8)在菜单栏中的Personal中更改admin的密码,更改成功后在右上角点击注销
9)删除/usr/local/web/apache/htdocs/testlink/install目录
10)访问http://192.168.2.9/testlink 即可使用出现TestLink登陆界面,此时登陆界面为英文,如果需要修改为中文则按以下步骤操作:
打开testlinkcfg文件夹下的config.inc.php文件
查找$g_default_language ='en_GB';
修改为
$g_default_language = 'zh_CN';
则可以解决登陆界面汉化的问题
注意:如果在步骤8之前出现错误提示信息,则需要重新启动电脑。

下载地址:http://sourceforge.net/project/showfiles.php?group_id=90976&package_id=216115&release_id=577783

5.优化配置
通过以上步骤,可以成功进入testlink页面,首先需要创建一个产品,才可以进入testlink主页。进入testlink主页后,页面为英文,需要在菜单栏中的Personal中更改admin默认的语言,选择“Chinesesilmpified”。
此时,testlink界面部分内容依旧为英文,原因是汉化文件不完整,需要重新汉化,汉化方法:下载utf8版本的strings.txt替换testlink\locale\zh_CN目录下的strings.txt即可完成汉化。
但是,testlink里面日期仍会有乱码,需要修改testlinkcfg文件夹下的const.inc.php文件,修改方法如下:
打开const.inc.php文件,查找:
'zh_CN' => "%Y锟斤拷%m锟斤拷%d锟斤拷%H%M锟斤拷%S锟斤拷",
'zh_CN' =>"%Y锟斤拷%m锟斤拷%d锟斤拷",
修改为:
'zh_CN' => "%Y-%m-%d",
'zh_CN' => "%Y-%m-%d %H:%M:%S",

常见问题

1. Access denied for user'Testlink '@'localhost' (usingpassword: YES)解决

 http://blog.csdn.net/flm2003/article/details/6130709

2. Mysql:is not allowedto connect to this MySQL server

 http://www.blogjava.net/acooly/archive/2008/09/17/229368.html

3.登陆时出错/usr/local/web/apache/htdocs/testlink/lib/functions/lang_api.php 173行错误
解决办法
文件:/usr/local/web/apache/htdocs/testlink/lib/functions/lang_api.php
173行
$t_lang_var = ereg_replace( '^TLS_', '', $t_var );
替换为:$t_lang_var = preg_replace( '/^TLS_/', '', $t_var );

4.登录时出错:Warning: strftime()[function.strftime]: It is not safe to rely on the system'stimezone settings. You are *required* to use the date.timezonesetting or the date_default_timezone_set() function. In case youused any of those methods and you are still getting this warning,you most likely misspelled the timezone identifier. We selected'UTC' for '8.0/no DST' instead in /usr/local/web/apache/htdocs/testlink/config.inc.phpon line 911

解决办法
文件:/usr/local/web/apache/htdocs/testlink/config.inc.php
文件头加入下行
date_default_timezone_set("PRC");


》》》实战Nginx与PHP(FastCGI)的安装、配置与优化


你可能感兴趣的:(Testlink 在Linux 安装)