warning after log in to testlink

1.8 related questions and discussions.
Please upgrade to LATEST 1.9.x.
No more fixes for 1.8.

Moderators: Amaradana, TurboPT, TL Developers

warning after log in to testlink

Postby gricolo » Wed Dec 15, 2010 11:02 am

Hello everybody!

It is my first post here, but probably not the last.
I'd like some help about a problem which is happen with my testlink.

Has anybody seen this error when log into testlink?

Warning: fopen(/var/www/testlink/logs/userlog7.log) [function.fopen]: failed to open stream: Permission denied in /var/www/testlink/lib/functions/logger.class.php on line 876

It´s appears in the header of testlink after to loggin with JUST some users, not all.

Anyone knows?

Thanks a lot!
gricolo
TestLink user
 
Posts: 1
Joined: Wed Dec 15, 2010 10:47 am

Re: warning after log in to testlink

Postby fman » Thu Jan 06, 2011 2:58 pm

seems a permission problem related to user that runs httpd
fman
Member of TestLink Community
 
Posts: 3014
Joined: Tue Nov 15, 2005 7:19 am

Re: warning after log in to testlink

Postby fman » Tue Apr 05, 2011 5:30 pm

as logs said you have an permission with logs dir and it' files.
user used to run webserver hsa no proper rights.
fman
Member of TestLink Community
 
Posts: 3014
Joined: Tue Nov 15, 2005 7:19 am

Re: warning after log in to testlink

Postby mrjingles » Wed Apr 06, 2011 7:44 pm

Hi!

I have the same problem.
I've tried to change log directory in custom_config.inc.php like this:

Code: Select all
$tlCfg->log_path = '/home/testlink/logs/' ;


but problem still exist. only path in apache error_log was changed:

before:
Code: Select all
[Sun Apr 03 20:18:21 2011] [error] [client 192.168.1.4] PHP Warning:  fopen(/srv/http/testlink/logs/userlog1.log): failed to open stream: Permission denied in /srv/http/testlink/lib/functions/logger.class.php on line 948, referer: http://19
2.168.1.5/testlink/lib/usermanagement/userInfo.php


after:
Code: Select all
[Sun Apr 03 22:06:27 2011] [error] [client 192.168.1.4] PHP Warning:  fopen(/home/testlink/logs/userlog1.log): failed to open stream: Permission denied in /srv/http/testlink/lib/functions/logger.class.php on line 948, referer: http://192.168.1.5/testlink/lib/usermanagement/userInfo.php


On both folders was set 777 permission.
What is wrong?

Thanks in advance.
mrjingles
TestLink user
 
Posts: 7
Joined: Sun Apr 03, 2011 6:26 pm

Re: warning after log in to testlink

Postby jearley3840 » Wed Jun 01, 2011 8:23 pm

I had this issue when I first installed testlink, it was on my login page even before trying to login.

what I did was to go to the /var/www/testlink/logs/ folder and chmod the files inside this folder to allow w (write) as well as read access

chmod -R go+w *.*

Hope this helps
jearley3840
TestLink user
 
Posts: 1
Joined: Wed Jun 01, 2011 8:20 pm


Return to TestLink 1.8 (OBSOLETE => EOL)[LOCKED]



Who is online

Users browsing this forum: No registered users and 6 guests