Req #29063 [Opn->Csd]: no error is logged if php error_log could not be opened
| From: | ilutov@php.net | Date: | Fri, 08 Apr 2022 07:29:06 +0000 |
| Subject: | Req #29063 [Opn->Csd]: no error is logged if php error_log could not be opened | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-240795@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=29063&edit=1
ID: 29063
Updated by: ilutov@php.net
Reported by: akorthaus at web dot de
Summary: no error is logged if php error_log could not be
opened
-Status: Open
+Status: Closed
Type: Feature/Change Request
Package: *General Issues
Operating System: Irrelevant
PHP Version: *
-Assigned To:
+Assigned To: ilutov
Block user comment: N
Private report: N
New Comment:
This issue is very old, if this is still a problem please create a new issue on GitHub.
Previous Comments:
------------------------------------------------------------------------
[2015-01-08 23:06:09] ajf@php.net
Not sure if this is still broken, but I'll bump the version anyway.
------------------------------------------------------------------------
[2004-07-08 12:58:01] akorthaus at web dot de
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 this bug report at https://bugs.php.net/bug.php?id=29063&edit=1