When PHP is executing in cgi or mod_php mode, we can disable error reporting in php.ini and enable it on a per-directory basis using a .htaccess file in any directory we want.
php_flag display_startup_errors 1
php_flag display_errors 1
php_flag html_errors 1
php_value error_reporting -1
Doing it in the php script script itself is useless because it breaks on php parse errors which are very common.
How can I do the same thing when running php-fpm execution mode? Is it possible?