Enable Brotli

Enhance includes the Brotli extension, which is disabled by default. Follow these steps to enable it:


Steps to Enable Brotli

  1. Update PHP Container Base Images
    Run the following command to ensure your PHP container base images are up-to-date:

    /usr/sbin/chrootbuilder
    
  2. Add Brotli Extension in php.ini

    • Navigate to Developer Tools in the UI.
    • Add a php.ini directive:
      • Directive: extension
      • Value: brotli.so
  3. Verify Brotli in PHP Info

    • Check if the Brotli extension appears in the output of phpinfo().
  4. 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.

Note: Restarting the container ensures that the changes are applied.

Was this answer helpful? 0 Users Found This Useful (0 Votes)