2
votes

I can't see mcrypt in phpinfo() in section "Additional .ini files parsed". 'php_mcrypt' have been installed. I use CentOs with nginx with PHP 5.3.3.

In /etc/php.d/mcrypt.ini I wrote extension=mcrypt.so.

I tried to change the extension path in php.ini (ex extension=/usr/lib64/php/modules/mcrypt.so), but it still doesn't work.

1
in your phpinfo(), what value do you have in the "Scan for additional .ini files" field? - Lorenzo Marcon
I see this path: /etc/php.d - Jacek Kiernicki
just stupid questions, but: 1) does the mcrypt.so file exists and is in the right path? 2) did you restart nginx after your changes to ini files? - Lorenzo Marcon
hehe, of course mcrypt.so file exists and I restarted nginx after every change :) - Jacek Kiernicki
someone else here in SO had a similar problem in CentOS, and he installed mcrypt from sources, maybe this could work for you as well? stackoverflow.com/a/20552188/636348 (remove yum version before) - Lorenzo Marcon

1 Answers

3
votes

You are using Nginx, so i assume you are using php-fpm? If so you need to restart the php-fpm service in order to reload the plugins.

Restarting the nginx wont reload the php.ini