Dhaval Koradiya
Dhaval Koradiya

Reputation: 434

How to install mcrypt extension in xampp

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 ?

Upvotes: 25

Views: 143661

Answers (5)

lionel muskwe
lionel muskwe

Reputation: 31

Do not provide a version number when you run the command:

composer create-project laravel/laravel your-project-name 4.2.*

Use this instead:

composer create-project laravel/laravel example-app

Upvotes: 0

you should install mcrypt with pecl on your xampp server:

./bin/pecl install mcrypt

then add to php.ini this code (extension block):

extension=mcrypt.so 

Upvotes: 2

mrdev
mrdev

Reputation: 647

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.

Upvotes: 42

MrMoxy
MrMoxy

Reputation: 442

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.

Upvotes: 6

FelipeEduardo
FelipeEduardo

Reputation: 56

Right from the PHP Docs: PHP 5.3 Windows binaries uses the static version of the MCrypt library, no DLL are needed.

http://php.net/manual/en/mcrypt.requirements.php

But if you really want to download it, just go to the mcrypt sourceforge page

http://sourceforge.net/projects/mcrypt/files/?source=navbar

Upvotes: -3

Related Questions