Fedora Linux Support Community & Resources Center
  #1  
Old 12th January 2007, 06:26 AM
brett Offline
Registered User
 
Join Date: May 2006
Posts: 16
Firefox can't establish a connection to the server at localhost

My linux box is not connected to the internet right now but was working on some web pages but when I type http://localhost/index.html firefox displays the message Unable to connect the Firefox can't establish a conneciton to the server at localhost. The address http://localhost/index.html should take me directly to the file. Anyone have an idea what's going on???
Reply With Quote
  #2  
Old 12th January 2007, 06:33 AM
th350urc3 Offline
Registered User
 
Join Date: Dec 2006
Posts: 57
have you checked that file exist? in your /var/www/html directory? Also is your apache server installed and running?
Reply With Quote
  #3  
Old 12th January 2007, 06:43 AM
brett Offline
Registered User
 
Join Date: May 2006
Posts: 16
Yes the file is there I also tried http://localhost/phpinfo.php and get the same unable to connect message...also tried http://127.0.0.1/index.html and get the same...not sure how to check if apache is running though...also if I right click on the file and click on Open with Firefox Web Browser the web page displays....

Last edited by brett; 12th January 2007 at 06:48 AM.
Reply With Quote
  #4  
Old 12th January 2007, 07:18 AM
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,994
To test if apache is running

$ service httpd status
httpd (pid 3030) is running...
Reply With Quote
  #5  
Old 12th January 2007, 07:37 AM
brett Offline
Registered User
 
Join Date: May 2006
Posts: 16
tried $ service httpd status and it says bash: service: command not found...but thanks anyway I shutdown the system and restarted and all is working well...thanks again
Reply With Quote
  #6  
Old 12th January 2007, 06:49 PM
th350urc3 Offline
Registered User
 
Join Date: Dec 2006
Posts: 57
type
/sbin/service httpd status

remember that your /sbin directory is not in the default user profile PATH variable.

if apache is not instlalled type

as root
STEP 1
#yum -y install httpd

when complete
type
STEP 2
chkconfig httpd on

STEP 3
service httpd start (if this doesnt work remember the /sbin)

STEP 4 go to your browser and type http:/<yourcompuernamehere> or that http://localhost/index.html that should work.

Last edited by th350urc3; 12th January 2007 at 06:55 PM.
Reply With Quote
  #7  
Old 12th August 2010, 08:22 AM
danfe Offline
Registered User
 
Join Date: May 2010
Posts: 8
linuxfedorafirefox
Re: Firefox can't establish a connection to the server at localhost

Hi stevea,

I have hosted web using apache and httpd service. It works fine on localhost but i am unable to access it from LAN. I checked the service is running. I have also set no proxy for host IP on the other computer on LAN, but still it says "Firefox cannot establish connection with host server".
Reply With Quote
Reply

Tags
connection, establish, firefox, localhost, server

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to re-establish wireless connection vsem Servers & Networking 2 23rd December 2008 11:35 PM
Can't establish connection to web server maniaclovesongs Servers & Networking 2 11th January 2008 01:46 PM
X connection to localhost:10.0 broken (explicit kill or server shutdown). alphonsebrown Using Fedora 1 22nd December 2007 07:35 AM
Can't establish connection to server via a browser chown55 Servers & Networking 3 13th October 2007 01:20 PM
Firefox can't establish a conneciton to the server at localhost brett Linux Chat 0 12th January 2007 06:02 AM


Current GMT-time: 20:19 (Wednesday, 26-11-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Buckeye Travel Photos - Malabanban Norte Travel Photos on Instagram - Mytishchi Instagram Photos