LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-09-2003, 04:20 AM   #1
acepukas
LQ Newbie
 
Registered: Dec 2003
Location: Canada
Distribution: RedHat 9
Posts: 2

Rep: Reputation: 0
Angry Can not access localhost from local machine - RedHat 9


ok here goes

I installed RedHat 9 on my system, and for the most part things are good. My hardware is recognized and all that stuff. (Well, not my Radeon 9600 Pro, but I don't need linux for intense graphics, I've got WinXP for that)

The trouble started when I typed "localhost" (with the http junk in front) into the mozilla browser. This is the error I received: "The conection was refused when attmpting to contact localhost"

I also tried just typing in "127.0.0.1", same error. (with the http junk in front)

I received a similar error from Konqueror:

"An error occured while loading localhost:

Could not connect to host localhost"

I did install Apache 1.3.x and the install went fine, and I was able to start that server without a single problem. What am I missing?

This is bothersome because my soul purpose for installing RedHat on my machine was to get better aquainted with Linux based web servers. Hmmm, if I can't even access "localhost" on my own machine...

I have searched around for an answer to this problem on the web and a lot of people seem to be having the same problem, but there aren't a lot of answers out there...

I am so new to linux it's not funny, but I learn fast, so if anyone has any ideas, I would really appreciate it.
 
Old 12-09-2003, 04:37 AM   #2
GraemeK
Member
 
Registered: Aug 2003
Location: Essex, UK
Distribution: Windoze 2000, Fedora Core 3
Posts: 325

Rep: Reputation: 30
if apache is working thats cool. next you'll need bind working if your to use a name like localhost.

but typing the IP should have worked....

i think you need to amend the httpd.conf file to specify what IP apache will listen on. did you do that?
 
Old 12-09-2003, 02:03 PM   #3
acepukas
LQ Newbie
 
Registered: Dec 2003
Location: Canada
Distribution: RedHat 9
Posts: 2

Original Poster
Rep: Reputation: 0
Unhappy I fixed it the easy way

Here is what I did, you'll laugh, really.

I ERASED the hard drive and reinstalled redhat 9 from scratch.
After reinstalling, I started up the apache server, all was good in the land of localhost.

Yes, I know that it was the least productive solution, but I just haven't gotten over the Linux learning curve enough to know what to have done about it.

Thank you for the reply though!!
 
Old 12-09-2003, 02:17 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
For future refference and anyone else who may read this. Check that your loopback "lo" device is active:
ifconfig lo

and that you have a loopback "127.0.0.0" route:
route -n

It could also be a firewall problem. Make sure port 80 isn't blocked:
iptables -nL
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
scp: copy a file from local machine to remote machine seran Linux - Newbie 8 10-30-2007 01:23 PM
Setup local machine to allow lan machines to retrieve its local user mail. Brian1 Linux - Networking 3 03-30-2006 06:04 AM
restricting website access from local machine Stridier Linux - Networking 9 01-30-2006 05:26 AM
how to open a dilog on local machine when i do ssh to remote machine fahad26 Programming 3 05-03-2005 08:39 PM
access files on redhat machine from windows woja Linux - Newbie 2 11-07-2003 03:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration