Archives by date

You are browsing the site archives by date.

【CentOS】にPHPエクステンションのSSH2をインストールした際のメモ。

自分用。

yum install gcc gcc-c++
yum install openssl-devel
yum install libgcrypt-devel

wget http://downloads.sourceforge.net/project/re2c/re2c/0.13.7.4/re2c-0.13.7.4.tar.gz
tar zxvf re2c-0.13.7.4.tar.gz
cd re2c-0.13.6
./configure --prefix=/usr/local/re2c-0.13.7.4
make && make install

wget http://www.libssh2.org/download/libssh2-1.4.3.tar.gz
tar xzvf libssh2-1.4.3.tar.gz
libssh2-1.4.3
./configure
make
make install

wget http://pecl.php.net/get/ssh2-0.12.tgz
tar xzvf ssh2-0.12.tgz
cd ssh2-0.12
phpize
./configure
make
make install

vim /etc/php.ini
extension=ssh2.so