Click to See Complete Forum and Search --> : can't connect to localhost
When I type in "http://localhost" in Konqueror, Netscape, or even lynx, it says "Unable to connect to host localhost". This happens as root or any user. I have no proxies. It worked for months no problem, now it doesn't.
http://linux.local used to work as well, but now does not work either.
Does anyone have any idea how I can get my http://localhost back?
Thanks,
Edward Tanguay www.tanguay.de (http://www.tanguay.de)
FoBoT
03-10-2001, 03:54 PM
what happens if you type "ping localhost" from the command line?
Do ya have an http server installed and running? What are the results of '/sbin/ifconfig lo' ?
When I ping I get the following (see below). It never stops, I had to CTRL-C. I then tried "http://127.0.0.1" in the browser but it said "Cannot connect to host 127.0.0.1" nor can it connect to "http://localhost" either still.
How can I get my localhost back? What does this ping information mean?
/root# ping localhost
PING localhost (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=0.158 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=255 time=0.114 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=255 time=0.119 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=255 time=0.120 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=255 time=0.096 ms
64 bytes from 127.0.0.1: icmp_seq=5 ttl=255 time=0.120 ms
64 bytes from 127.0.0.1: icmp_seq=6 ttl=255 time=0.113 ms
64 bytes from 127.0.0.1: icmp_seq=7 ttl=255 time=0.120 ms
64 bytes from 127.0.0.1: icmp_seq=8 ttl=255 time=0.109 ms
64 bytes from 127.0.0.1: icmp_seq=9 ttl=255 time=0.120 ms
When I ping I get the following (see below). It never stops, I had to CTRL-C. I then tried "http://127.0.0.1" in the browser but it said "Cannot connect to host 127.0.0.1" nor can it connect to "http://localhost" either still.
How can I get my localhost back? What does this ping information mean?
/root# ping localhost
PING localhost (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=0.158 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=255 time=0.114 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=255 time=0.119 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=255 time=0.120 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=255 time=0.096 ms
64 bytes from 127.0.0.1: icmp_seq=5 ttl=255 time=0.120 ms
64 bytes from 127.0.0.1: icmp_seq=6 ttl=255 time=0.113 ms
64 bytes from 127.0.0.1: icmp_seq=7 ttl=255 time=0.120 ms
64 bytes from 127.0.0.1: icmp_seq=8 ttl=255 time=0.109 ms
64 bytes from 127.0.0.1: icmp_seq=9 ttl=255 time=0.120 ms
FoBoT
03-10-2001, 04:45 PM
that is normal for linux, not like winders ping command where it just sends out 4 packets
that output is normal
sounds like your http server is just down, maybe
what are you using? apache?
if so, need to find out if apache isn't running at all, or if it just isn't binding to localhost (127.0.0.1) which it default to doing
hmmm...
see if some other LNO'ers jump in here, other wise might have to move this to web serving forum to get apache help
[ 10 March 2001: Message edited by: FoBoT ]
"If you can see this, it means that the installation of the Apache web server software on this system was successful."
Thanks guys! Localhost works now.
The problem was that I had unpacked but had forgotten to compile and install Apache. Like duh. It MAKES a big difference. Thanks for the help!
"If you can see this, it means that the installation of the Apache web server software on this system was successful."
Thanks guys! Localhost works now.
The problem was that I had unpacked but had forgotten to compile and install Apache. Like duh. It MAKES a big difference. Thanks for the help!