XE ½¬¿î ¼³Ä¡ SS2 ¸ðµâ ¼³Ä¡
SFTP¸¦ »ç¿ëÇϽ÷Á¸é ssh2 PHP ¸ðµâÀ» ¼³Ä¡ÇÏ¼Å¾ß ÇÕ´Ï´Ù.
libssh2
# wget http://www.libssh2.org/download/libssh2-1.4.2.tar.gz
# tar vxzf libssh2-1.4.2.tar.gz
# cd libssh2-1.4.2
# ./configure --with-openssl --without-libgcrypt-prefix --without-libz-prefix
# make
# make install
# wget http://pecl.php.net/get/ssh2-0.12.tgz
# tar xzvf ssh2-0.12.tgz
# cd ssh2-0.12
# /usr/local/bin/phpize
# ./configure --with-php-config=/usr/local/bin/php-config --with-ssh2=/usr/lib
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
¾Æ·¡ ¾Æ·¡ µ¿ÀÏ ¿¡·¯ ³»¿ë ±â·ÏµÈ ¿¡·¯ ¹ß»ý½Ã ó¸® ÂüÁ¶
# ./configure --with-php-config=/usr/local/bin/php-config --with-ssh2=/usr/lib
# make
# make install
ÄܼÖ
Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20121212/
»ý¼ºµÇ¾úÀ¸¸é php.ini ÆÄÀÏÀ» ¿¾î Ãß°¡ ½ÃÄÑÁØ´Ù.
# vi /usr/local/lib/php.ini
;extension_dir = "./" ÁÖ¼® ÈÄ ¾Æ·¡ ±¸¹® Ãß°¡~!
extension_dir = /usr/local/lib/php/extensions/no-debug-non-zts-20121212/
extension = "ssh2.so"
escÅ° :wq
======re2c=====¿¡·¯Ã³¸®=======
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
¿¡·¯ ¹ß»ý½Ã ó¸® ÂüÁ¶
# wget http://sourceforge.net/projects/re2c/files/re2c/0.13.5/re2c-0.13.5.tar.gz/download
# tar zxvf re2c-0.13.5.tar.gz
# cd re2c-0.13.5
# ./configure
# make
# make install
# cd
libevent- ·Î ½ÃÀÛÇÏ´Â Æú´õ¸¦ ã¾Æ cd Æú´õ¸í ÇØÁØ´Ù
# ./configure
=======¿¡·¯ ó¸® ³¡=======
service httpd restart
/usr/local/apache/bin/apachectl restart
rm -rf libssh2-1.4.2.tar.gz
rm -rf ssh2-0.12.tgz
rm -rf re2c-0.13.5.tar.gz