How do I disable mod_pagespeed on an Apache DigitalOcean server for my Wordpress site?

Skip to first unread message


Nov 11, 2021, 1:26:10 AM11/11/21
to mod-pagespeed-discuss
I installed Wordpress on my domain via DigitalOcean but have no experience using SSH or Linux commands. 

There's a FOUC issue on my website and one of the ways supported by a caching plugins suggests to disable mod_pagespeed. 

How do I disable it on my server? Thanks!


Nov 11, 2021, 3:38:06 AM11/11/21
to mod-pagespeed-discuss
You can disable it in several ways, depends on how your confi files are set.
All ways implies editing config files.
Maybe in you apache config file (normally called httpd.conf) there is a include directive with a file for all the pagespeed config, the you need to comment these line with a # at start fo like.
Maybe you have the pagespeed configuration in the httpd.conf directly, so you need to comment all lines  of the pagespeed directives or find one thar say  "ModPagespeed on" you can change the "on" with "unplugged"
Or maybe the pagespeed is enabled in you .htaccess file....
Anyway if you can locate all instances in the config files of  "ModPagespeed on " and change it to " ModPagespeed unplugged" this disables pagespeed.
But my bet is the FOUC is not caused by pagespeed module. FOUC is caused by loading css files too late and pagespeed module don´t move css files or snipets, pagespped rewrites these files/snipets in the same location the original files/snipets are.

Can you share a url to test?
Reply all
Reply to author
0 new messages