Testlink 安装时提示logs/upload路径错误解决办法

如果安装Testlink的时候出现以下问题

For security reasons we suggest that directories tagged with [S] on following messages, will be made UNREACHEABLE from browser.
Give a look to README file, section 'Installation & SECURITY' to understand how to change the defaults.
Checking if /var/www/testlink/gui/templates_c directory exists    OK
Checking if /var/www/testlink/gui/templates_c directory is writable (by user used to run webserver process)    Failed!
Checking if logs directory exists [S]     Failed!
Checking if /var/testlink/upload_area/ directory exists [S]  Failed!

解决办法

修改Testlink中的config.inc.php文件
vi config.inc.php

logs和upload的两处修改为以下方式:

$tlCfg->log_path = TL_ABS_PATH. 'logs' . DIRECTORY_SEPARATOR ;
$g_repositoryPath = TL_ABS_PATH . "upload_area" . DIRECTORY_SEPARATOR;

或者直接改成绝对路径:

$tlCfg->log_path = '/data/www/testlink/logs';
$g_repositoryPath = '/data/www/testlink/upload_area';

此处评论已关闭