·

PHP Secure Shell2関数をインストール

http://www.php.net/ssh2

libssh2が必要なので事前にインストール。openssl-develはパッケージで導入済み。

wget http://nchc.dl.sourceforge.net/sourceforge/libssh2/libssh2-0.14.tar.gz
tar xvfz libssh2-0.14.tar.gz
cd libssh2-0.14
./configure --with-openssl=/usr/
make
make install

PECLからssh2関数をインストール。

pecl install ssh2-beta

/usr/local/lib/php.iniを編集。

extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613"
extension=ssh2.so