Posts Learn Components Snippets Categories Tags Tools 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

195 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

If you like our tutorial, do make sure to support us by being our Patreon or buy us some coffee ☕️

)