Tag Archives: php 500

How to Solve PHP 500 Error

PHP 500 error reporting solution

1. First look at the error log file path specified by nginx error.log, find the log file, look at the information inside
2, and then look at the path of PHP error log specified in php-fpm.conf
as follows

php_flag[display_errors] = off
php_admin_flag[log_errors] = on
php_admin_value[error_log] = /data/logs/fpm-php.log

the in php.ini is invalid. Use PHP FPM to control it