安裝指令:
yum install libssh2-devel
pecl install ssh2-beta
將啟用ssh2設定加入php.ini:
echo extension=ssh2.so >> /etc/php.ini
重啟web server:
service httpd restart
安裝過程中,可能會需要用到幾個東西
Pecl:
yum install php-pear
C / C++ Compiler:
yum install gcc gcc-c++ autoconf automake
Make:
yum install lib tool make
留言