Testlink log files

Ask community to help.

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
Conlar
TestLink user
Posts: 5
Joined: Fri Jan 25, 2008 9:07 pm

Testlink log files

Post by Conlar »

hi,
I can't seem to get the log files to turn on in my testlink install. I'm not really experienced in PHP so I don't know what i've done wrong. I've put the path to where i want the log files to go into the logging.inc.php and config.inc.php files, and i set the logging level to Debug, but i get the following message when i load up testlink:
Warning: fopen(./logs/userlog0.log) [function.fopen]: failed to open stream: No such file or directory in /root/testlink/lib/functions/logging.inc.php on line 75

Warning: fopen(./logs/userlog0.log) [function.fopen]: failed to open stream: Success in /root/testlink/lib/functions/logging.inc.php on line 75

Warning: fopen(./logs/userlog0.log) [function.fopen]: failed to open stream: Success in /root/testlink/lib/functions/logging.inc.php on line 75

Warning: fopen(./logs/userlog0.log) [function.fopen]: failed to open stream: Success in /root/testlink/lib/functions/logging.inc.php on line 75

Warning: fopen(./logs/userlog0.log) [function.fopen]: failed to open stream: Success in /root/testlink/lib/functions/logging.inc.php on line 75

Warning: fopen(./logs/userlog0.log) [function.fopen]: failed to open stream: Success in /root/testlink/lib/functions/logging.inc.php on line 75

Anyone have any ideas?
havlatm
Member of TestLink Community
Posts: 940
Joined: Mon Oct 31, 2005 1:24 am
Location: Czech

Post by havlatm »

Check if php could write into the directory. CHMOD 777 logs/ could solve it.
Conlar
TestLink user
Posts: 5
Joined: Fri Jan 25, 2008 9:07 pm

Post by Conlar »

no, i thought that might be the case too, but i have already done that. anything else?
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

Please give info about:
Operating System
PHP version
Webserver version
Conlar
TestLink user
Posts: 5
Joined: Fri Jan 25, 2008 9:07 pm

Post by Conlar »

Operating system: Ubuntu 7.10
PHP version: PHP 5.2.3
Webserver: Apache 2.2.4
havlatm
Member of TestLink Community
Posts: 940
Joined: Mon Oct 31, 2005 1:24 am
Location: Czech

Post by havlatm »

Try to specify absolute directory; for example /tmp/ instead of ./logs/. I guess that ./logs is related to library logging.inc.php.
Conlar
TestLink user
Posts: 5
Joined: Fri Jan 25, 2008 9:07 pm

Post by Conlar »

thanks, i tried that just now, but it still gives me the same error only with the absolute path instead of ./logs in the error.
Post Reply