yum install epel-release //扩展包更新包
yum update //更新yum源
yum install php-mcrypt
service httpd restart//重启apache 不重启不生效