Cannot bind nginx and httpd [Solved]
Cannot bind nginx and httpd [Solved]
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:
If I ran "service nginx start" I get this:
Any tip how can I sold this? I have no idea at the moment and the website is down
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)
Last edited by kandalf on Fri Jun 23, 2017 12:46 pm, edited 1 time in total.
Re: Cannot bind nginx and httpd [Urgent]
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]
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.gecube_ru wrote:Please write the output of the next commands:
Code: Select all
netstat -tulpn | grep --color :80 netstat -tulpn | grep --color :443
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