Here’s how to turn off the Google PageSpeed module within Apache and PHP’s OPCache functionality that is enabled by default within Bitnami instances on Google Cloud Platform.
-
- Establish a terminal session to your Google Cloud Platform instance with your preferred terminal client (e.g. Putty).
- Open up /opt/bitnami/apache2/conf/httpd.conf with your preferred file editor and find the following lines:Include conf/pagespeed_libraries.conf
Include conf/pagespeed.conf - Comment them out to match the following lines:
# Include conf/pagespeed.conf
# Include conf/pagespeed_libraries.conf - Save changes and return to terminal prompt.
- Open up /opt/bitnami/php/etc/php.ini with your preferred file editor and find the following line:opcache.enable=1
- Comment it out and disable opcache.enable by matching the following lines:
# opcache.enable=1
opcache.enable=0 - Save changes and return to terminal prompt.
- Restart the Apache service with the following command:
sudo /opt/bitnami/ctlscript.sh restart apache
That’s it 🙂