Will reinstalling a nginx custom build overwrite current settings?

Posted April 18, 2016 3k views
NginxUbuntuPHPWordPressSystem ToolsLinux Commands

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’

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
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.