Mark Shields wrote:
On Nov 22, 2007 7:45 PM, Jordan Woehr <jwoehr1@telus.net
<mailto:jwoehr1@telus.net>> 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.*
*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 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
*
--
gentoo-user@gentoo.org <mailto:gentoo-user@gentoo.org> 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?