• My setup: WordPress 2.9.2 running on Mac OS X Server 10.5.8. The setup has been stable for months, but a couple of weeks ago something changed and now I cannot update plugins, themes, or pretty much anything else—though I can upload photos and media and make posts.

    Here’s an example from when I just tried to update Suffusion:

    Downloading update from https://www.ads-software.com/extend/themes/download/suffusion.3.4.6.zip.
    Unpacking the update.
    Installing the latest version.
    Enabling Maintenance mode.
    Removing the old version of the theme.
    Could not create directory. /Users/atropos/Web/Fates.org/moc/wp-content/themes/suffusion/
    Theme upgrade Failed.

    ~atropos/Web is a symlink to the drive where my Web sites and WP installation are kept. I’ve verified that it’s possible to traverse the link over the command line and FTP. I’ve verified that I *can* create the suffusion directory manually over FTP. I’ve even opened the permissions to 777 all the way up to the root of WordPress.

    I’m at a loss for what’s going on. Has anyone else seen this? Am I missing something that should be plainly obvious to me? I know it’s not just theme-related, as I cannot update any plugins either.

    Any help, suggestions, etc. would be greatly appreciated!

Viewing 5 replies - 16 through 20 (of 20 total)
  • bump

    I think I’ve found a partial solution. At least it works for me on OS X Server 10.5.8 and then even after upgrading to 10.6.4. Also, now on WP 3.0.1.

    Full details at https://thefragens.com/blog/2010/06/wordpress-automatic-updates/

    Essentially, changing permissions and owner for specific files and folders. It still doesn’t run as expected as the page graphic never advances but a check of plugins or themes does show them as updated. Unfortunately this doesn’t seem to work for updating WP itself.

    Thread Starter dbodonnell

    (@dbodonnell)

    @afragen, thanks for the link! It turned out that for me, all I needed to do was add
    define(‘FS_METHOD’,’direct’); in my wp-config.php and I was able to install a new plugin without problem. It remains to be seen whether it will affect upgrades and new WP installs, though… One can hope!

    This problem of being unable to install plugins and update the wordpress core automatically has been bothering me for a while now. Inspired by the upgrade to 3.0.5, this thread, a bunch of other webpages that were mostly unhelpful, I think I have finally found a setup that works for me.

    Adding define(‘FS_METHOD’,’direct’); to wp-config.php seems to be a critical first step to get both to work. This alone seems to get plugin installs working correctly, but not the core updates.

    The only way I have been able to get the core updates to work is to change the group ownership of all of the files in the wordpress directory to the OS X webserver group, which is _www. This can be done with the terminal command replacing YourUserName with your user name currently assigned to the files:
    sudo chown -R YourUserName:_www *

    Then, read, write, and execute permission for all of the files and folders need to be given to the webserver via the file group permission. This can be done with the terminal command:
    sudo chmod -R 775 *

    This makes sense as the webserver is installing the updates, and needs to have permission to replace files.

    I have read that other servers are setup that your own personal webserver process is actually considered a user of your files as well, so these extra steps and permissions are not necessary. This just isn’t true for OS X, so we need some extra configuration.

    Hope this helps.

    @epor, you’ve found the missing link for me. Thanks a million.

    BTW, my blog post above has a bad link.
    https://thefragens.com/blog/2010/06/wordpress-automatic-updates/

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘Unable to add or update themes/plugins, WP 2.9.2 on Mac OS X Server’ is closed to new replies.