Cannot set php error_log

Jackiegoal

Verified User
Joined
Nov 22, 2006
Messages
66
Because we do not want to display any errors on our websites, we want to use PHP's error logging functionality. First, in a .htaccess file, we set display_errors to off, which returns the right local value "off", then we set log_errors to on, which also works according tot phpinfo(), but setting error_log won't work. We've tried a file name in the same folder, a full path starting with /home and a path starting with /domains, but it all won't work. Phpinfo() will just give 0 as local value and no value as master value.

I've tried setting error_log in php.ini (using /dev/null) so it would have a standard value, but that didn't seem to do the trick.

What am I doing wrong? Is there a way to work around this or am I, for instance, setting the path the wrong way? I'm running the most recent custombuild DA.

Thank you in advance for your time and answers.
 
Still no luck here. We've managed to do it another way, but we want this to work in the future. Any ideas? Wild guesses?
 
Try:
Code:
php_flag log_errors on
php_value error_log /home/[B]user[/B]/domains/[B]domain.com[/B]/public_html/php.log
Does it work? If it does - secure php.log by:
Code:
<Files php.log>
Order deny,allow
Deny from all
Allow from [B]your_IP[/B]
</Files>
 
Back
Top