I configured the LNMP environment in Ubuntu, and Nginx configured the error log and access log, everything is normal. at the same time, the PHP-FPM in poolwww. error_log is configured in conf. {code ...} at the same time, I printed phpinfo (); for example: But my php-error.log is no error day...
I configured the LNMP environment in Ubuntu, and Nginx configured the error log and access log, everything is normal.
The PHP-FPM also configures 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 printed phpinfo (); for example:
But my php-error.log is not the error log, but in the nginx error log printed the php fatal error message.
Nginx error logs include:
PHP error logs are completely blank.
If I switch to the Homestead virtual machine, everything is normal, and php error_log is displayed normally.
How can I configure php error logs?
Reply content:
I configured the LNMP environment in Ubuntu, and Nginx configured the error log and access log, everything is normal.
The PHP-FPM also configures 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 printed phpinfo (); for example:
But my php-error.log is not the error log, but in the nginx error log printed the php fatal error message.
Nginx error logs include:
PHP error logs are completely blank.
If I switch to the Homestead virtual machine, everything is normal, and php error_log is displayed normally.
How can I configure php error logs?
1. check whether your program has the write permission under the error_log Directory. it mainly depends on the identity of the php-fpm you are running;