Here is guide on How To Uninstall mod_pagespeed in Ubuntu and Debian with all command. mod_pagespeed can offer undesired effects to remove. Robert is our long term reader, he requested to write an article on How To Install mod_pagespeed on Rackspace Cloud Server. He is using 2 server configuration on Rackspace Cloud (2GB + 1 GB) and after OpenSSL security update, he tweaked the server side and faced issues. He was unable to find any good guide on How To Uninstall mod_pagespeed in Ubuntu and Debian Linux, official document has one line command which (we do not know why) refused to get executed. So, we also decided to get rid of this Google’s Spam. As we said before; mod_pagespeed
has nothing really new which will work like a magic on high end setup. Getting rid of mod_pagespeed in Ubuntu and Debian Linux is relatively easy, it is very complicated in certain rpm based distro like Arch Linux. mod_pagespeed is all about front-end optimizations and can flareup issues if you do not install mod_security.
Throwing Whitepages are normal and common, if your traffic is falling after installing mod_pagespeed, it is definite that people on Far East or EU regions are receiving white pages.
How To Uninstall mod_pagespeed in Ubuntu and Debian Linux : Read the Previous Guide First
Kindly read the article on How To Install mod_pagespeed on Rackspace Cloud Server to check whether your setup is right. If you have setup mod_pagespeed
in Ubuntu and Debian Linux properly, the whole thing might never get uninstalled or get uninstalled with things belonging to other packages. This mod_pagespeed
is not for our high end setup. Again in lowed setup, it can create issues.
---
How To Uninstall mod_pagespeed in Ubuntu and Debian Linux : Steps
Kindly follow the steps in very cool head. You must deactivate any Cache Plugin except Redis Cache or Memcache on fronted. If your .htaccess and wp-config file is set to 400 or ownership is given to www-data
; manually uncoment the line on wp-config.php
file which defines wp_cache to be a true settings. Remove stuffs from .htaccess added by W3 Total Cache if auto remove does not work.
Login to SSH and go to /var/www (a preventive measure so that you do not run any wrong command without mentioning the path, which is not related to these commands. i.e. chown, chgrp etc.)
1 2 3 4 5 6 7 8 9 10 11 12 13 | # disable the working symlinked stuffs sudo a2dismod pagespeed sudo service apache2 restart # turn off nano /etc/apache2/mods-available/pagespeed.conf # edit to off from on and save sudo service apache2 restart # will work for the most sudo apt-get autoremove mod-pagespeed-stable # will work for some sudo apt-get autoremove mod-pagespeed-beta # must restart Apache service apache2 restart |
You are probably thinking that, all is done! No, we need to remove the cache folder :
1 2 3 | rm -fr /var/cache/mod_pagespeed # check the path, restart apache2 service apache2 restart |
Removing Modules from etc/apache2/mods-available/
can be a pain. We will suggest to build a new server than trying this and that unless you are an UNIX administrator.