Support » Plugin: SSH SFTP Updater Support » Cannot locate WordPress root on SFTP server when updating

  • Resolved JimFossile


    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 !

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TerraFrost


    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();




    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.



    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 🙂 .

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cannot locate WordPress root on SFTP server when updating’ is closed to new replies.