[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Installing mcrypt while using Microsoft's Web Platform Installer

Posted on 2010-01-02
Medium Priority
Last Modified: 2013-12-13
Hi all..

I've looked around everywhere for an answer. I can't quite get mcrypt to work on my PHP installation that was installed using the Web Platform Installer.

I've copied libmcrypt.dll into my System32 and SysWOW64 dir. I've also copied php_mcrypt.dll into the ext directory that was listed in my php info output. I've also added extension=php_mcrypt.dll into my php.ini.

Nothing works! Any ideas?
Question by:kiettyyyy
  • 3

Author Comment

ID: 26161400
Oh, yeah, I've followed everything on this other ExpertsExchange question. http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/PHP_Windows/Q_24766107.html

None of it worked. Apparently they had the same problem as I did.
LVL 37

Assisted Solution

meverest earned 200 total points
ID: 26163895

scan your local disks for all versions on php.ini - sometimes the system will be using a different version than what you are editing.


Author Comment

ID: 26163985
I'm sure that I am editing the correct PHP file. It's the one that the PHP info says is currently loaded. I've changed this file for the past couple months and my settings went into effect.

Accepted Solution

kiettyyyy earned 0 total points
ID: 26168658
Alright, this is how I fixed it.

If you attempt to add the mhash or mcrypt extension into your PHP.ini file manually after installing PHP via WPI, PHP won't recognize the mcrypt or mhash extension.

In order to get mcrypt working properly, you have to go into your Control Panel, Programs, find your PHP installation, hit "Change" or "Modify", find mcrypt from the list and have it install onto the disk. Restart your IIS instance.

Good luck! This worked perfect for me!

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses
Course of the Month19 days, 22 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question