• Hello,

    We’d like to setup WP for updating the theme. Today, we connect using Filezilla and a keyfile so that it’s more secure. When we go to the updating theme, it says:
    “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.”

    It does allow us to specify FTPS, and it gives the following fields:
    Hostname
    FTP username
    FTP Password
    Connection Type: FTP or FTPS (SSL)

    However, there is no field for specifying the keyfile or path to keyfile. Does anyone know if it possible to do this? or we must update manually?

    Thanks in advance

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    given how you’ve locked down the server, you must update manually.

    However, when WP is requesting FTP credentials, it means that the file ownerships and / or permissions are incorrect as WP normally can update itself. If you prefer things to work that way, make sure the user of the process running PHP has full write permissions on wp-content and all subdirectories.

    Thread Starter hoffmaao

    (@hoffmaao)

    Hi thanks for quick reply, the file permissions and ownership are set to those recommended. I am discussing in regards to updating the theme (it’s a paid theme)…so without FTP there’s no way to have it done automatically is what I understand?
    In that case we must revert to do the theme update manually?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Whether the theme can update “normally” is a function of the theme and where you bought it. But if you want to use FTP, given your setup, you’ll have to do it manually via filezilla.

    Thread Starter hoffmaao

    (@hoffmaao)

    I can understand having to do the theme manually however now it’s happening on the plugins too. It was working previously…
    The only change made was chown -R the web directory to ubuntu:www-data, I did this so we could modify files from client. But seems it’s not allowing us to update the plugins now too. Must I change the owner permissions back? What else can I do to get this working?
    Thanks

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    the ownership must be www-data:www-data

    Thread Starter hoffmaao

    (@hoffmaao)

    Thanks, just wanted to update.

    I’ve fixed the issue by reverting the ownership to www-data:ubuntu and adding the following line of code into the wp-config.php:
    define('FS_METHOD', 'direct');

    Now BOTH the plugin automatic update AND theme update are working and it’s allowing us to modify files via the sftp client.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Updating theme without FTP’ is closed to new replies.