Setting up wordpress to update itself

WordPress’s auto update feature is incredibly handy.

However, not every webhost automatically has accounts setup to allow for this, and if click the promising looking auto-upgrade icon, you’ll often be face with this screen here:

Wordpress - auto-upload fail

You get this screen when the folder containing wordpress belongs to the user, instead of the apache daemon; this is normally either www-data if you’re using Ubuntu, or nobody if you’re using Redhat Linux instead.

The simplest way to do this is to change the folders to be owned by the apache daemon instead, by using chmod like so:


chown -R nobody wordpress

Adding the -R flag makes the changing of ownership recursive through all the folders inside wordpress.

Job done.

This is outlined in more detail by Rob Spencer on his own blog – really quite handy.

  • Share/Bookmark
This entry was posted in Coding and tagged , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

2 Comments

  1. Posted July 26, 2009 at 6:22 pm | Permalink

    Nice tip — I think you want chown instead of chmod, though.

  2. Posted July 26, 2009 at 7:20 pm | Permalink

    D’oh!

    Updated accordingly.

Post a Comment

Your email is never published nor shared. 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> <pre lang="" line="" escaped="">