Mcrypt installed but doesn't show up on PHPINFO

偶尔善良 提交于 2019-12-12 01:31:11

问题


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?


回答1:


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?




回答2:


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.




回答3:


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.



来源:https://stackoverflow.com/questions/1450686/mcrypt-installed-but-doesnt-show-up-on-phpinfo

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!