Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 07:59 pm EST

Geeklog Forums

Permission Denied on lib-common.php


Guest

Anonymous
full
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.
 Quote

Status: offline

exaurdon

Forum User
Regular Poster
Registered: 08/13/03
Posts: 107
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

Guest

Anonymous
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?
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?
 Quote

Status: offline

exaurdon

Forum User
Regular Poster
Registered: 08/13/03
Posts: 107
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
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The short answer, of course, would have been to read the installation instructions (again). Especially http://www.geeklog.net/docs/install.html#permission-denied bye, Dirk
 Quote

All times are EST. The time is now 07:59 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content