#49850 [Opn->Bgs]: Cannot override Apache2 vhost ErrorLog with vhost error_log
| From: | jani@php.net | Date: | Mon, 19 Oct 2009 11:16:39 +0000 |
| Subject: | #49850 [Opn->Bgs]: Cannot override Apache2 vhost ErrorLog with vhost error_log | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-143673@lists.php.net to get a copy of this message | ||
ID: 49850
Updated by: jani@php.net
Reported By: rmichael-php at edgeofthenet dot org
-Status: Open
+Status: Bogus
Bug Type: Apache2 related
Operating System: OpenSolaris
PHP Version: 5.2.9
New Comment:
That other bug is closed because it was fixed. You should really
update..
Previous Comments:
------------------------------------------------------------------------
[2009-10-12 20:06:41] srinatar@php.net
did you try to reproduce this issue with recently released php 5.2.11 ?
i am not able to reproduce this issue with latest php snapshot
(http://snaps.php.net) on both php 5.2. and php 5.3
------------------------------------------------------------------------
[2009-10-12 19:22:24] rmichael-php at edgeofthenet dot org
Description:
------------
(This bug is against PHP 5.2.9, but I cannot choose it in the pull-down
menu; and, there is nothing related in ChangeLogs since then.)
PHP error_log output goes to Apache's ErrorLog file, not the
php_admin_value error_log I specify.
Both Apache's ErrorLog and PHP's error_log are being specified in a
virtualhost configuration file:
Results in phpinfo() indicating the error_log is in fact the file set
with "php_admin_value error_log", but the test string appears in the
Apache ErrorLog file instead.
I believe this is dupe of 31419, but that bug was closed.
http://bugs.php.net/bug.php?id=31419
# httpd -V
Server version: Apache/2.2.11 (Unix)
Server built: Jun 24 2009 11:50:30
Server's Module Magic Number: 20051115:21
Server loaded: APR 1.3.3, APR-Util 1.3.7
Compiled using: APR 1.3.3, APR-Util 1.3.4
# php --version
PHP 5.2.9 (cli) (built: Jun 4 2009 21:25:09)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
Reproduce code:
---------------
<VirtualHost *>
php_admin_flag display_errors On
php_admin_flag display_startup_errors On
php_admin_value error_reporting 6143
php_admin_flag log_errors On
php_admin_value error_log /path/to/my_php-error_log
ErrorLog /path/to/my_apache-error_log
</VirtualHost>
<?php
error_log("Test error log.");
phpinfo();
?>
Expected result:
----------------
Error log output should go to /path/to/my_php-error_log as specified in
the virtualhost configuration file.
(Just consulted bugs suggest relates issues; none apply.)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49850&edit=1