• Resolved JimFossile

    (@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 !
    JimFossile

    http://wordpress.org/plugins/ssh-sftp-updater-support/

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

    (@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:

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

    Thanks!

    Thread Starter JimFossile

    (@jimfossile)

    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.

    Thread Starter JimFossile

    (@jimfossile)

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

    /var/www/olr
    /

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

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.