Tomer Lichtash
Tomer Lichtash

Reputation: 9262

Mcrypt installed but doesn't show up on PHPINFO

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?

Upvotes: 0

Views: 7489

Answers (4)

ronnefeldt
ronnefeldt

Reputation: 2203

You also need to check if you actually edited apache2/php.ini not cli/php.ini.

The full path is /etc/php/7.4/apache2/php.ini if you use Ubuntu 20.04.

Upvotes: 0

kalikid021
kalikid021

Reputation: 210

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.

Upvotes: 3

Randeep
Randeep

Reputation: 543

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.

Upvotes: 1

richsage
richsage

Reputation: 27102

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?

Upvotes: 1

Related Questions