[Tfug] apache problems cont.

doug1 at email.arizona.edu doug1 at email.arizona.edu
Tue Jul 3 10:57:30 MST 2007


Have you checked the apache logs to see if your requests are actually
going to your web server? No, who do I access the logs

Have you tried using another browser to see if it does the same thing?
Yes, I still cant access localhost.


What IP/port is apache listening on? 80

Use "netstat -tap | grep www" I have it returns nothing

Can you connect to apache on the loopback address (127.0.0.1) ?
The loopback address works

 If so,
check /etc/hosts to see if for some reason localhost is mapped to
something other than the loopback address here is what my hosts file contains
just these lines:

             # Do not remove the following line, or various programs
             # that require network functionality will fail.
               lab29.civil.web.arizona.edu

Are you typing 'http://localhost' or 'localhost'? http://localhost

when I ping localhost it doesn't recognise localhost it gives me unknown host
localhost

Netstat -an | grep LISTEN | grep -v grep I dont know how to read the output this
is giving me.

Nslookup or dig for localhost... 127.0.0.1? - if not, check your /etc/hosts file
again!

dig localhost gives me:

; <<>> DiG 9.3.4 <<>> localhost
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59998
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;localhost.                     IN      A

;; ANSWER SECTION:
localhost.              604800  IN      A       127.0.0.1

;; AUTHORITY SECTION:
localhost.              604800  IN      NS      localhost.

;; Query time: 23 msec
;; SERVER: 128.196.11.235#53(128.196.11.235)
;; WHEN: Tue Jul  3 10:55:15 2007
;; MSG SIZE  rcvd: 57

dig 127.0.0.1 give me:

; <<>> DiG 9.3.4 <<>> 127.0.0.1
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 54708
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;127.0.0.1.                     IN      A

;; AUTHORITY SECTION:
.                       10800   IN      SOA     a.root-servers.net.
nstld.verisign-grs.com. 2007070300 1800 900 604800 86400

;; Query time: 113 msec
;; SERVER: 128.196.11.235#53(128.196.11.235)
;; WHEN: Tue Jul  3 10:55:45 2007
;; MSG SIZE  rcvd: 102


Doug





More information about the tfug mailing list