Category:Technology -> Adventures with the naked Mac Mini Server -> Install WordPress on Lion
Install and configure WordPress
Install WordPress using the instructions provided on the WordPress website.
Configuring WordPress to support automatic updating and upgrading
I’ve never been able to get WordPress to use my SFTP credentials to update or upgrade itself or its plugins. I’m not sure why and I never spent much time looking into it because it occurred to me that WordPress should be able to write directly to the filesystem for updates and upgrades. Nosing around I discovered that to do this WordPress expects its directory to be owned by the user under which Apache is running.
You can discover which user Apache is running under by opening a terminal session and entering the following command: ps -Alfj | grep httpd.
A long list of various users appears, one of which will be _www and that’s the one WordPress is expecting.
Use these steps to change the ownership of the WordPress directories and files to support automatic updating and upgrading:
- Open a terminal session and issue the following commands:
- Enter cd /Libary/Server/Data/Sites/Default/ (assuming your WordPress subdirectory is beneath that).
- Enter sudo chown -R _www wordpress.
- Enter sudo chmod -R g+w wordpress.
