Unable to Update WordPress and its Components from wp-admin


When you login to wp-admin of TurnKey WordPress VM, you will see updates for WordPress, Plug-ins, and Themes in [Dashboard] → [Updates]. When you are ready for installation, it will prompt for ftp user name and password. It never works with your root account.

Error message when you try to enable the ftp feature in WordPress
Error message when you try to enable the ftp feature in WordPress

It’s not because of ftp connection type, you may stay with FTP or FTPS (SSL). It’s due to the access right of www directory. More about access right may be found in Secure wp-config.php section in another post.

Please login to the shell or use Web shell as root and type following command to change the owner and group of /var/www and its sub-directories to www-data

chown -R www-data:www-data /var/www

Now, you may upgrade within wp-admin successfully!

Reference

  1. Secure wp-config.php and Restrict database privileges to protect your database
  2. TurnKey: unable to update WordPress ftp/ftps error
  3. TurnKey: Configuration Console
Advertisements

3 thoughts on “Unable to Update WordPress and its Components from wp-admin

  1. I’ve been searching for an answer to this for a few days. Every other article advises doing a variety of permissions changes on the wordpress root directory, but not a one of them mentions /var/www. This worked like a champ. Nice work.

    Liked by 1 person

    • Dear El Pollo Diablo,

      Thank you for sharing your experience with us. I am very appreciate your feedback!

      I use the same tips to solve ZurmoCRM fail to launch in TurnKey Linux. It’s related to directory owner, too.

      Have a nice day!

      Best regards,

      Amigo

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s