How to enable mcrypt for developing with Yii2

If you use mcrypt you need to install the following package on linux debian to enable mcrypt.

The easiest way is to install:

apt-get install php5-mcrypt

then restart apache2

service apache2 restart

then your Yii2 framework should not longer be complaining about missing mcrypt package.

If this does not work then sometimes you will need to run the following

php5enmod mcrypt

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s