Hello
I'm trying to separate PHP errors into a log file for each vhost, using
just a single pool configuration. Currently all errors go into
/var/log/php5-fpm.log
My environment is Ubuntu 12.04, Apache 2.2.22, PHP 5.3.10.
According to this ServerFault questionhttp://serverfault.com/questions/387068/how-to-configure-php-fpm-to-log-logs-to-log-files-configured-in-nginx-virtualhos(for nginx though) since PHP 5.2.4 I should be able to set in
pool.d/www.conf
catch_workers_output = yes
php_admin_value[display_errors] = stderr
And that this would result in errors getting passed back to Apache, where
they would be logged according to the VirtualHost ErrorLog configuration.
Instead, PHP just sets display_errors = On, instead of the Off defined in
the global php.ini file.
Has anyone here managed to get this working?
Thanks in advance!