Reputation: 11
I've installed PHP 7.1 from Software Collections and running on rh-php71-php-fpm. Now i need to use ssh2 to connect to my SFTP, it doesn't come with the Software Collection one. How do i go about installing it?
I've tried installing with these instructions: http://programster.blogspot.com/2013/06/centos-64-install-ssh2-extension-for-php.html
Then copying the .so file over to where the other modules are located for the SC installation: /opt/rh/rh-php71/root/usr/lib64/php/modules/ssh2.so then gave it +x
then added the ini, where the others are located: /etc/opt/rh/rh-php71/php.d/ssh2.ini
restarted rh-php71-php-fpm and httpd but the function ssh2_connect is still undefined.
Any help?
Upvotes: 0
Views: 210
Reputation: 11
Sorry did more searching and all i had to do was install sclo-php71-php-pecl-ssh2
Upvotes: 1