The php.ini does nothing for php-fpm.
If you are using php-fpm: You must provide the configuration change in the fpm pool config associated with your web application. Where these are located depends on your system. The probably locations are:
/etc/php-fpm.d/mydomain.conf
(if things have been set up neatly)
/etc/php-fpm.conf
(if you are only using one conf for php-fpm)
Your config paths are different from mine, so poke around to see what you have in there. Don't make changes in /etc/php-fpm.conf
if a suitable conf exists in /etc/php-fpm.d/
.
If you are not using php-fpm: Update php.ini with the correct configuration.
Correct your configuration: In the configuration shown in the question, you have uncommented documentation rather than provided the correct settings. You had better undo those changes, because PHP won't understand them.
The correct lines for php-fpm are:
; enable display of errors
php_flag[display_errors] = on
php_flag[display_startup_errors] = on
The correct lines for normal php are:
; enable display of errors
display_errors = On
display_startup_errors = On
Advice: Do not use these options in a production environment. Best wishes.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…