bingshui.org

the Life of Zim

23rd November
2009
written by dzimney

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.