1. I use laradock to configure the development environment and the service can start normally. Now I want to turn on display_errors=On, and also modified the display_errors setting of php-fpm/php70.ini and laravel.ini to On. After the change, I restarted nginx and php-fpm, but when I refreshed the phpinfo page, display_errors still showed off.
How can I enable it?
When I modify some other configurations in php70.ini, such as changing "display_startup_errors" from "Off" to "On", it will take effect after restarting the service.
I also checked that the ini file has not been changed. Please tell me the reason, thank you.
This is the configuration file in my laradock's php-fpm folder.
https://github.com/laradock/l...
I found the reason. After modifying display_error=On in laradock/php-fpm/laravel.ini, I restarted the dockers container and found that laravel.ini was not loaded. It was still the same old one and the display was still Off.
Looking at the dockfile70 of php-fpm, laravel.ini was added by ADD,
laradock/php-fpm/Dockerfile-70 line 321:
ADD ./laravel.ini /usr/local/etc/php/conf.d
ADD ./laravel.pool.conf /usr/local/etc/php-fpm.d/
How to make the container load the modified laravel.ini again?