- php process is wrapped like this: PHP file -> php-fpm -> nginx
- basically means disable all facilities that catch output from the script on it's way to nginx
- standard error output will the end in Nginx's logging facility
On CentOS
- make sure your script does not set
error_log
- edit
/etc/php-fpm.conf
, disable lineerror_log = /var/log/php-fpm/error.log
- edit
/etc/php-fpm.d/www.conf
, disable line starting withphp_admin_value[error_log] = ...
- restart fpm:
systemctl restart php-fpm