Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Closed Thread
Old 12-11-2008, 06:35 AM Post Localhost Problem
kreativmediauk's Avatar
Novice Talker

Posts: 13
Name: Steven Roberts
Location: Lincolnshire
Trades: 0
Hello. Sorry if this has been threaded before... or is in the wrong place.

Has anyone had this problem...

localhost was working fine one day... the html file was in the webserver folder and i could type in localhost and my local site would pop up no problem...

then today... the html file still in the right place but when i type in localhost.. it pops up with the usual error page. all the files are still in the right folder but no local website.

If i was to type in any of these below, I get nothing.

http://localhost/

http://***.***.*.5/ (* Being my computers I.P Numbers)

http://***.***.*.5/~Steve/ (* Being my computers I.P Numbers)

A copy of my files are in my local Sites folder and in my Library/WebServer folder.

I am on Mac OSX 10.5.5.

I have followed a lot of tutorials browsing the net but all dont explain any troublshooting, I found a lot of people in other forums whilst browsing that have / had this problem but no one replies with an explanation of how to fix the problem.

Im not knew to web development but I am knew to the server side of things and general stuff.

If someone knew how to fix this problem and write an explanation of how to here then maybe a lot of people can use this as a resource.

And I for one would forever be in the debt of whoever knows how to solve this problem. It is a common problem.

Thank you in advance.

Steve
kreativmediauk is offline
View Public Profile Visit kreativmediauk's homepage!
 
 
Register now for full access!
Old 12-11-2008, 06:38 AM Re: Localhost Problem
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
And is whatever you use as a web server running?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
View Public Profile Visit chrishirst's homepage!
 
Old 12-11-2008, 07:48 AM Unhappy Re: Localhost Problem
kreativmediauk's Avatar
Novice Talker

Posts: 13
Name: Steven Roberts
Location: Lincolnshire
Trades: 0
Yeh thats running fine...

On my Mac in System Preferences/Web Sharing the box is ticked... In Terminal Ive restarted Apache and it says Apache is running (well so I think)...

Im lost...
kreativmediauk is offline
View Public Profile Visit kreativmediauk's homepage!
 
Old 12-11-2008, 08:05 AM Re: Localhost Problem
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
What's "the usual error page"?
'cos to us, any error page we see is likely to be pretty common

Have you changed any files between working and non-working states?

is the filing system formatted as case sensitive? because then Index.htm would NOT be the same as index.htm
stretching my (little) Mac knowledge to the max with that one BTW
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
View Public Profile Visit chrishirst's homepage!
 
Old 12-11-2008, 08:53 AM Red face Re: Localhost Problem
kreativmediauk's Avatar
Novice Talker

Posts: 13
Name: Steven Roberts
Location: Lincolnshire
Trades: 0
Hey Thank you for the reply. The error page is as follows:

______________________________

Failed to Connect

Firefox can't establish a connection to the server at localhost.

Though the site seems valid, the browser was unable to establish a connection.

* Could the site be temporarily unavailable? Try again later.
* Are you unable to browse other sites? Check the computer's network connection.
* Is your computer or network protected by a firewall or proxy? Incorrect settings can interfere with Web browsing.

______________________________

I know that its not a firewall problem, my networks working fine, and all the web files are in the right places.

I admit though, I was messing around with terminal at the time and probably not sure what ive done.

lol nope its all non-capitals but i did try both just to make sure...

It was working yesterday but not today... In that time I have done something with the terminal.


any help would be appretiated and thanks for the replys so far..
__________________
"I have measured out my life with coffee spoons."

Please login or register to view this content. Registration is FREE
- Multimedia Creatives
kreativmediauk is offline
View Public Profile Visit kreativmediauk's homepage!
 
Old 12-11-2008, 09:11 AM Re: Localhost Problem
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
I was messing around with terminal at the time and probably not sure what ive done.
It's a real bugger when that happens

TCP/IP / HTTP protocol error. At a guess you have probably managed to turn off the loopback connector, so the NIC can't "talk to itself", and to be honest I don't know enough about Macs to diagnose it.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
View Public Profile Visit chrishirst's homepage!
 
