Will reinstalling a nginx custom build overwrite current settings?

April 18, 2016 2.2k views
Linux Commands System Tools PHP Nginx WordPress 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.