• https://www.digitalocean.com/community/tutorials/how-to-configure-secure-updates-and-installations-in-wordpress-on-ubuntu

    I’m using an Ubuntu 16 server to host a couple of small WordPress sites and I’m trying to configure secure updates using the tutorial above (adjusted for PHP7). I got libssh2 and the PHP extension installed just fine and the SSH connection is getting made when WordPress attempts to update according to the auth logs.

    This issue I have is when the update happens WordPress give me the following error: An error occurred while updating Plugins XYZ: Unable to locate WordPress Content directory (wp-content).

    This seems like it would be a permissions issue, but I’ve checked the permissions several times and that doesn’t seem to be the issue. The SSH user is the owner of all the files and directories and the web server is on the group. I even tried changing the permissions to 777 just to ensure it wasn’t permissions relates and still got the same error.

    These are the permissions I’m using just for reference:

    sudo chown -R wp-user:wp-user /var/www/mysite.com/html/
    sudo chown -R :www-data /var/www/mysite.com/html/wp-content/
    sudo find /var/www/mysite.com/html/ -type d -exec chmod 755 {} \;
    sudo find /var/www/mysite.com/html/wp-content/ -type d -exec chmod 775 {} \;
    sudo find /var/www/mysite.com/html/ -type f -exec chmod 644 {} \;

    I really appreciate any insight anyone might have. Thanks!

  • The topic ‘Secure Updates via SSH: Unable to locate WordPress Content’ is closed to new replies.