Re: Re: [gentoo-user] Issues pinging localhost and starting apache.
Mark Shields wrote: On Nov 22, 2007 7:45 PM, Jordan Woehr [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: *I first encounter this problem while trying to setup Apache for my machine. I only want it to run locally on my network. First issue, I try to start Apache and have it listen to port 80 but it won't start with the error:* apache2ctl start * Caching service dependencies ... [ ok ] * Starting apache2 ... (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 http://0.0.0.0:80 no listening sockets available, shutting down Unable to open logs *The only lines I have added to httpd.conf are as follows: * ServerName localhost Listen 80 *Having Apache listen on port 8080 instead results in it starting fine. Thing is, I'm pretty sure nothing is listening on port 80.* netstat -an | grep :80 tcp0 0 192.168.0.104:56125 http://192.168.0.104:56125 66.150.96.119:80 http://66.150.96.119:80 ESTABLISHED tcp0 0 192.168.0.104:56123 http://192.168.0.104:56123 66.150.96.119:80 http://66.150.96.119:80 TIME_WAIT tcp0 0 192.168.0.104:36115 http://192.168.0.104:36115 208.65.201.178:80 http://208.65.201.178:80 TIME_WAIT tcp0 0 192.168.0.104:45155 http://192.168.0.104:45155 205.150.218.4:80 http://205.150.218.4:80 ESTABLISHED *I was not happy with Apache not starting listening to port 80 but I started it on 8080 instead. Tried going to localhost:8080 in firefox but received an unable to establish connection error. From there I went to my hosts file which is as follows *127.0.0.1 http://127.0.0.1 localhost *Tried scanning 127.0.0.1 http://127.0.0.1 with nmap: *nmap -sT -PT 127.0.0.1 http://127.0.0.1 Starting Nmap 4.20 ( http://insecure.org http://insecure.org ) at 2007-11-22 17:11 MST Note: Host seems down. If it is really up, but blocking our ping probes, try -P0 Nmap finished: 1 IP address (0 hosts up) scanned in 3.342 seconds *And now a ping * ping -c 5 localhost PING localhost (127.0.0.1 http://127.0.0.1) 56(84) bytes of data. From 10.132.0.1 http://10.132.0.1 icmp_seq=1 Destination Net Unreachable From 10.132.0.1 http://10.132.0.1 icmp_seq=3 Destination Net Unreachable From 10.132.0.1 http://10.132.0.1 icmp_seq=4 Destination Net Unreachable From 10.132.0.1 http://10.132.0.1 icmp_seq=5 Destination Net Unreachable --- localhost ping statistics --- 5 packets transmitted, 0 received, +4 errors, 100% packet loss, time 4000ms *localhost seems to be resolved properly to 127.0.0.1 http://127.0.0.1 but what I don't understand is where the 10.132.0.1 http://10.132.0.1 comes from. This computer's ip on the network is 192.168.0.104 http://192.168.0.104 (static) and my ip on the internet is 77.something.something.something (was when I did the ping at least). I hope the above is enough information. Suggestions on why Apache won't start listening on port 80 and why I can't connect to localhost:8080 from firefox when Apache is running are welcome. Thanks Jordan * -- [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailing list This may sound like a silly question, but is loopback running (/etc/init.d/lo)? -- - Mark Shields This was exactly the problem. I switched from the traditional startup scripts to NetworkManager a while back and I guess NM doesn't handle lo by default. Does anyone happen to know if NM handles the loopback adapter at all? -- [EMAIL PROTECTED] mailing list
[gentoo-user] Issues pinging localhost and starting apache.
*I first encounter this problem while trying to setup Apache for my machine. I only want it to run locally on my network. First issue, I try to start Apache and have it listen to port 80 but it won't start with the error:* apache2ctl start * Caching service dependencies ... [ ok ] * Starting apache2 ... (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 *The only lines I have added to httpd.conf are as follows: * ServerName localhost Listen 80 *Having Apache listen on port 8080 instead results in it starting fine. Thing is, I'm pretty sure nothing is listening on port 80.* netstat -an | grep :80 tcp0 0 192.168.0.104:56125 66.150.96.119:80 ESTABLISHED tcp0 0 192.168.0.104:56123 66.150.96.119:80 TIME_WAIT tcp0 0 192.168.0.104:36115 208.65.201.178:80 TIME_WAIT tcp0 0 192.168.0.104:45155 205.150.218.4:80 ESTABLISHED *I was not happy with Apache not starting listening to port 80 but I started it on 8080 instead. Tried going to localhost:8080 in firefox but received an unable to establish connection error. From there I went to my hosts file which is as follows *127.0.0.1 localhost *Tried scanning 127.0.0.1 with nmap: *nmap -sT -PT 127.0.0.1 Starting Nmap 4.20 ( http://insecure.org ) at 2007-11-22 17:11 MST Note: Host seems down. If it is really up, but blocking our ping probes, try -P0 Nmap finished: 1 IP address (0 hosts up) scanned in 3.342 seconds *And now a ping * ping -c 5 localhost PING localhost (127.0.0.1) 56(84) bytes of data. From 10.132.0.1 icmp_seq=1 Destination Net Unreachable From 10.132.0.1 icmp_seq=3 Destination Net Unreachable From 10.132.0.1 icmp_seq=4 Destination Net Unreachable From 10.132.0.1 icmp_seq=5 Destination Net Unreachable --- localhost ping statistics --- 5 packets transmitted, 0 received, +4 errors, 100% packet loss, time 4000ms *localhost seems to be resolved properly to 127.0.0.1 but what I don't understand is where the 10.132.0.1 comes from. This computer's ip on the network is 192.168.0.104 (static) and my ip on the internet is 77.something.something.something (was when I did the ping at least). I hope the above is enough information. Suggestions on why Apache won't start listening on port 80 and why I can't connect to localhost:8080 from firefox when Apache is running are welcome. Thanks Jordan * -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Issues pinging localhost and starting apache.
On Nov 22, 2007 7:45 PM, Jordan Woehr [EMAIL PROTECTED] wrote: *I first encounter this problem while trying to setup Apache for my machine. I only want it to run locally on my network. First issue, I try to start Apache and have it listen to port 80 but it won't start with the error:* apache2ctl start * Caching service dependencies ... [ ok ] * Starting apache2 ... (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 *The only lines I have added to httpd.conf are as follows: * ServerName localhost Listen 80 *Having Apache listen on port 8080 instead results in it starting fine. Thing is, I'm pretty sure nothing is listening on port 80.* netstat -an | grep :80 tcp0 0 192.168.0.104:56125 66.150.96.119:80 ESTABLISHED tcp0 0 192.168.0.104:56123 66.150.96.119:80 TIME_WAIT tcp0 0 192.168.0.104:36115 208.65.201.178:80 TIME_WAIT tcp0 0 192.168.0.104:45155 205.150.218.4:80 ESTABLISHED *I was not happy with Apache not starting listening to port 80 but I started it on 8080 instead. Tried going to localhost:8080 in firefox but received an unable to establish connection error. From there I went to my hosts file which is as follows *127.0.0.1 localhost *Tried scanning 127.0.0.1 with nmap: *nmap -sT -PT 127.0.0.1 Starting Nmap 4.20 ( http://insecure.org ) at 2007-11-22 17:11 MST Note: Host seems down. If it is really up, but blocking our ping probes, try -P0 Nmap finished: 1 IP address (0 hosts up) scanned in 3.342 seconds *And now a ping * ping -c 5 localhost PING localhost (127.0.0.1) 56(84) bytes of data. From 10.132.0.1 icmp_seq=1 Destination Net Unreachable From 10.132.0.1 icmp_seq=3 Destination Net Unreachable From 10.132.0.1 icmp_seq=4 Destination Net Unreachable From 10.132.0.1 icmp_seq=5 Destination Net Unreachable --- localhost ping statistics --- 5 packets transmitted, 0 received, +4 errors, 100% packet loss, time 4000ms *localhost seems to be resolved properly to 127.0.0.1 but what I don't understand is where the 10.132.0.1 comes from. This computer's ip on the network is 192.168.0.104 (static) and my ip on the internet is 77.something.something.something (was when I did the ping at least). I hope the above is enough information. Suggestions on why Apache won't start listening on port 80 and why I can't connect to localhost:8080 from firefox when Apache is running are welcome. Thanks Jordan * -- [EMAIL PROTECTED] mailing list This may sound like a silly question, but is loopback running (/etc/init.d/lo)? -- - Mark Shields