Are you getting the PHP error below when loading any php website or script in CentOS?
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/module.so' - /usr/lib64/php/modules/module.so: cannot open shared object file: No such file or directory in Unknown on line 0
It seems there are slight error in CentOS during PHP mcrypt installation. To fix the problem, follow the step below;
1. go to PHP setting directory
# cd /etc/php.d
2. Edit the config file mcrypt.ini with your favorite editor
#vi mcrypt.ini
3. Change module.so to mcrypt.so
extension=mcrypt.so
Restart your apache service and boom, the error message is gone. I guess it should be fat finger error by the person who committed the code 😉