WordPress.org

Ready to get started?Download WordPress

Forums

Can't update plugins or WordPress (3 posts)

  1. rockgeek
    Member
    Posted 1 year ago #

    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

  2. s_ha_dum
    Member
    Posted 1 year ago #

    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.

  3. rockgeek
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags