shadedecho
Programmer
I am having a problem which has persisted for the last 8 months with no solutions. I am reposting here again to see if anyone new has any new ideas.
I am running Debian 3.0 (built from source), with apache 2.0.54 (built from source) and PHP 5.0.4 (built from source).
When I leave the "error_log" item commented out in the php.ini file, and I run a script with a PHP error in it (like a call to an undefined function), the error gets dumped to my apache error log (which is virtual-host specific).
Ok... so then I think, well if in the script, i call ini_set() and set the value of the error_log directive to another file, then any subsequent errors in that executing script would be sent to THAT file, not the apache error log file, right?
Wrong... no matter what I do, it still keeps sending errors to that apache error log for that particular virtual host.
I also tried overriding the setting in the VIRTUALHOST directive in httpd.conf, like:
<VirtualHost xxx.xxx.xxx.xxx>
......
ErrorLog /path/to/apache.error
<Directory / php_value error_log "/path/to/php.error"
</Directory>
</VirtualHost>
Still, it seemed to ignore the dynamic error_log value I'm trying to give it, and in absence of one from the php.ini file, it just dumps it to the apache log file.
In addition, I am not even able to set the error_log IN PHP.INI!!! no matter what I do, errors are sent to that apache error log.
HELP! I've reported this as a bug to PHP, and they are unresponsive in helping me figure out why. They claim to be unable to reproduce it.
I am running Debian 3.0 (built from source), with apache 2.0.54 (built from source) and PHP 5.0.4 (built from source).
When I leave the "error_log" item commented out in the php.ini file, and I run a script with a PHP error in it (like a call to an undefined function), the error gets dumped to my apache error log (which is virtual-host specific).
Ok... so then I think, well if in the script, i call ini_set() and set the value of the error_log directive to another file, then any subsequent errors in that executing script would be sent to THAT file, not the apache error log file, right?
Wrong... no matter what I do, it still keeps sending errors to that apache error log for that particular virtual host.
I also tried overriding the setting in the VIRTUALHOST directive in httpd.conf, like:
<VirtualHost xxx.xxx.xxx.xxx>
......
ErrorLog /path/to/apache.error
<Directory / php_value error_log "/path/to/php.error"
</Directory>
</VirtualHost>
Still, it seemed to ignore the dynamic error_log value I'm trying to give it, and in absence of one from the php.ini file, it just dumps it to the apache log file.
In addition, I am not even able to set the error_log IN PHP.INI!!! no matter what I do, errors are sent to that apache error log.
HELP! I've reported this as a bug to PHP, and they are unresponsive in helping me figure out why. They claim to be unable to reproduce it.