You may found some problems which run your virtual machine with a Nginx web server. Nginx are known as high-performance HTTP web server, and reverse proxy, and it most widely running with PHP-FPM (FastCGI Proccess Manager). Although you may know Nginx act as reverse proxy in front of the Apache HTTPD web server on some web-based control panel like VestaCP, cPanel-WHM, Webuzo, and other panels. But it strongly recomended to run Nginx with PHP-FPM.

I am always using Nginx on all of my virtual machine, instead of Apache or LiteSpeed enterprise web server. Sometimes you will face some issues when running Nginx on your cloud, like error logs bellow:

$ nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
[FAILED]
[[email protected] ~]#

The error logs above inform you that some process on your virtual machine like nginx is already running on port 80. So, in order to solve the issue, simply follow this tutorial. This problems usually occur when starting Nginx web server on Ubuntu machine. Simply using the following command to solve that issue. Now, kill the proccess.

$ sudo fuser -k 80/tcp

And after that, let’s start Nginx web server.

$ service nginx start

LEAVE A REPLY

Please enter your comment!
Please enter your name here