Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install mcrypt extension in xampp

Tags:

how to install mcrypt in xampp on windows?

My PHP Version 7.0.5 and xampp pack have not mcrypt extension so how can i install mcrypt on xampp ?

like image 890
Dhaval Koradiya Avatar asked May 30 '16 09:05

Dhaval Koradiya


People also ask

How do I know if mcrypt is installed?

You can also achieve this same screen by viewing a php file that has: phpinfo(); somewhere in the code. In this screen, simply search for the string "mcrypt support". If installed, you will see a box that says "enabled".

What is mcrypt PHP extension?

The mcrypt PHP module provides an interface to the mcrypt library and supports encryption. The cPanel-provided EasyApache 4 profiles include the mcrypt PHP module by default.

How can you install the Php_mcrypt dll file?

Copy the "Php_mcrypt. dll" file you extracted and paste it into the "C:\Windows\System32" folder. If your system is 64 Bit, copy the "Php_mcrypt. dll" file and paste it into "C:\Windows\sysWOW64" folder.


2 Answers

First, you should download the suitable version for your system from here: https://pecl.php.net/package/mcrypt/1.0.3/windows

Then, you should copy php_mcrypt.dll to ../xampp/php/ext/ and enable the extension by adding extension=mcrypt to your xampp/php/php.ini file.

like image 73
mrdev Avatar answered Oct 22 '22 14:10

mrdev


The recent versions of XAMPP for Windows runs PHP 7.x which are NOT compatible with mbcrypt. If you have a package like Laravel that requires mbcrypt, you will need to install an older version of XAMPP. OR, you can run XAMPP with multiple versions of PHP by downloading a PHP package from Windows.PHP.net, installing it in your XAMPP folder, and configuring php.ini and httpd.conf to use the correct version of PHP for your site.

like image 35
MrMoxy Avatar answered Oct 22 '22 13:10

MrMoxy