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)