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.

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

use root user or sudo wget rpm -ivh epel-release-7-5.noarch.rpm yum install --enablerepo=“epel” php-mcrypt

Hello, all

First you’ll need to add the EPEL and REMi repository:

sudo yum -y install
sudo yum -y install

Then you go ahead and install the MCrypt extension:

sudo yum install php-mcrypt

If you haven’t installed PHP yet run this first:

sudo yum update

sudo yum install php php-cli

If you want to install the basic PHP extensions run this:

sudo yum install php php-cli php-fpm php-mysqlnd php-zip php-devel php-gd php-mcrypt php-mbstring php-curl php-xml php-pear php-bcmath php-json

The current PHP version should be 7.4. You can check the current verson using php -v

The expected output will be

$ php -v
PHP 7.4.0 (cli) (built: Nov 26 2019 20:13:36) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies

To view enabled modules, run:

php --modules or the short version php -m

Hope that this helps! Regards, Alex

Mcrypt has been moved for PHP72. Follow this guide ::