Error starting Apache
When I run service httpd start I get the following error:
Starting httpd: (99)Cannot assign requested address: make_sock: could not bind to address 18.104.22.168:80
no listening sockets available, shutting down
Unable to open logs
I looked in my conf file and my Listen was
so I changed it to Listen *:80, which didn't work, so I tried just putting in my IP address, which did not work either.
I am behind a Linksys router, but I have all ports open to my computer.
If you have configured apache incorrectly, these type of errors may occur, so please execute, httpd -t and check out the errors.
When I execute httpd -t, it just returns syntax ok
I don't know what I'm doing wrong... I've set up apache before and never had this problem...
That IP you have is your external IP address, it is not the address assigned to your machine by your router, which is why you can't bind to it. You have an internal IP assigned to you by your router, which is the one you need to listen on. Then you need to forward requests on port 80 to your internal machine in your router configuration.
I changed httpd.conf to Listen *:80 and now I get this when starting:
(98) Address already in use: make_sock: could not bind to address [::]:80
Something is already using that port, are you sure httpd isn't already running? What is output of
ps -A | grep httpd
netstat -a | grep ":80"
I entered both... there is no output returned
Also, when I do httpd status it says it's dead but subsys locked
this apache or apache2? In my apache2 conf it has Listen 80, not Listen *:80
apache2... I set Listen to 80 and NameVirtualHost *:80 and I still get the same error