MyBB Community Forums

Full Version: Error Logging Location? (Configuration:Settings)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Under Configuration: Settings: Server and Optimization Options, there is a setting called 'Error Logging Location'. The help documentation does not state specifically what type of file path to use, but the default (pre-filled) value is a relative URL ('./error.log').

The default value would put the error log in a location accessible by anyone, including web crawlers and the like (not a good idea).

My question is, can this setting take a local physical file path that is outside the sphere of the website? For example:
C:/Apache22/logs/forum/error.log

I'd rather know for sure rather than just trying it and crashing something.

Thanks.
The file must be writable. Depending on the server configuration (open_basedir,...) it may possible to place the file somewhere else.
Where exactly does this log file end up if I have MyBB in /var/www/MyBB?

I'm trying to debug why sending mail through Google Apps SMTP doesn't send anything, and inc/mailhandlers/smtp.php has a bunch of $this->fatal_error() calls. I've deliberately entered the wrong SMTP password in the ACP, but no error message ended up in /var/www/MyBB/error.log. The permissions on that file are exactly the same as those for the upload directory, and uploads work.
I've never looked deeply in to the error handling system which MyBB uses, but I've noticed on my development server that errors are logged in /etc/httpd/logs/error_log (httpd). From the sounds of it, it depends on the environment.
SMTP errors are logged separately (viewable via ACP), not in error.log.