Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Accessing localhost webserver in 10.5

Accessing localhost webserver in 10.5
Thread Tools
isdereks
Fresh-Faced Recruit
Join Date: Nov 2007
Status: Offline
Reply With Quote
Nov 7, 2007, 11:19 AM
 
For some reason whenever I type either 127.0.0.1 or localhost in a web browser, I am unable to view my local web server. Error stating that the browser could not open the server localhost.

Does anyone have tips on getting this working?

Apache is running.

The hosts file looks like this:
127.0.0.1 localhost
255.255.255.255 broadcasthost
     
Gavin
Mac Elite
Join Date: Oct 2000
Location: Seattle
Status: Offline
Reply With Quote
Nov 8, 2007, 05:07 AM
 
probly a dumb question but - is apache really running? The sharing control panel could be wrong.

in the terminal:
ps ax | grep httpd

the error log will help debug
sudo tail /var/log/apache2/error_log

is your local firewall on?

maybe your network is down.
You can take the dude out of So Cal, but you can't take the dude outta the dude, dude!
     
Gavin
Mac Elite
Join Date: Oct 2000
Location: Seattle
Status: Offline
Reply With Quote
Nov 8, 2007, 05:09 AM
 
probly a dumb question but - is apache really running? The sharing control panel could be wrong.

in the terminal:
ps ax | grep httpd

the error log will help debug
sudo tail /var/log/apache2/error_log

is your local firewall on?

maybe your network is down.
You can take the dude out of So Cal, but you can't take the dude outta the dude, dude!
     
Guy Kuo
Dedicated MacNNer
Join Date: Aug 2001
Status: Offline
Reply With Quote
Nov 8, 2007, 06:34 AM
 
Leopard disallows the localhost. That's a real problem for those of us who use ssh tunnels. Fortunately, the following command in terminal drops that check.

defaults write com.apple.ScreenSharing skipLocalAddressCheck -boolean YES
     
   
 
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -4. The time now is 02:30 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,