Auto update WordPress plugins on localhost XAMPP on Mac OSX

zigzag

Am I available?

Maybe, who knows?
I should, so get in touch over at Contact .

Coming from a mainly PC background I rarely had any problems setting up a local version of a WordPress install through XAMPP, however, doing the same on a Mac seems far more problematic.

The problem comes when trying to auto-update my local WordPress install along with its plugins on my Macbook (OSX 10.7.3). WordPress would continue to request ‘Connection Information’ with regards to my FTP details which I could not bypass.

After a bit of snooping around the web, I did the following:

Open Terminal

Navigate to your home directory and type:
ls -al

Note your username, i.e. ‘joebloggs’

Then type:
sudo open -e "/Applications/XAMPP/etc/httpd.conf"
(making sure your quotemarks are not the fancy versions, but rather the standard – if you’ve installed XAMPP in another directory, update the above to your file structure)

This should hopefully open TextEdit, where you want to find the section:
User nobody
Group admin

(note: I had to scroll down the list using my keyboard down arrow)

You need to then update this section to say:
User joebloggs (or whatever your username is)
Group staff

I had the problem where my Mac would not allow me to edit the ‘httpd.conf’ file due to permissions and instead I had to create a duplicate version which I later used to save over the original. I also had the problem where although I told my TextEdit to save the file as ‘httpd.conf’ it saved it as ‘httpd.conf.txt’. To correct this, I had find the file info in my Finder window and change the ‘Name and Extension’ properties to the correct ‘httpd.conf’

Once your updated ‘httpd.conf’ file is saved in your ‘/Applications/XAMPP/etc/httpd.conf’ directory (or where ever you’ve installed XAMPP) you will then need to turn off and then turn on your Apache, MySQL, FTP functions through the XAMPP control panel. This should hopefully clear any permissions problems allowing you to auto update and download new version of your WordPress install and plugins.

Sources:

Comments

18 responses to “Auto update WordPress plugins on localhost XAMPP on Mac OSX

  1. Thanks for this! Definitely saved me some frustration!

    FYI, you only need to restart Apache for the change to work.

  2. Thank you so so much! Just did a search, your site came up, and solved all my problems 🙂 Just one thing to add…. I am sure most of us will right click httpd.conf to change permission settings… won’t work. I even changed my permission settings in my XAMPP folder, but still i could not over-write the file. Indeed by saving it elsewhere and replacing the file is so much easier.

    Thanks again, and cheers.

  3. Didn’t work for me either. It just won’t let me do anything inside the etc folder. I’m switching to AMPPS and see how that works. 🙁

  4. The WP Plugins update in the local XAMPP server was really getting me nuts.

    One search on google and your site tops the list, a quick read to the above article and my problem is solved. Thanks a ton mate.

  5. Hi – I’ve tried many times to duplicate the instructions here but after entering sudo open -e “/Applications/XAMPP/etc/httpd.conf” in the terminal I get the following message :

    To proceed, enter your password, or type Ctrl-C to abort.

    Password:
    However I am unable to enter anything – any key I press does nothing to enter anything in terminal so I’m just stuck ! Would really appreciate any help on this !

  6. Thank you. Had been fiddling around with permissions trying to get this to work for ages. It was ridiculously simple and I’ve no idea why I didn’t figure it out myself so thanks!

  7. Hey there would you mind letting me know which hosting company you’re working with?

    I’ve loaded your blog in 3 completely different internet browsers and
    I must say this blog loads a lot faster then most.

    Can you suggest a good hosting provider at a honest price?
    Cheers, I appreciate it!

  8. Thank you, I was struggling to understand this issue, after Googling and checking out a few other pages I ended up finding this site. More relevant than ever! I can stop cussing at XAMPP/OSX and focus on setting up local dev environments to playing in!

  9. Thank you so much! I searched for a solution for a long time, and finally stumbled across this page. It’s the only one that worked.

Leave a Reply

Your email address will not be published. Required fields are marked *

Don't Be Shy