nginx is still on port 80 - bind() to 0.0.0.0:80 failed (98: Address already in use)

Date Published: 07/03/2013 1:46 PM
Author: user2426362

I edited this file:

/etc/nginx/sites-enabled/default

to listen 4444; - https://dpaste.de/nrUy9/

but still is on port 80. What can I do? Port 80 is used by apache.

My error:

root@user /etc/nginx/sites-enabled # service nginx restart
Restarting nginx: 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()
nginx.
View full answer on Server Fault

View Local Answers...

Can't find the answer to this question?

No answers yet.

Can you answer this question?

nginx is still on port 80 - bind() to 0.0.0.0:80 failed (98: Address already in use)

  • Your Nickname
  • Your Answer

  • Enter the code below to prove you are human