#49850 [NEW]: Cannot override Apache2 vhost ErrorLog with vhost error_log
| From: | rmichael-php at edgeofthenet dot org | Date: | Mon, 12 Oct 2009 19:22:24 +0000 |
| Subject: | #49850 [NEW]: Cannot override Apache2 vhost ErrorLog with vhost error_log | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-143492@lists.php.net to get a copy of this message | ||
From: rmichael-php at edgeofthenet dot org
Operating system: OpenSolaris
PHP version: 5.2.11
PHP Bug Type: Apache2 related
Bug description: Cannot override Apache2 vhost ErrorLog with vhost error_log
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 bug report at http://bugs.php.net/?id=49850&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49850&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49850&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49850&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=49850&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49850&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=49850&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=49850&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=49850&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=49850&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=49850&r=support
Expected behavior: http://bugs.php.net/fix.php?id=49850&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=49850&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=49850&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=49850&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49850&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=49850&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=49850&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=49850&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=49850&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=49850&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=49850&r=mysqlcfg