LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   apache 2.0 error 99 address already in use (https://www.linuxquestions.org/questions/linux-newbie-8/apache-2-0-error-99-address-already-in-use-674937/)

fedoraDrew 10-07-2008 08:11 PM

apache 2.0 error 99 address already in use
 
I'm seeking to understand, and also to fix, why my Apache 2.2.8 configuration on Fedora 9 cannot bind to a specific IP address and listen over my closed home network.

It worked fine when I browsed test pages on the machine through the localhost address.

httpd.conf used to have:
Code:

Listen host.name.com:80
#ServerName    <-- I kept this as undefined previously, hence the hash
UseCanonicalName On

However, other machines over the network can't find this host name (or IP, if I set it to the machine's static IP). I get an error 400 from the linux box on other machines trying to access this host name (http://host.name.com). So I tried this, which seemed more appropriate:

Code:

Listen *:80
ServerName 192.168.1.66:80

but when executing "apachectl start" it gave me the error "98 address already in use".



I also tried using 192.168.1.65 (as below), which I designated as the static ip of my machine, but I then get the error 99 as in the title of this post using these params:

Code:

Listen 192.168.1.65:80
ServerName 192.168.1.66:80
UseCanonicalName On

And if I change ServerName to have .65 instead of .66 as the net portion of that ip address, I get error 98 again.

Interesting tidbits:

ps -e | grep httpd
ps -e | grep apache

yields no other running processes by those names.

netstat -lnp | grep :80

yields no other services bound to that port.

Mr. C. 10-08-2008 12:09 AM

Does this help:

http://www.linuxquestions.org/questi...0.0443-110753/


All times are GMT -5. The time now is 07:21 PM.