I configured the LNMP environment under Ubuntu, where nginx configured the error log and access log, everything is OK.
At the same time PHP-FPM is configured with Error_log in pool/www.conf.
catch_workers_output = yesphp_admin_value[error_log] = /home/liyi/logs/php-error.logphp_admin_flag[log_errors] = on
At the same time, I print phpinfo (), such as:
But my php-error.log is no error log, but in the Nginx error log printed out the PHP fatal error message.
Nginx error log such as:
The PHP error log is completely blank.
I swapped with homestead virtual machine then everything is OK, php error_log normal display.
How do I configure the PHP error log?
Reply content:
I configured the LNMP environment under Ubuntu, where nginx configured the error log and access log, everything is OK.
At the same time PHP-FPM is configured with Error_log in pool/www.conf.
catch_workers_output = yesphp_admin_value[error_log] = /home/liyi/logs/php-error.logphp_admin_flag[log_errors] = on
At the same time, I print phpinfo (), such as:
But my php-error.log is no error log, but in the Nginx error log printed out the PHP fatal error message.
Nginx error log such as:
The PHP error log is completely blank.
I swapped with homestead virtual machine then everything is OK, php error_log normal display.
How do I configure the PHP error log?
1. Check your program to the Error_log directory under the permission to write, mainly to see what identity you are running PHP-FPM;