WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. JimFossile
    Member
    Posted 1 year 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 !
    JimFossile

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

  2. TerraFrost
    Member
    Plugin Author

    Posted 1 year 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:

    <?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!

  3. JimFossile
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.