UMAIR ALI
UMAIR ALI

Reputation: 1115

How to install MCrypt PHP Extension on CentOS 7.0 x64

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

HTTP request sent, awaiting response... 404 Not Found 2014-09-18 13:25:27 ERROR 404: Not Found.

yum install php-mcrypt

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

No package php-mcrypt available.

Error: Nothing to do

Upvotes: 3

Views: 12294

Answers (3)

Yogendra
Yogendra

Reputation: 51

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*

Upvotes: 5

UMAIR ALI
UMAIR ALI

Reputation: 1115

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

Upvotes: 0

Maciej Asembler
Maciej Asembler

Reputation: 674

You may need to install EPEL repository.

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

Then try to install 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

yum update

yum install php-mcrypt*

Upvotes: 1

Related Questions