Building PHP with SSH2 support

Patrick Ekkel

New member
Joined
Sep 24, 2012
Messages
4
just look here

I set it here in to dutch

update of install het volgende
mensen met een control panel hoeven enkel te updaten

Stap 1
yum install automake && php-devel && libtool && openssl-devel && gcc++

Stap 2

Install libssh2
cd /usr/src
wget http://www.libssh2.org/download/libssh2-1.0.tar.gz
tar -zxf libssh2-1.0.tar.gz
cd libssh2-1.0
./configure
make all install

cd /usr/src
rm -Rf libssh2-1.0
rm -f libssh2-1.0.tar.gz

Stap 3

Install ssh2 PHP
cd /usr/lib/php
wget http://pecl.php.net/get/ssh2-0.11.0.tgz
tar -zxf ssh2-0.11.0.tgz
cd ssh2-0.11.0
phpize && ./configure --with-ssh2 && make

cd modules
mv ssh2.so /usr/local/

cd /usr/lib/php

rm -Rf ssh2-0.11.0
rm -f ssh2-0.11.0.tgz


Stap 4

Edit php.ini

nano /usr/local/lib/php.ini

Zet helemaal onderaan neer
extension_dir = "/usr/local/
extension = ssh2.so


Stap 5

Reboot Apache

service httpd restart
typ nu php -m

en als je ssh2 er tussen ziet staan is hij helemaal gereed

http://www.uscn.nl/beheer/knowledgebase/14/-HOWTO-PHP-SSH2-op-CentOS-5x-met-Directadmin--.html
 
Back
Top