Mcrypt installed but doesn't show up on PHPINFO
Question
I think I managed to install mcrypt lib. The files are in place, but it looks like the library doesn't run at all.
Tried to add:
extension=mcrypt.so
to PHP.INI; no good. Any help?
Solution
Have you tried restarting Apache? It won't recognise the new installed module until you do so AFAIK. Also, you've written you "think" you've installed it - did you use eg apt-get or yum to install it (eg apt-get install php-mcrypt
) or just download it?
OTHER TIPS
Anyone actually looking for an answer to this on Ubuntu OS greater than 13, you have to run
php5enmod mcrypt
and then restart apache. This is new and follows the same route you would use to enable apache modules as well.
I also had this same problem.
Sometimes it doesn't work when you add in /etc/php.d/mcrypt.ini
add it in /etc/php.ini , the main php config file
Restart apache
You are done.