From: akorthaus at web dot de Operating system: Linux 2.4.26 PHP version: 4.3.7 PHP Bug Type: Apache related Bug description: no error is logged if php error_log could not be opened
Description: ------------ I have the following settings in php.in + phpinfo(): log_errors = On error_log = "/var/log/apache/php_error.log" Server API: Apache (mod_php) Apache-Version: 1.3.31 But if I produce a php-error, this error gets logged into Apache error-log: /var/log/apache/error_log, and not into /var/log/apache/php_error.log, as configured. The reason was that mod_php not like mod_gzip and mod_ssl, loggs errors with rights of the apache child-process. The Apache user cannot create files in /var/log/apache, and cannot write to files owned by root. But there is no error-message in Apaches error_log, I would expect something like "could not open '/var/log/apache/php_error.log', permission denied". Only php-errors itself get logged into Apaches error_log. perhaps its a "feature request". -- Edit bug report at http://bugs.php.net/?id=29063&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29063&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29063&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29063&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29063&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29063&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29063&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29063&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29063&r=support Expected behavior: http://bugs.php.net/fix.php?id=29063&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29063&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29063&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29063&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29063&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29063&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29063&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29063&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29063&r=float