Install php-mcrypt on CentOS 6

前端 未结 18 2252
感动是毒
感动是毒 2020-12-02 13:15

I have been trying to install php-mcrypt for a while now. Everytime I get the \"No package php-mcrypt available.\" returned to me. Here\'s what I\'ve tried:

         


        
18条回答
  •  囚心锁ツ
    2020-12-02 13:32

    I had the same issue, and found the previous suggestions gave me enough info to get it working on my server. The following is what I did:

    1) Install EPEL repository (From: http://www.rackspace.com/knowledge_center/article/installing-rhel-epel-repo-on-centos-5x-or-6x):

    wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
    wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
    sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
    

    2) Install it via:

    yum update
    yum install php-mcrypt*
    

    The yum update updated the repository reference on my server then the 2nd command got what I needed :)

    3) Restart your webserver. For my apache install I did:

    service httpd restart
    

提交回复
热议问题