Installing mcrypt while using Microsoft's Web Platform Installer

Posted on 2010-01-02
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

    Author Comment

    Oh, yeah, I've followed everything on this other ExpertsExchange question.

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

    Assisted Solution


    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

    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

    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!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
    These days socially coordinated efforts have turned into a critical requirement for enterprises.
    The viewer will learn how to dynamically set the form action using jQuery.
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    760 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

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now