You are not logged in.

#1 2008-12-24 15:31:12

Envil
Member
Registered: 2008-11-18
Posts: 52

[solved] mcrypt and php

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

#2 2008-12-24 17:04:08

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: [solved] mcrypt and php

Install libtool as well. wink

Offline

#3 2008-12-24 19:30:19

Envil
Member
Registered: 2008-11-18
Posts: 52

Re: [solved] mcrypt and php

thanks ^^

Offline

#4 2009-10-08 12:19:07

motnerog
Member
Registered: 2009-09-21
Posts: 2

Re: [solved] mcrypt and php

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

#5 2011-05-06 19:20:56

FCsernik
Member
Registered: 2011-05-06
Posts: 1

Re: [solved] mcrypt and php

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

Board footer

Powered by FluxBB