Error restarting apache on a Mac
I was trying to restart the Apache server running on my Mac and I kept getting an error:
After scratching my head for a while, I finally figured out this error was being caused because I was forgetting to run the commands as root. I was running:
while what I should have been running was:
Once I added the sudo, the error went away and my server was able to restart.
launchctl: CFURLWriteDataAndPropertiesToResource(/System/Library/LaunchDaemons/org.apache.httpd.plist) failed: -10
After scratching my head for a while, I finally figured out this error was being caused because I was forgetting to run the commands as root. I was running:
apachectl restart
while what I should have been running was:
sudo apachectl restart
Once I added the sudo, the error went away and my server was able to restart.
| Rating: | 100% positive, 1 Vote |
| Categories: | Mac Apache server error |
| Added: | on Mar 20, 2009 at 4:57 pm |
| Added By: | an anonymous user |
| Searches: | error mac apache server running |

