Question

Will reinstalling a nginx custom build overwrite current settings?

Posted April 18, 2016 2.5k 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:
https://launchpad.net/~rtcamp/+archive/ubuntu/nginx

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.

×
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.

Submit an Answer