Thursday, January 31, 2019

Apache restart on Ubuntu - error “could not bind to address 0.0.0.0:80”

I'm a n00b - trying to get apache2 set up on Ubuntu 9.10 (Karmic Koala) on Rackspace Cloud. I have set up/configured OpenSSL and installed Apache, but Apache won't start. I assume its a misconfiguration in my /etc/apache2/sites-available/ssl or /etc/apache2/sites-available/default files)



When I try to restart apache using the command:



sudo /etc/init.d/apache2 restart
I get the following error message:



[error] (EAI 2)Name or service not known: Could not resolve host name *.80 -- ignoring! 
[error] (EAI 2)Name or service not known: Could not resolve host name *.80 -- ignoring!
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down

Unable to open logs ...fail!


For my /etc/apache2/sites-available/ssl I have used a virtual host of *:443.



For my /etc/apache2/sites-available/default i have used a virtual host of *:80

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...