کد:
nstalling libssh2 libraries on CentOS 5.2
- Enter the following commands to download and install the latest libssh2 package.
- wget libssh2 - Browse Files at SourceForge.net
- gunzip libssh2-0.18.tar.gz
- tar -xvf libssh2-0.18.tar.gz
- cd libssh2-0.18.tar.gz
- ./configure && make all install
Compiling
libssh2 PHP Extension
- Use these commands to download and compile the libssh2 PHP module.
- wget http://pecl.php.net/get/ssh2-0.10.tgz
- gunzip ssh2-0.10.tgz
- tar -xvf ssh2-0.10.tgz
- cd ssh2-0.10.tgz
- phpize && ./configure –with-ssh2 && make « Generates ssh2.so, the compiled PHP extension.
- (Note: If you encounter a make: *** [ssh2.lo] Error 1 error, run Bill Pitz’s libssh2 patch.)
- cp ./modules/ssh2.so /usr/lib/php/modules/ssh2.so
- Open your PHP configuration file by typing vi /etc/php.ini and add extension=ssh2.so to the configuration, and save the file when you are complete.
ممنون جناب تقی خانی من همین مراحل را قبل از ایجاد تاپیک انجام دادم ولی مشکل اینجاست :
کد:
cp ./modules/ssh2.so /usr/lib/php/modules/ssh2.so
این فایل موجود نیست :