Adding SSH support to PHP: Difference between revisions

From MiRTA PBX documentation
Jump to navigation Jump to search
(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...")
 
No edit summary
Line 5: Line 5:
If you are running php 5.5, more steps are needed:
If you are running php 5.5, more steps are needed:


# Install missing packages
Install missing packages


<tt>yum -y install php55w-pear php55w-devel libssh2-devel</tt>
<tt>yum -y install php55w-pear php55w-devel libssh2-devel</tt>


# 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>


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


<tt>extension=ssh2.so</tt>
<tt>extension=ssh2.so</tt>

Revision as of 15:57, 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