12 Steps to Install libssh2 for PHP7
After successfully using libssh2 with PHP5 from the last post, I need to use libssh2 with PHP7 too. Yet, to install libssh2 to be working with PHP7 is not as easy as in PHP5. From just running sudo apt-get install libssh2-php , you need another few more steps. The overall steps I followed was from this link. However, it’s not fully working for me, so the additional steps are needed.
Environment
Ubuntu 14.04.3 LTS x86_64 – Homestead (0.4.1)
Steps to Install libssh2
- Install dependencies for PECL ssh2
1sudo apt-get install libssh2-1-dev libssh2-1 - Download PECL ssh2 fior PHP7
1wget https://github.com/Sean-Der/pecl-networking-ssh2/archive/php7.zip - Unzip the file
1234unzip php7.zip// you need unzip package, if you don't have it yet, run this commandsudo apt-get install unzip - Enter the directory
1cd pecl-networking-ssh2-php7 - Locate
phpize
1234567//update indexsudo updatedblocate phpize//result/usr/bin/phpize/usr/bin/phpize7.0 - Take the path of
phpize and run in the directory
1234567/usr/bin/phpize7.0//resultConfiguring for:PHP Api Version: 20151012Zend Module Api No: 20151012Zend Extension Api No: 320151012 - Locate
php-config
12345locate php-config// result/usr/bin/php-config/usr/bin/php-config7.0 - Check configuration and make sure you pass the path of
php-config too
1./configure --with-php-config=/usr/bin/php-config7.0 - Then make and install
12sudo makesudo make install - Add the extension into
php.ini
1extension=ssh2.so - Restart
php7.0-fpm
1234567sudo service php7.0-fpm restart// your fpm might be named different, you can check the exact name by usingls /etc/init.d | grep php//resultphp7.0-fpm - Finally, test it!
Pingback: 12 Steps to Install libssh2 for PHP7 – IKQ.ME – My Bookmarks()
Pingback: essayforme()
Pingback: writeessay()
Pingback: freshamateurs3330()
Pingback: sirius latest movs756 abdu23na9097 abdu23na34()
Pingback: topfuck123gals.mobi click here bJyk()
Pingback: newtube sirius361 abdu23na1436 abdu23na47()
Pingback: download on mobile110 afeu23na937 abdu23na42()
Pingback: tubepla.net download762 afeu23na8959 abdu23na24()
Pingback: tubepla.net download901 afeu23na8771 abdu23na53()
Pingback: 80eQrp9vQ8()
Pingback: hdmobilesex.me()