1
I’m doing the installation of personnel in localhost, but when starting the installation of such, returns an error
PHP Extension mcrypt must be Loaded...
I’m a layman on the subject, someone knows how to solve ?
1
I’m doing the installation of personnel in localhost, but when starting the installation of such, returns an error
PHP Extension mcrypt must be Loaded...
I’m a layman on the subject, someone knows how to solve ?
0
The module mcrypt was already obsolete since PHP 5.5 (at least several of its functions) and was removed once and for all in PHP7.2, according to the link http://php.net/manual/en/intro.mcrypt.php:
Warning This Feature was DEPRECATED in PHP 7.1.0, and REMOVED in PHP 7.2.0.
Alternatives to this Feature include:
This message is coming to you because probably the version you’re using Magento is very old or else you are using PHP7 on your local machine.
There is no way to enable this module in PHP7, as it simply does not exist anymore for PHP7 and PHP5 if it is Windows only by downloading the .dll
from some external source, however what I recommend is that you update Magento!
If it is Ubuntu and PHP 5 you can try to install via repository (it may be available) through the command:
sudo apt-get install php5-mcrypt
Afterward:
sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available/mcrypt.ini
Then enable the extension using php5enmod and restart Apache:
sudo php5enmod mcrypt
sudo service apache2 reload
If something fails, especially in apt-get
is probably because Ubuntu has already removed this module from the repositories.
I think I’ll install a newer version then ..
i am Configuring an existing Magento project on WAMP server with PHP 7.2, and i am Getting the same error, can you Please Suggest how to resolve it
Hi @Vikky .. Upgrade Magento for lastet version or downgrade PHP for version 5.
Browser other questions tagged php magento xampp
You are not signed in. Login or sign up in order to post.
Are you trying to install in Ubuntu ?
– Fernando Souza
You need to insert mcypt into the local server http://php.net/manual/en/mcrypt.setup.php
– Erlon Charles
@Erloncharles I think the problem is the version of PHP, in PHP7.2 this was removed for good, since it was an obsolete module for some time.
– Guilherme Nascimento
@Guilhermenascimentop. he didn’t mention the php version he’s using, there’s no way to guess he’s using a recent or old version. But by error message the problem is the lack of this module.
– Erlon Charles
@Erloncharles is that when it comes exclusively to XAMPP, they do not use old versions of PHP for years, so I assumed the problem was because php7 ;)
– Guilherme Nascimento