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