Common NGINX Errors ¶
There are a few different reasons that your NGINX service may fail to start!
- The first reason, is the most common. If you have Apache installed on your server (for PHP based websites), either change Apache's default ports to not use port
80to use something else, or just blatantly uninstall Apache.
- The second reason, tends to happen when you're tired and not paying much attention, if you misspell your domain when adding it into your
/etc/nginx/sites-available/defaultdirectory / file. If you forget to finish the domain with a
.xyzand instead just put
.xyit will fail to load the default file, and hence, fail to restart your NGINX server.
- The third reason, is usually uncommon but can happen if you're messing around with things when their is no need to. This third possibility occurs when you alter your
nginx.conffile and break it or create a syntax error, or even just mis-spell something. It could even boil down to forgetting to put a
;at the end of a line. If you cannot identify the problem, you may just need to purge NGINX and start over, which is no fun, believe me.
Was this article helpful?
23 out of 49 found this helpful