Enable Brotli
Enhance includes the Brotli extension, which is disabled by default. Follow these steps to enable it:
Steps to Enable Brotli
-
Update PHP Container Base Images
Run the following command to ensure your PHP container base images are up-to-date:/usr/sbin/chrootbuilder
-
Add Brotli Extension in php.ini
- Navigate to Developer Tools in the UI.
- Add a php.ini directive:
- Directive:
extension
- Value:
brotli.so
- Directive:
-
Verify Brotli in PHP Info
- Check if the Brotli extension appears in the output of
phpinfo()
.
- Check if the Brotli extension appears in the output of
-
Restart the PHP Container (if needed)
If the extension does not load immediately, restart the PHP container:- Option 1: Use the command:
pkill -9 -u website_user
- Option 2: Toggle the PHP version in the control panel.
- Option 1: Use the command:
Note: Restarting the container ensures that the changes are applied.