AMH 社区首页
AMH社区 - 开放自由有价值的社区
[求助帖] AMH2.0 安装mcrypt扩展(Libmcrypt/mhash/mcrypt) |
|
---|---|
admin |
admin 发表于 2012-11-23 20:37:47
适用版本 AMH2.0 & AMH2.01
----------------------------------------- 1、相关依赖包下载与安装 Libmcrypt (libmcrypt-2.5.8.tar.gz) mhash (mhash-0.9.9.9.tar.gz) mcrypt (mcrypt-2.6.8.tar.gz) # cd /usr/local # wget http://amysql-amh.googlecode.com/files/libmcrypt-2.5.8.tar.gz # wget http://amysql-amh.googlecode.com/files/mhash-0.9.9.9.tar.gz # wget http://amysql-amh.googlecode.com/files/mcrypt-2.6.8.tar.gz 编译安装Libmcrypt # tar -zxvf libmcrypt-2.5.8.tar.gz # cd libmcrypt-2.5.8 # ./configure # make && make install 编译安装mhash # cd /usr/local # tar -zxvf mhash-0.9.9.9.tar.gz # cd mhash-0.9.9.9 # ./configure # make && make install 编译安装mcrypt # cd /usr/local # tar -zxvf mcrypt-2.6.8.tar.gz # cd mcrypt-2.6.8 # LD_LIBRARY_PATH=/usr/local/lib ./configure # make && make install # cd /usr/local # rm -rf libmcrypt-2.5.8.tar.gz mhash-0.9.9.9.tar.gz mcrypt-2.6.8.tar.gz 2、PHP动态编译,扩展mcrypt # cd /usr/local # wget http://amysql-amh.googlecode.com/files/php-5.3.13.tar.gz # tar -zxvf php-5.3.13.tar.gz # cd php-5.3.13/ext/mcrypt # /usr/local/php/bin/phpize # ./configure --with-php-config=/usr/local/php/bin/php-config # make && make install # cd /usr/local # rm -rf php-5.3.13.tar.gz php-5.3.13 3、添加配置参数至php.ini # vi /etc/php.ini 添加: [mcrypt] extension = /usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/mcrypt.so 4、重启面板完成。 /etc/init.d/amh-start
点赞,加油! (2分)
2012-11-23 20:37:47 1
AMH官方号 2011~2021 (10周年) |
amher |
楼主好~我想问2.0和4.2的安装方法一样吗?谢了!
回复
2014-09-22 15:11:29 2
|