Troubleshooting install issues
There are typically four sources of errors when attempting to install NGINX or to run it for the first time:
- Some of the prerequisites are missing or an invalid path to the source was specified. More details about prerequisites can be found in Chapter 1.
- After having installed NGINX correctly, you cannot use the SSL-related directives to host a secure website. Have you made sure to include the SSL module correctly during the
configure
step? More details are in Chapter 1. - NGINX refuses to start and outputs a message similar to
[emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
. This error signifies that another application is utilizing the network port80
. This could either mean that another web server, such as Apache, is already running on the machine, or that you don’t have the proper permissions to open a server socket on this port. This can happen if you are running NGINX from an underprivileged system account. ...