Adding SSH support to PHP: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
Download and compile the ssh2 package | Download and compile the ssh2 package | ||
<tt>cd /usr/local/src | <tt>cd /usr/local/src | ||
pecl install ssh2</tt> | pecl install ssh2</tt> | ||
Latest revision as of 20:00, 19 March 2017
If your installation is older than a certain date, you may miss the SSH support in PHP needed to use sftp protocol for recording uploads.
If you are running php 5.3, it will be needed to just install the package php-pecl-ssh2-0.11.0-7.el6.x86_64
If you are running php 5.5, more steps are needed:
Install missing packages
yum -y install php55w-pear php55w-devel libssh2-devel
Download and compile the ssh2 package
cd /usr/local/src
pecl install ssh2
Edit php.ini and add in php.ini the option
extension=ssh2.so