Today I was messing around with the built in Apache server on my Mac. What I was doing seemed simple enough; start my apache server with Web Sharing turned off in my system preferences. So I turned off Web Sharing and went for my Terminal, entering:
apachectl graceful
Expecting Apache to restart/start I was surprised to get this error:
launchctl: CFURLWriteDataAndPropertiesToResource( /System/Library/LaunchDaemons/org.apache.httpd.plist) failed: -10
After searching around online for a bit I realized that my problem was I failed to enter the command as root (or I forgot to put sudo in front of my command.
With a second attempt I entered:
sudo apachectl graceful
And vuala, apache is on. No errors. However, now when I enter:
sudo apachectl status
I get this error:
/usr/sbin/apachectl: line 106: lynx: command not found
Not sure what that’s about. If anyone’s got any ideas, I’d appreciate it.
Maybe you need to install ‘lynx’. It’s a text-based web browser.
I could be wrong, though. It’s been a long time since I’ve messed with that stuff.
Yeah, that command still isn’t working. I don’t get the lynx error, but I’m not sure if that because I installed lynx or because I recently upgraded to Snow Leopard though. In either case I don’t check my apache status that often.
Fun to play with Lynx though. Couldn’t imaging using it on a regular basis though. A testament to the evolution of the interwebs I guess.