Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎專欄 | Search | 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