Hi there, 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?
would: apt-get -f install – try to fix broken packages dpkg --configure -a – try to fix broken
be a good start? packages
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
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This question was answered by @EpicCDN:
Looks like your directives on /etc/nginx/sites-enabled/wp-ms:48 are wrong, correct the line and try restart.
If you update nginx with a package manager your old config file is copied to a backup file in same directory, ie: nginx.conf -> nginx.bak so try to check for it, not sure in ubuntu but look on /etc/nginx/
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.