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
-
just follow devdocs.magento.com/guides/v2.2/install-gde/….lalit mohan– lalit mohan2018年05月01日 04:45:32 +00:00Commented May 1, 2018 at 4:45
3 Answers 3
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.
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
Right now you need to enable/install mcrypt php extension follow @inrsaurabh
- check system requirement meet http://devdocs.magento.com/guides/v2.2/install-gde/system-requirements-tech.html
- set configuration http://devdocs.magento.com/guides/v2.3/install-gde/prereq/php-settings.html
- complete guideline further for installation http://blog.chapagain.com.np/magento-2-install-via-composer-and-command-line-cli/