Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
# echo "extension=ssh2.so" > /etc/php.d/50-ssh2.ini


or


# echo "extension=ssh2.so" > /etc/php.ini

If above works correctly, you should restart your server like

Code Block
# systemctl restart httpd.service

You can check it in your phpinfo().


https://www.thelinuxfaq.com/253-how-to-install-ssh2-extension-for-php-rhel-centos-7