nginx and php-fpm - Cannot write PHP error log
Posted
by
SteveEdson
on Server Fault
See other posts from Server Fault
or by SteveEdson
Published on 2012-12-20T10:51:31Z
Indexed on
2012/12/20
11:04 UTC
Read the original article
Hit count: 787
I am using Nginx and PHP-FPM on Linux. I am not sure whether the issue is that PHP is not writing to the location specified in the PHP.ini, or if it just isn't working at all.
Some of the logs produced by Nginx and PHP-FPM contain the PHP errors, but they are mixed in with other Nginx log output. When I run phpInfo(), value in the error_log is set to a folder in my home directory, but nothing is ever created.
I understand that values in the Nginx conf and PHP-FPM conf can overwrite those set in the PHP.ini, but surely running phpInfo(), would show the final config values?
I would like to be able to have 1 folder, with seperate files for the Nginx access and error log as well as PHP errors.
Thanks.
© Server Fault or respective owner