I'm trying to turn on html_errors
in PHP CLI. I've already found the proper config via php -i
and uncommented the line html_errors = On
there.
This is how I find the config file:
$ php -i | grep 'Loaded Configuration File'
Loaded Configuration File => /etc/php/8.1/cli/php.ini
This is how I check the (now uncommented) directive:
$ grep 'html_errors' /etc/php/8.1/cli/php.ini
html_errors = On
But I still see it turned off:
$ php -i | grep 'html_errors'
html_errors => Off => Off
What am I missing? According to this answer, the configuration is loaded fresh each time you invoke PHP from the CLI. I also restarted my php-fpm service, but that didn't help and it shouldn't be at all related to CLI configuration.