I am not an expert in linux/ubuntu.. just know the absolute basics following whatever I've read on stackoverflow.
I was trying to install pagespeed (upon nginx) on my EC2 server following the steps that are given here: https://modpagespeed.com/doc/build_ngx_pagespeed_from_source
Now what it seems is there are 2 installations of nginx
- Default one which is preinstalled on my EC2 server on which my site is running (/etc/nginx). this is version 1.4.6
- The new one which just got installed following the pagespeed installation instructions (/usr/sbin - I think this is the path but not sure)... I believe this is the latest/newer version.
Now, I didn't want to lose the 1st installation as the LIVE production site is running on this. The configurations and settings are working fine, didn't want them to mess up. My assumption was that pagespeed installation will happen over the existing setup and nothing else would change. This is where I was wrong.
Here are my questions:
- Is there a way to rollback the new setup/installation that I did? How can I do it?
- How can I setup/use pagespeed on existing server (/etc/nginx) without losing any settings or suffering major downtime on existing server.
- Last option, how can I configure my website to function from the newer installation of nginx (/usr/sbin?) Assuming this switch will be easy and quick. What steps to follow for this?
- If I go with option #3 how can I remove/uninstall the older version of nginx?
Hope you guys can help.
Best!