How to install MCrypt PHP extension on CentOS 7.0 x64

I am using laravel framework. The laravel project execution requirement is MCrypt. i am trying to install but i am facing error

Sent HTTP request awaiting response ... 404 Not found 2014-09-18 13:25:27 ERROR 404: Not found.

yum install php-mcrypt

Loaded plugins: fastestmirror

Loading mirrored speeds from a cached host file

  • base: centos.someimage.com

  • Additional features: mirror.mit.edu

  • updates: mirror.lug.udel.edu

No php-mcrypt packages available.

Error: do nothing

+3


source to share


3 answers


wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm

rpm -ivh epel-release-7-5.noarch.rpm

yum install php-mcrypt*

      



+5


source


You may need to install the EPEL repository.

http://www.tecmint.com/how-to-enable-epel-repository-for-rhel-centos-6-5/

Then try installing the mcrypt extension



Open terminal as root (su)

wget http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm

rpm -ivh epel-release-7-0.2.noarch.rpm

Update

yum

yum install php-mcrypt *

+1


source


wget http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-1.noarch.rpm

sudo yum install epel-release-7-1.noarch.rpm

yum install php-mcrypt*

restart Apache

sudo service httpd restart

      

0


source







All Articles