Question

Enable Mcrypt extension in NginX?

Posted July 27, 2014 39k views

Hi all. After i installed phpMyAdmin on NginX, i found that mcrypt extension wasn’t enabled yet. I tried enabling mcrypt extension by this command :“sudo php5enmod mcrypt” and restart nginx. But it didn’t work. Please help me :)

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.

×
3 answers

Hi Hoang!

I had the same issue however I am not using phpMyAdmin. I found this and it worked like a charm..

http://www.davekz.com/mcrypt-php-fpm-ubuntu/

apt-get install php5-mcrypt

Create symlink to mods-avaliable

ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available/mcrypt.ini

Enable It.

php5enmod mcrypt

Restart php-fpm

service php5-fpm restart

Restart nginx

sudo service nginx restart
Submit an Answer