Having migrated websites from a PHP 5.2 server, there are complaints about mcrypt not being available under PHP 5.6. I note that if I downgrade to PHP 5.4 mcrypt is enabled.
I'm aware that there seem to be some opinion out there that mcrypt is abandonware, but at this point that is not my concern. Widely-used web applications out there are using it, rightly or wrongly.
I tried enabling mcrypt for a single domain by adding ...
... to the foot of that domain's php.ini file (/home/USER/etc/php5.6/php.ini) and restarting Apache. However, this had no effect.
I tried creating a file named "50-mcrypt.ini" in /etc/opt/rh/rh-php56/php.d with the following contents:
Now, while that INI file is included after restarting Apache, there is no "mcrypt" section in the output of phpinfo.
Mcrypt is installed on the server:
Installing package(s) with command /bin/yum -y install php-mcrypt .. Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.linode.com * extras: mirrors.linode.com * updates: mirrors.linode.com Package php-mcrypt-5.4.16-2.el7.x86_64 already installed and latest version Nothing to do .. install complete.
How do I include mcrypt in the PHP 5.6 configuration?