Hướng dẫn brew install php ssh2
This is a ✨special✨ repository containing the organization level discussions for Homebrew. Everything posted here will also be visible at the organization level. Show Replies: 3 suggested answers 18 repliesAdd heading textAdd bold text, Add a quote, Add a bulleted list, Directly mention a user or teamReference an issue or pull request Add heading textAdd bold text, I finally found a solution on MacOS Mohave. I have PHP 7.3 installed by Homebrew:
Install development version of ssh2 pecl extension from the latest sources:
Enable extension in
Add Test the result:
You should see
-- EDIT for Apple silicon (M1) Homebrew uses different path on Apple silicon machines and ./configure command fails with error: "checking for ssh2 files in default path... not found". I resolved this with setting custom path: We have already discussed about how to install and configure SSH2 extension in XAMPP in Linux System, same process will configure in your PHP. Nội dung chính
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 |