例 5.5. mcrypt
# yum install libmcrypt libmcrypt-devel # cd /usr/local/src/php-5.2.17/ext/mcrypt # /usr/local/php-5.2.17/bin/phpize # ./configure --with-php-config=/usr/local/php-5.2.17/bin/php-config # make # make test # make install # cp /usr/local/php-5.2.17/lib/php/extensions/no-debug-zts-20060613/mcrypt.so /usr/local/php-5.2.17/lib/php/extensions/ # vim /usr/local/php-5.2.17/etc/php.ini extension_dir = "/usr/local/php-5.2.17/lib/php/extensions/" extension=mcrypt.so
cat > /srv/php-5.2.17/etc/conf.d/mcrypt.ini <<EOF extension=mcrypt.so EOF
原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。