I'm trying to set up a new dev environment to match a production system running PHP 5.4 on RHEL 6.5. Because PHP 5.4 is EOL and because I couldn't figure out which magic combination of repos were necessary to install PHP 5.4 on my new RHEL dev server, I opted to go to PHP 5.6 on the development server. I managed to install 5.6 and bring in my Laravel 4.1 project, but when I loaded it in my browser, I received the following: Mcrypt PHP extension required.
I have verified that the php56u-mcrypt-5.6.14-1.ius.el6.x86_64
package is installed; I have verified that /etc/php.d/20-mcrypt.ini
is loading the extension; I have verified that php -m | grep mcrypt
shows that the module is loaded; I have verified that php -i | grep mcrypt
shows that /etc/php.d/20-mcrypt.ini
is in fact being loaded and that mcrypt support
registers as enabled
; I have restarted apache more times than I can remember; and I have even verified that /usr/lib64/php/modules/mcrypt.so
exists. The strange thing is that I do NOT receive this message when trying to run composer commands, which seems to be a common thread elsewhere.
Where this leaves me is, I have a seemingly working installation of mcrypt on the command line but not through Apache, which suggests that the problem is there, not with my installation of mcrypt per se. But the apache config file I'm using on my new test server is no different from the one in use on my production server (thanks, Puppet!) and I never had this problem on the production server. I'm stumped. Any suggestions?