WordPress Automatic Updates

I think I finally have the automatic updates feature of WordPress working. Previously, when asked for my login info for the FTP connection I would get some vague connection error. It’s a permissions issue. Some permissions for files/folders need to be set for web server user, in my case Apache2, or _www on OS X Server.

The answer mostly comes from looking for why WordPress asks for connection information. Be sure to read the comments. Definitely add the following to wp-config.php.

define('FS_METHOD', 'direct');

So far, my solution seems to be something like the following, from the wordpress directory.

sudo chown -R _www ./wp-content*
sudo chown _www ./wp-admin/update*

It seems to work, however, the information about what should be happening with the update seems to be in an endless loop. I let it run for a bit and when I check to see if the plugin or theme is updated it seems to have the newer version, but I’ve no real way to check or to know how long to let the process run.

Very confusing.

When I encounter more updates I’ll see if this really does work. BTW, updated to WordPress 3.0 for all the new goodness.

Update
This works fine for plugins and themes but not for the actual WP updates. Also, I just let it run until the browser doesn’t seem to be loading the page any longer and the updates are done. Something’s clearly not working as expected with this and OS X Server but I don’t know what it is.

Update 2
Thanks epor for the missing piece.

Related posts:

  1. WordPress SVN OK, since I’ve switched over to WordPress I have to...
  2. Tool updates Minor updates to the pLessFix tool and the keepWebServerUp tool....
  3. Moved to WordPress! Well, here I am switched over to WordPress. It’s not...
  4. WordPress and the iPhone So I’m trying out the latest WordPress for iPhone app...

Related posts brought to you by Yet Another Related Posts Plugin.

This entry was posted in osx-server and tagged , , . Bookmark the permalink.

3 Responses to WordPress Automatic Updates

  1. Andy says:

    Well, the above seems to work fine for theme and plugins updates. Unfortunately it fails miserably for updating WordPress to next version. I hate to have to pay for a solution but I’m getting closer.

  2. Andy Fragen says:

    Using the information above in Update 2 I can now use automatic updates for everything in WordPress, themes, plugins, and WP updates. I’ve written a script that unfortunately is a bit too specific for my setup that will set the permissions depending upon what I need to do. After the updates, I just set everything back. If anyone’s interested let me know and I’ll post the script in a neutered fashion.

  3. luis felipe says:

    thanks…. me estaba volviendo loco

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Notify me of followup comments via e-mail. You can also subscribe without commenting.