Install ssh2 php centos 7
We have already discussed about how to install and configure SSH2 extension in XAMPP in Linux System, same process will configure in your PHP. Show Step 1 : Before start, we need to update and install the necessary packages for build/install ssh2 extension # yum update # yum install make gcc libssh2 php-devel php-pearlibssh2-devel Step 2 : Install ssh2 extension using pecl command for auto detect and download once hit enter, # pecl install -f ssh2
Step 3 : 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 Step 4 : Finally restart your web server # service restart httpd.service Now, check the module whether is configure with PHP, # php -m | grep ssh2 ssh2 Also can check in your phpinfo();
I am not able to install ssh2 in centos. I using apache2 and PHP 7.3 I using below command and giving me error as below
but it's showing me below error
please tell me what I missing. asked Dec 19, 2019 at 6:15
1 In CentOS 7, what about enabling EPEL and then EDIT: Looks like CentOS 7 includes PHP 5 by default. The ssh2 page (https://pecl.php.net/package/ssh2) says:
answered Dec 21, 2019 at 7:24
1 In this tutorial we learn how to install php-pecl-ssh2 on CentOS 7. php-pecl-ssh2 is Bindings for the libssh2 library IntroductionIn this tutorial we learn how to install What is php-pecl-ssh2
We can use Install php-pecl-ssh2 on CentOS 7 Using yumUpdate yum database with After updating yum database, We can install
Install php-pecl-ssh2 on CentOS 7 Using dnfIf you don’t have dnf installed you can install dnf first. Update yum database with After updating yum database, We can install
How To Uninstall php-pecl-ssh2 on CentOS 7To uninstall only the
php-pecl-ssh2 Package Contents on CentOS 7
References
SummaryIn this tutorial we learn how to install |