Search code examples
nginxpagespeed

how do i uninstall google pagespeed installed in ubuntu with nginx?


I have 2 questions

How do i purge/uninstall Nginx I compiled on ubuntu?

I did install google pagespeed on ubuntu web server running nginx, according to the following tutorial https://github.com/pagespeed/ngx_pagespeed and https://developers.google.com/speed/pagespeed/module/configuration

How do i purge this package without affecting my server?

Your assistance will be highly appreciated


Solution

  • To uninstall pagespeed, build a new version of nginx from source but without the --add-module=$HOME/ngx_pagespeed-1.8.31.2-beta argument to ./configure that tells the nginx build process to include pagespeed.

    Alternatively, you can remove all pagespeed directives from your configuration, which has almost the same effect as uninstalling it.