I'm not sure why your PHP.INI is any different than mine. Or why I did not need to use PHP5ENMOD.
This is how I solved the same problem:
1) Make sure it is installed on my distribution, which is not a problem for most people.
2) Check your PHP configuration to make sure it is loaded (this is not the case). Here is the code for the PHP configuration page:
<?php phpinfo(); ?>
Launch it in a browser. If MCrypt is enabled (this is NOT), you will see a whole table devoted to this, with related information (you will see this later):
mcrypt mcrypt support enabled mcrypt_filter support enabled Version 2.5.8 Api No 20021217 Supported ciphers cast-128 gost rijndael-128 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes Supported modes cbc cfb ctr ecb ncfb nofb ofb stream Directive Local Value Master Value mcrypt.algorithms_dir no value no value mcrypt.modes_dir no value no value
3) On the same page, find the location of your PHP.INI file. eg:
Configuration File (php.ini) Path /etc/php5/apache2 Loaded Configuration File /etc/php5/apache2/php.ini
My distribution had this file elsewhere, but for linux just add or uncomment so you have:
extension=mcrypt.so
Restart the Apache server to verify. Now you should check your configuration page and see MCRYPT loading.
Coffee123
source share