lnmp method to enable php error message: 1. Open the "php.ini" file and modify the content "display_errors = On"; 2. Open the "php-fpm.conf" file and add the content "php_flag" [display_errors] = on".
Recommendation: "PHP Video Tutorial"
lnmp method to enable php error message:
Introduction: The lnmp I use is the downloaded lnmp one-click installation package, so the directory of the configuration file may be somewhat different from the one I installed
Open error message
1. Turn on the error message of php
File location:/usr/local/php/etc/php.ini
display_errors = On error_reporting = E_ALL
2. Since the php service is handed over to php-fpm management, so To output error information, you also need to configure the configuration file of php-fpm
File location: /usr/local/php/etc/php-fpm.conf
; If it does not exist, add it yourself
php_flag[display_errors] = on
The above is the detailed content of How to enable php error message in lnmp. For more information, please follow other related articles on the PHP Chinese website!