Will reinstalling a nginx custom build overwrite current settings?

April 18, 2016 404 views
System Tools Nginx WordPress Linux Commands PHP Ubuntu

I'm using RTCamps custom bulid of NGINX without EE. There is an update for one of the modules included in his build, but I'm hesitant to reinstall nginx again because I'm not sure if I'll lose all my configurations.

TBH, I can't remember all the changes I made to what files.

His repo:

Can I reinstall nginx without losing my config files? 'apt install nginx-custom'

1 Answer

I'd recommend backing your config files up to another location - and with .bak . That way, even if the configs are overwritten, you will still have your previous config. You may also want to test this on a non-production server, so taking a snapshot of your production Nginx Droplet, and then launching a new one on which to test re-installing the custom Nginx build would be a good plan. Alternatively, you could start from scratch with the custom build, and then import your config files.

Have another answer? Share your knowledge.