Welcome! Log In Create A New Profile


PHPFPM and error logging per vhost

Posted by Barry WM 
Barry WM
PHPFPM and error logging per vhost
August 02, 2012 06:58AM

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

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

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!
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 246
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready