您的位置:首页 > 运维架构 > Linux

How to Install php-mcrypt on CentOS 6.2

2012-03-12 18:10 507 查看
遇到的问题:

PHP Fatal error: Call to undefined function mcrypt_get_block_size()

搜索了一下,是php-mcrypt这个扩展的问题,在CentOS6.2上需要自己看装。

按照下面的步骤安装

1、下载 epel repository :

[root@centos62 ~]# [root@centos62 ~]# wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm [root@centos62 ~]# wget http://ftp.riken.jp/Linux/fedora/epel/RPM-GPG-KEY-EPEL-6[/code] 
2、安装 epel repository :

[root@centos62 ~]# rpm --import RPM-GPG-KEY-EPEL-6
[root@centos62 ~]# rpm -i epel-release-6-5.noarch.rpm


3、yum方式安装

[root@centos62 ~]# yum install php-mcrypt -y


4、重启httpd服务

参考原文链接:

http://www.ehowstuff.com/how-to-install-php-mcrypt-on-centos-6-2/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: