php 동적 모듈추가 ssh2

yum install libssh2 libssh2-devel
wget http://pecl.php.net/get/ssh2-0.11.3.tgz
tar zxvf ssh2-0.11.3.tgz
cd ssh2-0.11.3
/usr/local/php/bin/phpize
./configure –with-php-config=/usr/local/php/bin/php-config –with-ssh2=/usr/lib64 ( 32bit는 뒤에 옵션제외 )
make
make install

/usr/local/php/lib/php/extensions/no-debug-zts-20090626/ << 모듈 생성 디렉토리 vi /usr/local/apache/conf/php.ini extension_dir = "/usr/local/php/lib/php/extensions/no-debug-zts-20090626/" extension="ssh2.so" info에서 ssh2 항목 보이면끝 =-=

Leave your Comment

Your email address will not be published. Required fields are marked *