Question

Enable Mcrypt extension in NginX?

  • Posted July 27, 2014

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 :)

Subscribe
Share

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

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.

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

This comment has been deleted

awesome!