SSH SFTP Updater Support
[resolved] Cannot locate WordPress root on SFTP server when updating (4 posts)

  1. JimFossile
    Posted 2 years ago #

    Hi there,
    I would like to update my WP to last version 3.5.2, but this plugin could sadly not locate the path of my wordpress installation, which is in fact at the root of the SFTP session I use. I use ProFTPd as SFTP server. SSH server seems to work well with the plugin, but unfortunately, I don't have SSH access with sufficient permission (read-only).

    Thanks for help !


  2. TerraFrost
    Plugin Author

    Posted 2 years ago #

    Sorry for the delay.

    Anyway I suspect the problem is that the Apache root and the SSH server root are different. If you could confirm by running this script and telling me what the output is that'd be great:

    $sftp = new Net_SFTP('www.domain.tld');
    if (!$sftp->login('username', 'password')) {
        exit('Login Failed');
    echo dirname(__FILE__) . '<br />';
    echo $sftp->pwd();


  3. JimFossile
    Posted 2 years ago #

    Thanks for answer :) . Yes, you are right, but I can't configure my SFTP session at the root of my server for safety reason. And for the same reason (SSH is supposed to be closed to this user), I can't use SSH login informations.

  4. JimFossile
    Posted 2 years ago #

    Hi, here is the response returned by your script (and as you diagnosed, it confirms that dirname is different from SFTP path) :


    I had to install pear phpseclib/Net/SFTP. Is it a dependancie of SSH SFTP Updater plugin ?

    Edit : It seems that the problem was this missing dependencie ( phpseclib/Net/SFTP ). It works well now ! Thank you very much for your help.

    Thank you :) .

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • SSH SFTP Updater Support
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.