为PHP增加libmcrypt模块---解决无法加载mcrypt扩展

安装libmcrypt mhash mcrypt 解决无法加载mcrypt
[root@localhost phpMyadmin]# cd /home/
[root@localhost home]# tar -zxvf libmcrypt-2.5.8.tar.gz -C /usr/local/src/
[root@localhost home]# cd /usr/local/src/libmcrypt-2.5.8/
[root@localhost libmcrypt-2.5.8]# ./configure
[root@localhost libmcrypt-2.5.8]# make && make install
[root@localhost libmcrypt-2.5.8]# echo "/usr/local/lib" >> /etc/ld.so.conf
[root@localhost libmcrypt-2.5.8]# ldconfig
[root@localhost libmcrypt-2.5.8]# cd /home/
[root@localhost home]# tar -zxvf mhash-0.9.9.9.tar.gz -C /usr/local/src/
[root@localhost home]# cd /usr/local/src/mhash-0.9.9.9/
[root@localhost mhash-0.9.9.9]# ./configure
[root@localhost mhash-0.9.9.9]# make && make install
[root@localhost mhash-0.9.9.9]# cd /home/
[root@localhost home]# tar -zxvf mcrypt-2.6.8.tar.gz -C /usr/local/src/
[root@localhost home]# cd /usr/local/src/mcrypt-2.6.8/
[root@localhost mcrypt-2.6.8]# ./configure
[root@localhost mcrypt-2.6.8]# make && make install
[root@localhost mcrypt-2.6.8]# cd /usr/local/src/php-5.3.2/
[root@localhost php-5.3.2]# ./configure --prefix=/usr/local/php5
--enable-mbstring
--with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql
--with-mcrypt
--with-config-file-path=/usr/local/php5
[root@localhost php-5.3.2]# service apache restart
Client 中测试 http://www.crazylinux.com/phpMyAdmin

你可能感兴趣的:(加载,PHP,模块,解决,mcrypt)