If you get the following error while starting/restarting apache,
launchctl: CFURLWriteDataAndPropertiesToResource(/System/Library/LaunchDaemons/org.apache.httpd.plist) failed: -10
Make sure you are running the command with super user privilege
Example:
sudo /usr/sbin/apachectl start
Thanks once again
thanks dude….
But on my mac….. it`s doesn’t work… i’ve executed that command and run ok, but when the command apachectl stop is executed the same error is appear again.
Sorry for my english, because i’m Brazilian and not speak English.
Stop the apache service with the super user privilege.
Example : sudo /usr/sbin/apachectl stop
To continue working with the super user privilege, do;
“sudo su-” in your terminal.
Example:
$sudo su-
$password: *******
Now you have the super user privilege and will not experience such issues.
hi… thanks for your answer, my apache stop, but don’t start.
i think the file /System/Library/LaunchDaemons/org.apache.httpd.plist is corrupted or not correct.
Label
org.apache.httpd
ProgramArguments
/usr/sbin/httpd
-D
FOREGROUND
SHAuthorizationRight
system.preferences
Thank you. Your solution helped!