Posted on Leave a comment

How to Disable Bitnami LAMP Stack for AWS Cloud Caching

On Bitnami LAMP Stack for AWS Cloud, when making code changes, the changes are not immediately visible once the changes have been saved. Even after several refreshes, the server caches the pages. Changes are not visible until the pages are refreshed many times. To disable caching perform the following steps.

Step 1


PageSpeed is enabled. Disable it by editing the httpd.conf file found at: /opt/bitnami/apache2/conf/httpd.conf

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

Comment out the following two lines. Save the file and exit.

Step 2


PHP has Op Cache enabled. Disable it by editing the php.ini file found at: /opt/bitnami/php/etc/php.ini

opcache.enable=1
opcache.enable_cli=1

Disable this by changing the 1 to 0. Save the file and exit.

Step 3


Restart the Bitnami LAMP Stack for AWS Cloud instance.

sudo /opt/bitnami/ctlscript.sh restart

Your server should no longer cache the pages. Development work should be much easier. When development is complete, you may want to enable PageSpeed and enable PHP Op Cache.

Leave a Reply

Your email address will not be published. Required fields are marked *