I'm running a PHP website on a linux web app.
/usr/sbin/apache2 -v output says I'm running Apache 2.4.38
apache2ctl -M lists brotli_module as present, and
ls /etc/apache2/mods-enabled/ contains brotli, so it appears to be enabled.
phpinfo curl section lists Brotli = No, and brotli tester sites list it as not enabled.
Is there an extra step to enable brotli for my pages / JS / CSS? Please tell me I'm just missing something obvious here :)
I have tried running
a2enmod brotli service apache2 restart
and adding the following to my .htaccess file
but now I'm getting a 500 response and the following in my logs:
Unknown filter provider BROTLI_COMPRESS
(I've tried the same with just BROTLI with the same error)