Wordpress Mac Permissions Issues with Zend Server CE
If you have installed Zend Server CE on your computer to use as a development server, you may have ran into the issue of Automatic update not working on Wordpress. This is the function that usually updates your Wordpress plugins and Wordpress system or core files. Furthermore, another related problem that you will likely to have as a result of this is that you won't be able to have Wordpress edit your .htaccess to change the way your blog URLS look like.
The cause of this problem is that the Apache user used by Zend Server CE (User: daemon, Group: daemon) is not given enough permissions to be able to make changes to your files on your Mac. The solution to this should be simple, at least it worked for me right away.
- Open your Terminal application (Applications -> Utilities)
- Use the following commands in bold:
- Navigate to your htdocs folder that was created by Zend Server CE using something like:
- Change the user of your blog folder which resides within the htdocs folder. In my case my blog folder is called blog, so I used this command:
sudo chown -R daemon blog
- Change the permissions of the folder using:
sudo chmod -R g+w blog
- Now, try to update your Wordpress plugins or Wordpress system itself (core files), this should have solved your Wordpress Mac permission issues. In my case, I didn't restart and it worked. If it doesn't work rightaway on your development environment, try restarting your Mac.
Note: The solution above worked for me because I don't allow any network access to my development environment, if you for some reason need better security, you should probably check Zend Server's documentation to follow their suggestions with regard to how to make your development environment safer.
Hope these steps work for you!