• Hi,

    I’ve looked through more sites than I care to remember but can’t find a definitive answer for this.

    When trying to do any updates, I get the following:

    To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

    I connect via SFTP and have to import a key into Filezilla. I log in via root

    Running a whoami on the site brings me back www-data.

    What do I need to do in order to get updates working on the site? I remember back in the day I had to change permissions but this caused a few headaches with SFTP.

    Any suggestions?

    Thanks,

    JJ

Viewing 2 replies - 1 through 2 (of 2 total)
  • I don’t know if that part of WordPress works over sFTP.

    Since you have access to the command line, I am going to guess that this is at least a VPS, and that it is most likely a business site. If it is, don’t use the build in updater. Put together a test server and test everything before you upload it with FileZilla. Read “Cheatin uh?” if you want to know why.

    Thread Starter rockgeek

    (@rockgeek)

    A sudo chown -R www-data /var/www/wordpress/ seems to have done it on the testing server!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can't update plugins or WordPress’ is closed to new replies.