Apache Friends Support Forum

It is currently 06. September 2010 02:20

All times are UTC + 1 hour




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: ~~ mcrypt - solution ~~
PostPosted: 28. April 2007 04:08 
Offline

Joined: 27. April 2007 01:44
Posts: 7
Hello everyone!

I have posted this topic to explain to anyone who might have been as confused as i was for a while on how to setup mcryt, because sincerily there arn't many recent topics explaining this.

so if you log into phpMyAdmin and it says Cannot load mcrypt extension. Please check your PHP configuration, then you have to do the following:


Go to *path to XAMPP*\Apache\bin\php.ini and cahnge

Code:
;extension=php_mcrypt.dll
;extension=php_mcrypt_filter.dll

to

extension=php_mcrypt.dll
extension=php_mcrypt_filter.dll



Now go to *path to XAMPP*\php\php.ini and change

Code:
;extension=php_mcrypt.dll
;extension=php_mcrypt_filter.dll

to

extension=php_mcrypt.dll
extension=php_mcrypt_filter.dll



Save both files, close and voila!

that should make mcrypt work now :D

P-S: For those of you that are REALLY new to this, you are basically only taking the semi-colons ( ; ) off from the begining of the line.


Top
 Profile  
 
 Post subject: Still having troubles...
PostPosted: 12. June 2007 18:20 
Offline

Joined: 12. June 2007 16:46
Posts: 1
Hi Starrie. I've followed your post on how to enable encryption in XAMPP. I'm still having troubles using the libraries.
this is my code so far:

<?php
$llave = "key";
$entrada = "This is my encripted message";

$datos_cifrados = mcrypt_ecb (MCRYPT_3DES, $llave, $entrada, MCRYPT_ENCRYPT);
echo $datos_cifrados;
?>

This code gives me this message:

Warning: mcrypt_ecb() [function.mcrypt-ecb]: Attempt to use an empty IV, which is NOT recommend in C:\xampplite\htdocs\Samples\ejemplo.php on line 5
ˆã¿Îó’ë


Top
 Profile  
 
 Post subject:
PostPosted: 13. June 2007 13:24 
Offline

Joined: 25. May 2007 15:08
Posts: 9
Starrie I'm having the same trouble, i was hoping your solution would work. I did the changes you suggest and i still get the same error when i open phpmyadmin. Is there more to edit that was not mention here?
:roll:


Top
 Profile  
 
 Post subject: add Initialisation Vector
PostPosted: 22. August 2007 01:26 
Offline

Joined: 07. December 2003 11:16
Posts: 3
Copying from the Manual

String mcrypt_ecb ( int $cipher, string $key, string $data, int $mode )

string mcrypt_ecb ( string $cipher, string $key, string $data, int $mode [, string $iv] )


Use the second method. Just check wikipedia for IV to understand the theory. Goes back to analogue encryption devices
http://en.wikipedia.org/wiki/Initialization_vector


Top
 Profile  
 
 Post subject: Re: ~~ mcrypt - solution ~~
PostPosted: 01. March 2009 01:17 
Offline

Joined: 01. March 2009 01:07
Posts: 1
PROBLEM: cannot load mcrypt extension. please check your php configuration

I have done as suggested at http://ca3.php.net/manual/en/mcrypt.setup.php 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 at this forum and now mcrypt is working.

OTHER ADVICE: (not exactly as from other contributor, but found my way from there..)

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.
Lesson again is you got to look around. so many different situations! custom, custom..


Top
 Profile  
 
 Post subject: Re: ~~ mcrypt - solution ~~
PostPosted: 01. March 2009 02:19 
Offline

Joined: 25. April 2006 17:06
Posts: 3356
hotdog wrote:
Please adjust the directory location per your own installation.
This is an XAMPP forum not a wamp forum and your paths are totally irrelevant as is your post in a very old topic.


Top
 Profile  
 
 Post subject: Re: ~~ mcrypt - solution ~~
PostPosted: 12. July 2009 04:27 
Offline

Joined: 12. July 2009 04:22
Posts: 1
Be sure to appropriately set the extension_dir directive.

example
extension_dir= "c:\xampp\php\ext"


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group