Adding SSH support to PHP

From MiRTA PBX documentation
Revision as of 15:57, 19 March 2017 by Admin (talk | contribs) (Created page with "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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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:

  1. Install missing packages

yum -y install php55w-pear php55w-devel libssh2-devel

  1. Download and compile the ssh2 package

cd /usr/local/src pecl install ssh2

  1. Edit php.ini and add in php.ini the option

extension=ssh2.so