Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 作品与服务 | Email

5.7. mcrypt

例 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
		
		
comments powered by Disqus