Tip Details

Rate as: Positive Negative

Error restarting apache on a Mac

I was trying to restart the Apache server running on my Mac and I kept getting an error:

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

Comments on this Tip

Add a Comment
There are no comments for this tip
Your Comment:
(how to format)
Rate This Tip:

Verify Humanity:
Sorry, we know it's annoying, but please enter the characters shown in the image to the left so that we know you're an actual person and not an evil spammer. Thanks.
       

Related Tips

Increasing PHP session lifetime

Categories: PHP server Apache
100% positive, 0 comments
– Tip added by an anonymous user on Jan 23, 2009 at 12:04 pm

Organizing mailboxes in Snow Leopard

Categories: Mac Snow Leopard Mac
100% positive, 1 comment - last added on Feb 17, 2010 at 10:11 am
– Tip added by an anonymous user on Oct 15, 2009 at 9:03 am

Load balancing apache servers

no ratings, 0 comments
– Tip added by an anonymous user on Sep 29, 2009 at 7:30 am

Fixing Dreamhost server errors

Categories: Dreamhost server error
no ratings, 0 comments
– Tip added by an anonymous user on Jan 10, 2009 at 4:53 am

Great tutorial on mod_rewrite

no ratings, 0 comments
– Tip added by an anonymous user on Sep 12, 2008 at 10:37 am

switching applications on the Mac

100% positive, 0 comments
– Tip added by an anonymous user on Feb 17, 2010 at 9:56 am

Speed-up the iPhoto launch

Categories: iPhoto speed Mac
100% positive, 0 comments
– Tip added by an anonymous user on Feb 08, 2010 at 12:39 pm

Running the Mac Screen Sharing application

100% positive, 0 comments
– Tip added by an anonymous user on Jan 28, 2010 at 4:46 pm

keep iphoto from opening when you plug in your iphone

100% positive, 1 comment - last added on Jan 18, 2010 at 6:57 pm
– Tip added by an anonymous user on Jan 18, 2010 at 8:18 am

Menu bars on external monitors

Categories: Mac menu bar free
no ratings, 0 comments
– Tip added by an anonymous user 5 days, 14 hours ago

Quick boot your Mac into windows

Categories: Mac boot camp shortcut
no ratings, 0 comments
– Tip added by an anonymous user on Mar 05, 2010 at 5:18 pm

Download Google books as PDFs on a Mac

no ratings, 0 comments
– Tip added by an anonymous user on Mar 01, 2010 at 1:14 pm

Extra iSync/MobileMe menu options

no ratings, 0 comments
– Tip added by an anonymous user on Mar 01, 2010 at 9:34 am

shortcuts for screen sharing in Snow Leopard

no ratings, 0 comments
– Tip added by an anonymous user on Feb 25, 2010 at 2:08 pm

switching between open windows

Categories: Mac keyboard shortcut
no ratings, 0 comments
– Tip added by an anonymous user on Feb 23, 2010 at 12:44 pm

pimp your mac

Categories: Mac customization
no ratings, 0 comments
– Tip added by an anonymous user on Feb 12, 2010 at 11:17 am

Startup pref doesn't work

no ratings, 0 comments
– Tip added by an anonymous user on Feb 10, 2010 at 7:47 pm

Create Mac-like stacks in Windows

no ratings, 0 comments
– Tip added by an anonymous user on Feb 04, 2010 at 4:31 pm

Have your Mac update your timezone when you travel

no ratings, 0 comments
– Tip added by an anonymous user on Feb 03, 2010 at 1:18 pm

Add tabs to finder windows

Categories: Mac Finder Snow Leopard
no ratings, 0 comments
– Tip added by an anonymous user on Jan 22, 2010 at 6:13 am