Welcome to Geeklog, Anonymous Thursday, December 26 2024 @ 11:36 pm EST

Geeklog Forums

Error and access Logs not working


Status: offline

Fanny Mae

Forum User
Junior
Registered: 06/03/04
Posts: 22
Is it possible that the files were corrupted, or opened with the wrong program to edit them?

Warning: fopen(/home/XXXXXXX/geeklog/logs/error.log): failed to open stream: Permission denied in /home/lXXXXXXX/www/lib-common.php on line 1558
An SQL error has occured. Please see error.log for details.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Check the file and directory permissions (as by the installation instructions, step 3).

bye, Dirk
 Quote

Status: offline

Fanny Mae

Forum User
Junior
Registered: 06/03/04
Posts: 22
Dirk,

It is not a new installation but I did open the files - edit and then resave them
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Well, I don't know what you used to edit the files but it's quite possible that that changed their file permissions. So check them (see above ...).

bye, Dirk
 Quote

Status: offline

Fanny Mae

Forum User
Junior
Registered: 06/03/04
Posts: 22
Testing logs directory /home/mysite/geeklog/logs/ ...

Running check.php yields

Could not open error.log and access.log for writing.
Please check that you have set the logs directory and the files error.log and access.log in that directory to chmod 775.
Current permissions for logs: 775
Current permissions for error.log: 775
Current permissions for access.log: 775
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
... and a bit further down, it should say
If the above instructions tell you to chmod files and/or directories to 775 but they already are at 775, try chmod 777 instead.

bye, Dirk
 Quote

Status: offline

Fanny Mae

Forum User
Junior
Registered: 06/03/04
Posts: 22
Testing logs directory /home/mysite/geeklog/logs/ ...

Running check.php yields

Could not open error.log and access.log for writing.
Please check that you have set the logs directory and the files error.log and access.log in that directory to chmod 775.
Current permissions for logs: 775
Current permissions for error.log: 775
Current permissions for access.log: 775
 Quote

Status: offline

Fanny Mae

Forum User
Junior
Registered: 06/03/04
Posts: 22
Is it possible for our ISP to make it so we cannot record to those files?

Their FAQ's read Because of a possible security issue we have temporarily removed access to the live logs and changed the way we allow live log access
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
I have no idea what they may refer to by "live logs" - you'd have to ask them.

Did you try chmod 777 (actually, 666 would be enough) for the logfiles?

bye, Dirk
 Quote

Status: offline

Fanny Mae

Forum User
Junior
Registered: 06/03/04
Posts: 22
Yep,

777 -

Now I get this error when trying to add a comment to a story

Sun Mar 18 14:54:07 2007 - 1044: Access denied for user: 'mysite@%' to database 'geeklog'. SQL in question: LOCK TABLES gl_comments WRITE
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
So you've got this problem: comment.php error: can not lock table gl_comments

bye, Dirk
 Quote

Status: offline

Fanny Mae

Forum User
Junior
Registered: 06/03/04
Posts: 22
Look like it.

Unfortunately we cannot "speak" with support form our ISP, only communicate via help desk entries - so now I wait for them to reply.
 Quote

All times are EST. The time is now 11:36 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