What do you get if you run sudo service nginx status
Nginx all of a sudden shows an error
I setup nginx last night with help from @sinnbeck, Worked all day, even did a reboot after a system update. Turned off computer for supper, booted back up and when I ran:
sudo systemctl restart nginx.service
Got error and it is:
Failed to start A high performance web server and a reverse proxy server
I checked several on line forums, stackoverflow, etc None of the articles I saw solved it. No changes was made to anything in nginx, it just suddenly happened. It's Lubuntu latest LTS version.
I did make sure nothing else was using port 80. Any Ideas?
EDIT
Funny thing is a sudo nginx -t shows
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
Ah it just hit me. It might be a race condition. Apache started first (it gets installed automatically with php). Remove it
sudo apt purge apache2
sudo service nginx restart
Please or to participate in this conversation.