• Hello Guys and Gals,

    I have seen several posts regarding this error, but none of the proposed solutions have worked for me. I just moved a WP site to a new Ubuntu VPS and have been setting it up. I used the steps outlined here to create a new user for WP (wp-user) who owns the WP directory and who can log in via SSH and keys to update plugins, themes, etc. However, when I try to update a plugin, I get an error:

    An error occurred while updating Jetpack by WordPress.com: Unable to locate WordPress content directory (wp-content).

    My WP site is not in the /var/www/html folder. It is nested within that in /var/www/html/wpsite. This is defined correctly in the WP dashboard (under settings). I tried updating the wp-config file with:

    define('FTP_BASE','/var/www/html/wpsite/')

    But that does not work and I get the same error again. I know this is a simple configuration error but I can’t seem to spot it. I would appreciate any help!

    Thanks in advance for your time.

    Best,
    David

Viewing 1 replies (of 1 total)
  • Thread Starter dckirba

    (@dckirba)

    As an update:

    I have checked all permission and the user I created (wp-user) has all the correct permissions. In addition to defining FTP_BASE, I also tried defining the FTP_CONTENT_DIR and FTP_PLUGIN_DIR, all to no avail. I still get the “cannot locate WordPress content directory” error while trying to update a plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘Update cannot locate wp-content folder’ is closed to new replies.