http://localhost stopped working following my Sonoma upgrade

Following my Sonoma update, my http://localhost stopped working.


I did sudo apachectl start, and got the following message: httpd (pid2357 already running)

MacBook Pro 16″, macOS 14.0

Posted on Sep 29, 2023 10:24 AM

Reply
Question marked as Top-ranking reply

Posted on Oct 9, 2023 7:40 AM

C_ASB wrote:

System Settings -> General -> AirDrop & Handoff -> AirPlay Receiver

If AirPlay Receiver is enabled localhost might not work.
Try disabling it. It worked for me

That's the default setting. I've never touched it.


It seems like AirPlay Receiver was introduced in Monterey and used ports 5000 and 7000. So if you had configured your own Apache to run on those ports, then you would need to disable AirPlay Receiver. I recommend using standard web server ports like 80, 8000, or 8080 instead.

17 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

http://localhost stopped working following my Sonoma upgrade

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