Click to See Complete Forum and Search --> : error httpd failed
mutecht
03-29-2003, 12:53 AM
I am new to running a server, and need some help..I am getting an error when I try to start apache(2.0) the error is" httpd failed: start httpd (99) cannot assign requested adrtess:make_sock : could not bind to adress 204.xxx.xxx.xxx:80 No listening sockets available; shuttingdown (failed)" :( ... but it had worked for a couple of days then this error started???:confused: Thanks for any help!!!!!
Hmm, your Listen settings may be wrong. Check your httpd.conf file, specifically the "Listen ....." line. Not sure of your setup but for most configurations it should just read "Listen 80".
Otherwise, my only other guess is possibly a context error in your conf file (long shot). Just for giggles, rename your httpd.conf file to something else (like my.httpd.conf) temporarily and then rename the httpd.default.conf file to httpd.conf (in essence, bringing back the default settings without losing your modified conf file), then restart Apache. If it starts working, check your my.httpd.conf file against the default one to see where there might be just a simple typo or an uncommented line that should be conmmented or vice versa or something. If it doesn't fix it, change the file names back and restart ... I'm stumped. :(
mutecht
03-29-2003, 09:51 AM
O.K. something new.. If I put my setting on all available addresses on port 80 It works ?:confused:
Are you using a router that's set to assign IP's with DHCP? Or are you using an "Obtain IP Automatically" setting?
Sounds like your server's not using the ip you're specifying or if you have a router, it may not be forwarding http requests to the right PC (the one running Apache).
I had this probem a long time ago when I had my router set to hand out IP's to my PC's using DHCP ... if those IP's change (like if the computers were powered off and restarted they could swap IP addresses), http requests may be getting directed to another computer that your server's not on.
If that's the case, it's best to set your router to NOT use DHCP, then manually set each PC's IP addresses to something like 192.168.1.11, 192.168.1.22, 192.168.33, etc. Then in your router's "Forwarding" settings, make sure it's sending any port 80 (http) requests to the IP of the PC that's running Apache.
On my Linksys router it's in the "Advanced>Forwarding>UPnP Forwarding" tabs ...
http://www.stephenqr.com/misc/routerhttp.jpg