I've just installed XAMPP on Mac OSX and when trying to install a theme or plugin in WP admin, I'm getting this screen. I've never gotten this on my shared hosting account. how to get rid of it on localhost?


|
I've just installed XAMPP on Mac OSX and when trying to install a theme or plugin in WP admin, I'm getting this screen. I've never gotten this on my shared hosting account. how to get rid of it on localhost?
|
||||
|
|
|
Hi @Scott B: Have you tried updating the permissions for your WordPress files to 755 or 777? UPDATE 1Thanks to @anu in the comments (
I just checked my
UPDATE 2If you were to decide to use the built-in Apache a tool you should definitely consider getting for the Mac is VirtualHostX. It manages all your Apache and your hosts files for setting up local "domains". It's one of my favorite tools on the Mac:
|
|||||||||||||
|
|
Your webserver runs under a user account, on OS X 10.6 that user is _www and the group is also _www WordPress needs the owner and/or group of the web server to match the owner and/or group of the files -- which is your user account. First, open your Terminal. Find your username and group by typing:
Note the first two values in parenthesis. This is your user and group. Next editing your Apache config and set it to run as your user & group. In the Terminal type: (In a default OS X install not running XAMPP, you would type: Find this section (this is from the default httpd.conf in OS X, the one in XAMPP may be slightly different but the config values will be the same):
Change the user and group to match yours. In my case:
Save, then restart Apache. In a default OS X install that would be: WordPress should not give you any trouble after that. Note, however, that you may need to repeat these steps next time you update OS X. |
|||||||
|
|
Another solution is to simply chown the entire wordpress install to the user that apache is running as:
Then you can do your automatic updates, and if necessary, chown it back to the previous owner. |
|||
|
|