Old 12-17-2008, 09:31 AM Re: Localhost Problem
kreativmediauk's Avatar
Novice Talker

Posts: 13
Name: Steven Roberts
Location: Lincolnshire
Trades: 0
I see. No problem... A few hours of searchin the net for the answer i guess

Thanks for your help so far.

If anyone else has the answer, please post. thank you
__________________
"I have measured out my life with coffee spoons."

Please login or register to view this content. Registration is FREE
- Multimedia Creatives
kreativmediauk is offline
View Public Profile Visit kreativmediauk's homepage!
 
Old 12-17-2008, 07:03 PM Re: Localhost Problem
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Do you remember anything about what you might have been doing in the terminal? Were you editing any files?

This is just a guess, but maybe you set Apache to look in a different folder.

If you want post a few links to some things you've found online about the issue. Maybe if I read one of those other posts it'll bring to mind something that can help.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
View Public Profile Visit vangogh's homepage!
 
Old 12-20-2008, 12:32 PM Post Re: Localhost Problem
kreativmediauk's Avatar
Novice Talker

Posts: 13
Name: Steven Roberts
Location: Lincolnshire
Trades: 0
Hello vangogh

I think you might have hit on something there...
Im thinking I have directed it in terminal to search in a different folder.
Do you or anyone else know how to direct it to a different folder?


The only sites I have found so far are already repeated in this forum but I will post them anyway.

Setting up a Localhost on Mac OSX
Perlmonks
O'Reilly - Various information about setting up a localhost and more.
Apache - Various tutorials.

ps. Why is it so difficult to find the httpd.config file on a Mac OSX....
__________________
"I have measured out my life with coffee spoons."

Please login or register to view this content. Registration is FREE
- Multimedia Creatives
kreativmediauk is offline
View Public Profile Visit kreativmediauk's homepage!
 
Old 12-20-2008, 02:29 PM Re: Localhost Problem
andrei155's Avatar
CEO of BLD Hosting

Posts: 1,514
Name: Andrei
Location: Canada
Trades: 6
apache > conf > httpd.conf

Find DocumentRoot - tell us what that says.
__________________
No Overselling Guarantee
Now Includes a Free Domain
BLD Hosting -
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
andrei155 is offline
View Public Profile Visit andrei155's homepage!
 
Old 12-20-2008, 07:19 PM Re: Localhost Problem
Defies a Status

Posts: 1,605
Trades: 0
I skipped this thread yesterday because I don't do Macs.

Since you still don't have an answer, I will offer that mine got really messed up by a windows update. Did you by any chance have some software update?
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
View Public Profile
 
Old 12-21-2008, 04:31 PM Re: Localhost Problem
Brian07002's Avatar
Defies a Status

Posts: 2,138
Name: ...
Location: ...
Trades: 0
If all else fails, try restarting the Apache Webserver by running term, and typing:

Quote:
sudo /usr/sbin/apachectl restart
That should get you back in business

Hth
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
View Public Profile
 
Old 12-22-2008, 07:45 PM Re: Localhost Problem
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Have you found httpd.conf? If not the file is located in:

Macintosh HD/etc/apache2/httpd.conf

You might try the restart Brian suggested too.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
View Public Profile Visit vangogh's homepage!
 
Old 12-23-2008, 09:42 AM Re: Localhost Problem
opensourcer's Avatar
Average Talker

Posts: 16
Trades: 0
Quote:
Originally Posted by kreativmediauk View Post
The error page is as follows:

______________________________

Failed to Connect

Firefox can't establish a connection to the server at localhost.

Though the site seems valid, the browser was unable to establish a connection.

* Could the site be temporarily unavailable? Try again later.
* Are you unable to browse other sites? Check the computer's network connection.
* Is your computer or network protected by a firewall or proxy? Incorrect settings can interfere with Web browsing.

______________________________
This error like means the server is not running. Try restarting the server
On terminal enter
sudo apachectl start

enter password and reload the page. On my mac I see a default apache page. Before, the same error as you.
opensourcer is offline
View Public Profile Visit opensourcer's homepage!
 
Closed Thread     « Reply to Localhost Problem
 

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 4.79156 seconds with 12 queries