PHP的mcrypt模块装配

WBOY
Release: 2016-06-13 10:29:56
Original
938 people have browsed it

PHP的mcrypt模块安装
首先要下载三个软件(下载地址是我提供的,里面有不同的压缩版本),分别是
libmcrypt-2.5.8.tar.gz
下载地址:?http://sourceforge.net/project/showfiles.php?group_id=87941&package_id=91774&release_id=487459
mhash-0.9.9.tar.gz
下载地址:?http://sourceforge.net/project/showfiles.php?group_id=4286&package_id=4300&release_id=645636
mcrypt-2.6.8.tar.gz
下载地址:?http://sourceforge.net/project/showfiles.php?group_id=87941&package_id=91948&release_id=642101
这三个文件都要下载,为的只是编译出一个mcrypt.so。哎!
然后把程序上传到服务器上(当然,如果你从linux上服务器直接下载的,那就不用上传了,这不废话么)
tar zxvf libmcrypt-2.5.8.tar.gz //解压
cd libmcrypt-2.5.8 //进目录里,然后就开始安装了。
下面开始安装,三个文件都是一样的流程
./configure
make
make install

然后按照 增加mbstring模块一样 --|

找到php的源码包 /usr/local/src/php-5.2.14
php安装目录是/usr/local/php
# cd /usr/local/src/php-5.2.14/ext/mcrypt/
# /usr/local/php/bin/phpize
# ./configure –with-php-config=/usr/local/php/bin/php-config
# make
# make install
执行完毕后在php.ini里增加extension=mcrypt.so
重启web服务器, 看一下phpinfo, 应该支持mcrypt了

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template