dismiss Step into the future! Click here to switch to the beta php.net site
downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Requirements> <Introduction
[edit] Last updated: Fri, 28 Jun 2013

view this page in

Installing/Configuring

Table of Contents



Requirements> <Introduction
[edit] Last updated: Fri, 28 Jun 2013
 
add a note add a note User Contributed Notes Installing/Configuring - [13 notes]
up
1
bobeck at lycos dot com
3 years ago
To make sure that mcrypt doesn't fail to load when
using Windows XP , Apache 2 and php 5, even if all the required procedure to install it has been accomplished already, copy libmcrypt.dll, which is normally in the php main directory, into the php\ext directory.
up
0
kmasaryk
3 years ago
Also on Ubuntu, make sure you actually have php5-mcrypt installed. You can install it with:

sudo apt-get install php5-mcrypt

If you get any errors, you may need to enable the 'universe' repository, explained here:
https://help.ubuntu.com/community/Repositories/Ubuntu
up
0
miroox-moo at yahoo dot co dot id
4 years ago
thanks to :
 rskret at gmail dot com
01-Mar-2009 12:04
PROBLEM: cannot load mcrypt extension. please check your php configuration

this setting my experience for xampp :D
I do the same step but with a little modified

for the first, stop all xampp services, and then do this step :

copy file libmcrypt.dll from D:\xampplite\php\
to : C:\WINDOWS\system32

open these 2files below :
D:\xampplite\apache\bin\php.ini
D:\xampplite\php\php.ini

change this text :
;extension=php_mcrypt.dll
to
extension=php_mcrypt.dll
(ie. remove ; )

Note :
Please adjust the directory location per your own installation.
up
0
ch0wnag3 AT gmail DOT com
4 years ago
On Windows installations, for the dynamic extension (extension=php_mcrypt.dll) to load properly, you must copy libmcrypt.dll from your PHP root folder (e.g. C:\PHP) to the following location:

C:\WINDOWS\system32

With this done, the dynamic extension will load up just fine.
up
-1
nsantana at NOSPAMS dot gmail dot com
8 months ago
Using PHP version "PHP Version 5.3.10-1ubuntu3.4" and Ubuntu 12.0.4 on Apache2...

Make sure you have mcrypt installed and active on your php5 install. Use "sudo apt-get install php5-mcrypt" to install, that should sort the issue.
up
-1
dork
3 years ago
On ubuntu 8 (hardy), the mcrypt library seems to be here.

/usr/lib/php5/20060613/mcrypt.so

So I just created mcrypt.ini in /etc/php5/conf.d and added this one liner.

extension=mcrypt.so
up
-1
opensuse10 dot 3 at gmail dot com
2 years ago
On opensuse 11.3 64 bits
/usr/lib64/php5/extensions
up
-1
Ilia
4 years ago
For Ubuntu Linux add a line:
extension=php_mcrypt.so
to the file /etc/php5/apache2/php.ini
and restart network:
sudo /etc/init.d/networking restart
up
-1
AJP
4 years ago
(Relating to XAMPP Lite and MySQL)

PROBLEM (seen on MySQL admin page): cannot load mcrypt extension. please check your php configuration

SOLUTION:  With XAMPP Lite 1.7.1 all I had to do was stop the server, edit D:\xampplite\php\php.ini and uncomment (remove the semicolon) the following line:

extension=php_mcrypt.dll

Elsewhere in the file is a line setting the path to the extension directory (i.e. where php_mycrypt.dll is located) -- search for extension_dir.  It should look something like:

extension_dir = "\xampplite\php\ext\"

Obviously, adjust accordingly for your own drive and directory structure.
up
0
VtSoftware; info_AT_vtsoftware_DOT_hu
6 days ago
Windows 7; 64bit

Download libmcrypt.dll:
http://files.edin.dk/php/win32/mcrypt/libmcrypt.dll

Copy this downloaded file to "extension_dir" directory and restart server.

Works for me. :)
up
-2
biapar at redconsulting dot it
3 years ago
Under IIS 7.5 - Win2k8r2 you must copy libmcrypt.dll under C:\Program Files (x86)\PHP
up
-2
erik at 321x dot com
3 years ago
With Windows 7 (64 bits) I needed to uncomment the mcrypt line as well, so:
extension=php_mcrypt.dll

And after that I've copied the libmcrypt.dll to c:\Windows.

Apache restart (with administrator rights of course) and there you go.
up
-3
rskret at gmail dot com
4 years ago
PROBLEM: cannot load mcrypt extension. please check your php configuration

I have done as suggested by the contributor before me and copied libmcrypt.dll from F:\wamp\bin\php\PHP52~1.8
to C:\WINDOWS\system32 . This did not work on it's own. I found other advice as follows and now mcrypt is working.

OTHER ADVICE:

Go to F:\wamp\bin\php\PHP52~1.8\php.ini
change ;extension=php_mcrypt.dll
to      extension=php_mcrypt.dll
(ie. remove ; )

now go to the following 2 files and do the same:
F:\wamp\bin\php\PHP52~1.8\phpForApache.ini
F:\wamp\bin\apache\APACHE~1.11\bin\php.ini

Please adjust the directory location per your own installation.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites