Wednesday, April 18, 2012

My answer to "Error in Exception handler: : file_put_contents(php.log): failed to open stream: Permission denied"

This is my answer to a Question on Support site for LampCMS project


This means that program cannot write to php debug log.
What this also means is that there was some kind of exception thrown, then exception handler tried to write the error message to php debug log and was unable to do it.

The default debug log is located in www dir, which is a bad place to have your log file.
You should set a path to your own writable directory where you want to keep debug log.
Look in your !config.ini file - search for LOG_FILE_PATH setting and edit it.
Set it to full path to your own writable directory anywhere on your server.
For example something like /var/logs/lampcms.log

No comments:

Post a Comment