Posts Learn Components new Snippets new Categories Tags About
/

How to Install Mcrypt PHP Extension for Laravel Application

Learn how to install Mcrypt PHP Extension on your system to run Laravel Project

Created on Oct 01, 2021

22 views

To install Mcrypt PHP extension you can generally make use of the pecl command.

For macOS


On macOS Big Sur you can run the following command and it will automatically install the Mcrypt PHP Extension.
pecl install mcrypt
Once it's installed you should add "extension=mcrypt.so" to php.ini and restart PHP.

For Ubuntu


For Ubuntu, that's running PHP version 8  you can run the command below.
sudo apt install php8.0-mcrypt
sudo phpenmod mcrypt
new

If you like our tutorial, do make sure to support us with some coffee. We need the juice to write the content during the night 🤙🏻