Adding SSH support to PHP

From MiRTA PBX documentation
Revision as of 19:57, 19 March 2017 by Admin (talk | contribs)
Jump to navigation Jump to search

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