Installing ssh2 support in PHP: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Most distribution has the SSH2 library packaged for PHP, but this is not the case for example if you are running CentOS | Most distribution has the SSH2 library packaged for PHP, but this is not the case for example if you are running CentOS with php55w installed. | ||
In this case you need to manually install some prerequisites and compile it. | In this case you need to manually install some prerequisites and compile it. | ||
<pre> | <pre> | ||
yum -y install libssh2-devel | |||
yum -y install php55w-pear | yum -y install php55w-pear | ||
yum -y install php55w-devel | yum -y install php55w-devel | ||
pecl install ssh2-0.13 | pecl install ssh2-0.13 | ||
</pre> | </pre> | ||
And then add extension=ssh2.so to php.ini and restart httpd |
Latest revision as of 09:03, 7 May 2019
Most distribution has the SSH2 library packaged for PHP, but this is not the case for example if you are running CentOS with php55w installed.
In this case you need to manually install some prerequisites and compile it.
yum -y install libssh2-devel yum -y install php55w-pear yum -y install php55w-devel pecl install ssh2-0.13
And then add extension=ssh2.so to php.ini and restart httpd