1 |
*I first encounter this problem while trying to setup Apache for my |
2 |
machine. I only want it to run locally on my network. First issue, I try |
3 |
to start Apache and have it listen to port 80 but it won't start with |
4 |
the error:* |
5 |
|
6 |
apache2ctl start |
7 |
* Caching service dependencies |
8 |
... [ ok ] |
9 |
* Starting apache2 ... |
10 |
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 |
11 |
no listening sockets available, shutting down |
12 |
Unable to open logs |
13 |
|
14 |
*The only lines I have added to httpd.conf are as follows: |
15 |
* |
16 |
ServerName localhost |
17 |
Listen 80 |
18 |
|
19 |
*Having Apache listen on port 8080 instead results in it starting fine. |
20 |
Thing is, I'm pretty sure nothing is listening on port 80.* |
21 |
|
22 |
netstat -an | grep :80 |
23 |
tcp 0 0 192.168.0.104:56125 66.150.96.119:80 |
24 |
ESTABLISHED |
25 |
tcp 0 0 192.168.0.104:56123 66.150.96.119:80 |
26 |
TIME_WAIT |
27 |
tcp 0 0 192.168.0.104:36115 208.65.201.178:80 |
28 |
TIME_WAIT |
29 |
tcp 0 0 192.168.0.104:45155 205.150.218.4:80 |
30 |
ESTABLISHED |
31 |
|
32 |
*I was not happy with Apache not starting listening to port 80 but I |
33 |
started it on 8080 instead. Tried going to localhost:8080 in firefox |
34 |
but received an unable to establish connection error. |
35 |
|
36 |
From there I went to my hosts file which is as follows |
37 |
|
38 |
*127.0.0.1 localhost |
39 |
|
40 |
*Tried scanning 127.0.0.1 with nmap: |
41 |
|
42 |
*nmap -sT -PT 127.0.0.1 |
43 |
|
44 |
Starting Nmap 4.20 ( http://insecure.org ) at 2007-11-22 17:11 MST |
45 |
Note: Host seems down. If it is really up, but blocking our ping probes, |
46 |
try -P0 |
47 |
Nmap finished: 1 IP address (0 hosts up) scanned in 3.342 seconds |
48 |
|
49 |
*And now a ping |
50 |
* |
51 |
ping -c 5 localhost |
52 |
PING localhost (127.0.0.1) 56(84) bytes of data. |
53 |
From 10.132.0.1 icmp_seq=1 Destination Net Unreachable |
54 |
From 10.132.0.1 icmp_seq=3 Destination Net Unreachable |
55 |
From 10.132.0.1 icmp_seq=4 Destination Net Unreachable |
56 |
From 10.132.0.1 icmp_seq=5 Destination Net Unreachable |
57 |
|
58 |
--- localhost ping statistics --- |
59 |
5 packets transmitted, 0 received, +4 errors, 100% packet loss, time 4000ms |
60 |
|
61 |
*localhost seems to be resolved properly to 127.0.0.1 but what I don't |
62 |
understand is where the 10.132.0.1 comes from. This computer's ip on the |
63 |
network is 192.168.0.104 (static) and my ip on the internet is |
64 |
77.something.something.something (was when I did the ping at least). |
65 |
|
66 |
I hope the above is enough information. Suggestions on why Apache won't |
67 |
start listening on port 80 and why I can't connect to localhost:8080 |
68 |
from firefox when Apache is running are welcome. |
69 |
|
70 |
Thanks |
71 |
Jordan |
72 |
* |
73 |
-- |
74 |
gentoo-user@g.o mailing list |