Install Magento Community Edition in PHP 7.2.1

Asked

Viewed 257 times

-1

I am trying to install Magento Community Edition 2.2.3 but it appears the following error: Your PHP version is 7.2.1. The required PHP version is 7.0.2|7.0.4|~7.0.6|~7.1.0 Can anyone tell if Magento already has support for this version of PHP or if I have to downgrade the version.

1 answer

0

You’ll have to do the downgrade PHP. Magento uses the functions mcrypt which were plundered in the PHP 7+ and became obsolete in PHP 7.2+, but you can still install via PECL and try to execute.

To install extensions via PECL, you will need to have the php-devel, after installing it, just run the command below on your terminal.

pecl install "extname"

Once this is done, PECL will download the extension’s source code and then compile it. Now just open your php.ini and add the content below and then restart PHP.

; Linux
extname.so

; Windows
extname.dll
  • If I install the extensions I won’t need to downgrade??

  • Installing the extension, you don’t need to. You only need to change the composer.json magento

Browser other questions tagged

You are not signed in. Login or sign up in order to post.