Setting up a local web server on macOS 14.5 “Sonoma”

I followed the guidance here, kindly provided by @etresoft, to set up a local webserver on a brand new Mac Studio. etresoft's advice was extremely helpful and the process ran smoothly until starting the server.


sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist


produced the error


Load failed: 5: Input/output error


A frustrating hour of Googling told me only that load was a legacy subcommand and a few hints that start might be a suitable alternative. Indeed, that turned out to be the case:


sudo launchctl start -w /System/Library/LaunchDaemons/org.apache.httpd.plist


succeeded and I was able to view the stubs at both


http://localhost


and


http://localhost/~<short user name>


I'm posting this as a very small update to etresoft's extremely helpful original post. Much kudos to them for their advice.

Mac Studio (2022)

Posted on Jun 26, 2024 10:25 AM

Reply
1 reply
Sort By: 

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.

Setting up a local web server on macOS 14.5 “Sonoma”

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