While setting up a php project on CentOS 6, I came across an error “Fatal error: Call to undefined function mcrypt_encrypt()”.
I thought mcrypt is not installed and that should be an easy fix. Just a quick “yum install php-mcrypt”. Nope. It was already installed. After digging around for a while, installing, uninstalling, rebooting etc, I checked a config file /etc/php.d/mcrypt.ini.