Posted on: 09/12/03 04:40pm
By: Anonymous (Guest)
Warning: fopen(/home/user/public_html/dbname/logs/error.log): failed to open stream: Permission denied in /home/user/public_html/dbname/lib-common.php on line 1561
I have gave permission to all four directories/files instructed on the document. I have changed permission on the lib-common.php file also.
What could be causing this error to show up on my index page , on top of \"Today\'s featured articles.\"
Thanks in advance.
Re:Permission Denied on lib-common.php
Posted on: 09/12/03 04:45pm
By: exaurdon
It appears that your php process does not have access to edit:
/home/user/public_html/dbname/logs/error.log
lib-common.php is the script that is trying to edit error.log.
Assuming you are running apache, php generally has apache\'s permissions, so try setting the owner of lib-common.php and error.log to \'nobody\'
Also, check that error.log exists. If it doesn\'t, it may be that the /home/user/public_html/dbname/logs/ directory is causing hte problem, your process may not have access to create a file in that directory?
Re:Permission Denied on lib-common.php
Posted on: 09/12/03 04:53pm
By: Anonymous (Guest)
[QUOTE BY= exaurdon] It appears that your php process does not have access to edit:
/home/user/public_html/dbname/logs/error.log
lib-common.php is the script that is trying to edit error.log.
Assuming you are running apache, php generally has apache\'s permissions, so try setting the owner of lib-common.php and error.log to \'nobody\'
Also, check that error.log exists. If it doesn\'t, it may be that the /home/user/public_html/dbname/logs/ directory is causing hte problem, your process may not have access to create a file in that directory?[/QUOTE]
The error.log file exist under the \"logs\" directory. 644 permission.
And how would I change the setting of the owner of lib-common.php and error.log file?
Re:Permission Denied on lib-common.php
Posted on: 09/12/03 05:54pm
By: exaurdon
I\'m assuming you are running linux, for each file try:
chown nobody:nobody your_file_name_here
Apache normally runs as the user \'nobody\' so that should make apache the owner to error.log and lib-common.php, so then apache (php) should have permission to write those files...
Exaurdon
Re:Permission Denied on lib-common.php
Posted on: 09/12/03 06:13pm
By: Dirk