[solved] Mcrypt PHP extension required.
Posted by: tek (---.w90-37.abo.wanadoo.fr)
Date: April 10, 2020 01:49AM

Hello,

I have the error :

Mcrypt PHP extension required.

on my virtualhost page: my_page:8080

and when i check Mcrypt in
PHP>Extension php > Mcrypt
Mcrypt is enabled

idon't now where the problem is ?

FOR INFOS :
Im on windows subsytem
i work on debian terminal

when i do : php -i | grep mcrypt ::

PHP Warning: Module 'mcrypt' already loaded in Unknown on line 0
/etc/php/7.3/cli/conf.d/mcrypt.ini
Registered Stream Filters => zlib.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, mcrypt.*, mdecrypt.*, convert.iconv.*
mcrypt
mcrypt support => enabled
mcrypt_filter support => enabled
mcrypt.algorithms_dir => no value



Edited 1 time(s). Last edit at 04/11/2020 02:11PM by tek.

Options: ReplyQuote
Re: Mcrypt PHP extension required.
Posted by: tek (---.w90-37.abo.wanadoo.fr)
Date: April 10, 2020 02:16AM

Also i dl the php_mcryp.dll and is still not working.
I have no clue whats going on.

But one thing i notice is that my wamp server php version is 7.3.12
And when i do php -v :

PHP 7.3.14-1~deb10u1 (cli) (built: Feb 16 2020 15:07:23) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.14, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.14-1~deb10u1, Copyright (c) 1999-2018, by Zend Technologies


im on 7.3.14
maybe this is an indice idk

thanks fotr your help smiling smiley

Options: ReplyQuote
Re: Mcrypt PHP extension required.
Posted by: Otomatic (Moderator)
Date: April 10, 2020 09:03AM

Hi,

The mycrypt.dll extension does not exist in any of the PHP versions of Wampserver.
The mycrypt extension must be installed separately by PECL
See [www.php.net]

> /etc/php/7.3/cli/conf.d/mcrypt.ini
This is Linux, and Wampserver is Windows.

> PHP 7.3.14-1~deb10u1 (cli) (built: Feb 16 2020 15:07:23) ( NTS )
All versions of PHP provided with Wampserver or "addon" are TS (Thread Safe), none is NTS. This version of PHP does not come from Wampserver.

This is in no way a problem attributable to Wampserver.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Mcrypt PHP extension required.
Posted by: tek (---.w90-37.abo.wanadoo.fr)
Date: April 10, 2020 09:49AM

Thanks for your answer smiling smiley


I installed mycrypt separately by PECL on my debian
But i also download mycrypt.dll extension and put it in C:\wamp64\bin\php\php7.3.12\ext

I deleted my /etc/php/7.3/cli/conf.d/mcrypt.ini
So there is no more error of :
PHP Warning: Module 'mcrypt' already loaded in Unknown on line 0

So now i have right conf :


$ php -i | grep mcrypt

Registered Stream Filters => zlib.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, mcrypt.*, mdecrypt.*, convert.iconv.*
mcrypt
mcrypt support => enabled
mcrypt_filter support => enabled
mcrypt.algorithms_dir => no value => no value
mcrypt.modes_dir => no value => no value

$ php -v

PHP 7.3.14-1~deb10u1 (cli) (built: Feb 16 2020 15:07:23) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.14, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.14-1~deb10u1, Copyright (c) 1999-2018, by Zend Technologies


you said that is not a problem attributable to Wampserver.

So where i can find where the error come when i load my virtualhost laravel page ?
I diden't find a solution anywhere of why the error Mcrypt PHP extension required. show on my page

Options: ReplyQuote
Re: Mcrypt PHP extension required.
Posted by: tek (---.w90-37.abo.wanadoo.fr)
Date: April 10, 2020 09:53AM

Should i ask on the laravel forum instead of this forum because my version of php does not match.

Maybe i have to change my php version on my debian to the same that on my wampserveur ?

Options: ReplyQuote
Re: Mcrypt PHP extension required.
Posted by: tek (---.w90-37.abo.wanadoo.fr)
Date: April 10, 2020 10:40AM

I kinda reslove the issue,

The problem was from Laravel

When i was installing the laravel insteller, i did
composer global require "laravel/installer=~1.1"

but that was an old version

You have to install the last version with

composer global require laravel/installer


Now i don't have any issue with Mcrypt PHP extension required.

Options: ReplyQuote
Re: Mcrypt PHP extension required.
Posted by: tek (---.w90-37.abo.wanadoo.fr)
Date: April 10, 2020 10:42AM

How can i close the conv like on other forums?

Options: ReplyQuote
Re: Mcrypt PHP extension required.
Posted by: Otomatic (Moderator)
Date: April 10, 2020 11:16AM

Hi,

Edit the first message and modify Subjet to add [solved]

You realize the complexity of your question:
- Wampserver in a Debian virtual machine
- Laravel and mycript installed on a PHP on Debian
- Mix of PHP TS and NTS versions
- All talking to each other!

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Mcrypt PHP extension required.
Posted by: tek (---.w90-37.abo.wanadoo.fr)
Date: April 11, 2020 02:09PM

Yeah smiling smiley

Putting my thoughts on "paper" made me better understand the problem and bc of that i was able to find a solution

Options: ReplyQuote


Sorry, only registered users may post in this forum.