Restore/repair nginx after configtest fail
In my LEMP stack my nginx got broken, i wonder if i can fix it or else stille backup some stuff before reverting to a previous snapshot. Lemp was set up with a tut here on DigitalOcean.
So what happened?
After some work in wp multi install (setting up sites/plugins and adding/editing content) i’ve decided to make a snapshot, i used a terminal with ssh and i entered poweroff.
Which was not smart… Better had i used shutdown
But anyways the snapshot was made. Then, not yet aware of any problems i ran an apt-get update and apt-get upgrade.
With the droplet activated my sites dont work anymore a service nginx configtest returned fail just as service nginx restart does. Reverting to the snapshot ive just made didnt work.
My guess ( i am a novice) is that ubuntu works fine, that just nginx got corrupted.
1 can i exactly diagnose what is wrong, and what is affected? How do i proceed?
2 can i fix nginx if yes how should i do this?
3 if not and i have to revert to an much earlier snapshot, is there a script available to still backup my multisite?
4 could i run xcloner from another location and pull a backup from the droplet over sftp?
apt-get -f install – try to fix broken packages
dpkg –configure -a – try to fix broken
be a good start?
Any help is greatly appreciated!
Working with terminal commands: i am new to it, but exploring
I keep an sftp window open to have some visual feedback
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.×