Bitnami PageSpeed

NOTE: Before running the commands shown on this page, you should load the Bitnami stack environment by executing the installdir/use_APPNAME script (Linux and Mac OS X) or by clicking the shortcut in the Start Menu under "Start -> Bitnami APPNAME Stack -> Application console" (Windows). Learn more.

The PageSpeed module speeds up your site and reduces page load time. This open-source Apache or Nginx HTTP server module automatically applies web performance best practices to pages, and associated assets (CSS, JavaScript, images) without requiring that you modify your existing content or workflow.

How to check if PageSpeed is enabled?

There are different ways to check if mod_pagespeed for Apache is already configured and running.

  • Check if the module and configuration files are active, by inspecting the installdir/apache2/conf/httpd.conf and looking for the following lines:

     Include conf/pagespeed.conf
     Include conf/pagespeed_libraries.conf
    

    The module will be located at installdir/apache2/modules/mod_pagespeed_ap24.so.

  • Check the source code of rendered application page. Images, CSS and JavaScript should appear in compressed form. For example, an image might be named sample.png.pagespeed.ic.ZWx38TQ7J5.png.

How to disable PageSpeed?

To disable PageSpeed, follow these steps:

  • Comment out the following lines in the installdir/apache2/conf/httpd.conf file:

     Include conf/pagespeed.conf
     Include conf/pagespeed_libraries.conf
    
  • Restart Apache:

     $ sudo installdir/ctlscript.sh restart apache
    

How to flush the PageSpeed cache?

To flush the PageSpeed cache, follow these steps:

  • Execute this command:

     $ sudo touch installdir/apache2/var/cache/mod_pagespeed/cache.flush
    
  • Restart Apache:

     $ sudo installdir/ctlscript.sh restart apache
    
NOTE: When running the commands shown on this page, replace the installdir placeholder with the full installation directory for your Bitnami stack.
nativeInstaller

Bitnami Documentation