You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Localhost not present

Hi


It seems my 'Localhost' is not present on my iMac. On my macbook it works fine. I find several 'solutions' online but none seem to apply. Apache seems to be fine and have no errors.


Ping local host -> Unknown host

Safari -> Host unknown.


//René

iMac 27" 5K, macOS 10.14

Posted on Jul 1, 2019 2:38 AM

Reply

Similar questions

5 replies

Jul 1, 2019 3:11 AM in response to renelegrand

By default the built-in webserver is not running, so it is no surprise that Safari cannot reach the localhost server.

You can easily turn it on, and get the default page in Safari: in the Terminal, type


sudo apachectl start


You will be asked for your password. Type it blindly (nothing will appear as you type; that is normal), and press enter.

Then in Safari you will see that it is working:


Localhost not present

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.