Page 1 of 1

Cannot bind nginx and httpd [Solved]

Posted: Fri Jun 23, 2017 12:28 pm
by kandalf
I have a VPS with centos 6.9 on Azure with VestaCP and a single domain, it is working for months but today the website went down and the services httpd and nginx are stopped and I can't start them.

If I ran "service httpd start" I get this:

Code: Select all

Starting httpd: (99)Cannot assign requested address: make_sock: could not bind to address MY_PUBLIC_IP:8080
no listening sockets available, shutting down
Unable to open logs

If I ran "service nginx start" I get this:

Code: Select all

Starting nginx: nginx: [emerg] bind() to MY_PUBLIC_IP:443 failed (99: Cannot assign requested address)
Any tip how can I sold this? I have no idea at the moment and the website is down

Re: Cannot bind nginx and httpd [Urgent]

Posted: Fri Jun 23, 2017 12:43 pm
by gecube_ru
Please write the output of the next commands:

Code: Select all

netstat -tulpn | grep --color :80
netstat -tulpn | grep --color :443

Re: Cannot bind nginx and httpd [Urgent]

Posted: Fri Jun 23, 2017 12:46 pm
by kandalf
gecube_ru wrote:Please write the output of the next commands:

Code: Select all

netstat -tulpn | grep --color :80
netstat -tulpn | grep --color :443
Thank you for your quick reply I think I found the problem the local ip address of the VPS changed for some reason. I reread the IP information and now everything is working.

This is one of the reasons I like VestaCP community every time that something is urgent someone allways try to help. Thank you gecube_ru