• Apparently there is a bug in the php-ssh2 extension.

    I tried using the pecl extension instead but kept having problems.

    sudo apt-get install -y libssh2-1-dev php-pear
    sudo pecl install ssh2-1.0
    sudo ln -s /etc/php/7.0/mods-available/ssh2.ini /etc/php/7.0/fpm/conf.d/20-ssh2.ini
    sudo service php7.0-fpm restart

    Always got the error “Unable to locate WordPress content directory (wp-content)”.

    So I downloaded this plugin, uploaded it via scp to the server and it worked immediately.

    Thanks for saving the day

  • The topic ‘SSH Finally working on NGINX and PHP7’ is closed to new replies.