Update and install the necessary packages
# yum update
# yum install make gcc libssh2 php-devel php-pearlibssh2-devel
# pecl install -f ssh2
Once the package has been installed in your system, we need to configure the extension to PHP (php.ini or ssh2.ini)
# echo "extension=ssh2.so" > /etc/php.d/ssh2.ini
or
# echo "extension=ssh2.so" > /etc/php.ini
Finally restart your web server
# service restart httpd.service
Now, check the module whether is configure with PHP,
# php -m | grep ssh2
1 | ssh2 |
Also can check in your phpinfo();
No comments:
Post a Comment