1、windows下安装testlink,进入安装页面后,在检查一些相关配置环境时报错,如下:
Checking if /var/testlink/logs/ directory exists [S] </B<< td> Failed!
Checking if /var/testlink/upload_area/ directory exists [S] </B<< td> Failed!
Checking if /var/testlink/upload_area/ directory exists [S] </B<< td> Failed!
解决办法:
修改testlink下的config.inc.php文件:
注释://$tlCfg->log_path = '/var/testlink/logs/'; /* unix example
添加:$tlCfg->log_path = TL_ABS_PATH .'logs';
注释://$g_repositoryPath = '/var/testlink/upload_area/'; /* unix example
添加:$g_repositoryPath = TL_ABS_PATH .'upload_area';
添加:$tlCfg->log_path = TL_ABS_PATH .'logs';
注释://$g_repositoryPath = '/var/testlink/upload_area/'; /* unix example
添加:$g_repositoryPath = TL_ABS_PATH .'upload_area';
2、检查配置时提示如下内容
Checking MySQL Database Failed! MySQL Database cannot be used.
Checking Postgres Database Failed! Postgres Database cannot be used.
Checking GD Graphic library OK
Checking LDAP library Failed! LDAP library not enabled. LDAP
Checking Postgres Database Failed! Postgres Database cannot be used.
Checking GD Graphic library OK
Checking LDAP library Failed! LDAP library not enabled. LDAP
解决办法:
进入php所在目录,如D:xamppphp,打开php.ini,取消对应项前的冒号
3、重启apache服务,如果弹出提示无XXXX.dll,在如下两个文件夹查找
dll文件按系统分别放在不同的系统文件夹中,32位系统放在System32,64位系统放在SysWOW64文件夹下
There are security warnings for your consideration. See details on file: C:/xampp/htdocs/testlink/logs/config_check.txt. To disable any reference to these checkings, set $tlCfg->config_check_warning_mode = ‘SILENT’;
解决方法:
打开Testlink安装文件夹下的config.inc.php文件,将$tlCfg->config_check_warning_mode = ‘FILE’;
改为tlCfg->config_check_warning_mode = ‘SILENT’; 保存!再刷新页面,已无提示!