You are not logged in.
I uncommented "extension=mcrypt.so" in /etc/php/php.ini and installed mcrypt (pacman -S mcrypt)
but when using phpMyAdmin i get "Cannot load mcrypt extension. Please check your PHP configuration." and mcrypt is not listed in phpinfo(); either.
mcrypt.so is located in "/usr/lib/php/20060613/mcrypt.so" with the other modules.
What am i missing here?
Last edited by Envil (2008-12-24 19:30:31)
Offline
Install libtool as well.
Offline
thanks ^^
Offline
You probably need to install the php-mcrypt package - that's what worked for me.
Also for latest versions of PHP (5.3), file locations have changed (the modules dir is now /usr/lib/php/modules) so be sure to update your /etc/php/php.ini accordingly.
sudo pacman -S php-mcrypt
Offline
This worked for me:
Check the archlinux.org/packages database for libmcrypt and click on "View the file list for libmcrypt" under Package Contents.
Then check your php.ini file to see if the paths under mcrypt.algorithms_dir and mcrypt.modes_dir correspond to the location of libmcrypt.so you get from the 'Package Contents' file list.
In my case the default in php.ini was set to '/usr/local/lib/libmcrypt' but now, when you install the libmcrypt package, 'libmcrypt.so' goes in '/usr/local/libmcrypt.so' so i had to uncomment mcrypt.algorithms_dir mcrypt.modes_dir and point them to the right location.
Offline