0

I am trying install a clean version of Magento 2.2.3 using composer:

 composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition

This error is thrown:

 Problem 1
- Installation request for magento/product-community-edition 2.2.3 -> satisfiable by magento/product-community-edition[2.2.3].
- magento/product-community-edition 2.2.3 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
 To enable extensions, verify that they are enabled in your .ini files:
- /usr/local/etc/php/7.1/php.ini
 You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

What do I need to do to set up my development environment?

Thank you

asked Apr 30, 2018 at 16:06
1

3 Answers 3

1
composer create-project --repository-url=https://repo.magento.com/magento/project-community-edition --ignore-platform-reqs

The --ignore-platform-reqs flag will tell composer to forget about missing extensions and other PHP requirements and just do what you ask. I am assuming that you are simply creating the project locally but the actual PHP interpreter lives inside your VM, to which these files will be mounted.

answered May 1, 2018 at 4:27
0

I think you dont have mcrypt

sudo apt-get install php7-mcrypt 
sudo service apache2 restart

To check all the installed modules

maddy@maddy:~$ php -m
[PHP Modules]
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
intl
json
libxml
mbstring
mcrypt
mysqli
answered Apr 30, 2018 at 16:12
0

Right now you need to enable/install mcrypt php extension follow @inrsaurabh

  1. check system requirement meet http://devdocs.magento.com/guides/v2.2/install-gde/system-requirements-tech.html
  2. set configuration http://devdocs.magento.com/guides/v2.3/install-gde/prereq/php-settings.html
  3. complete guideline further for installation http://blog.chapagain.com.np/magento-2-install-via-composer-and-command-line-cli/
answered May 1, 2018 at 4:53

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.