Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

To enable extensions, verify that they are enabled in those .ini files - Vagrant/Ubuntu/Magento 2.0.2

When installing Magento 2.0.2 via composer getting this error:

Problem 1  - Installation request for magento/product-enterprise-edition 2.0.2 -> satisfiable by magento/product-enterprise-edition[2.0.2].  - magento/product-enterprise-edition 2.0.2 requires ext-gd * -> the requested PHP extension gd is missing from your system.  To enable extensions, verify that they are enabled in those .ini files:  - /etc/php5/cli/php.ini - /etc/php5/cli/conf.d/05-opcache.ini - /etc/php5/cli/conf.d/10-pdo.ini - /etc/php5/cli/conf.d/20-curl.ini - /etc/php5/cli/conf.d/20-imap.ini - /etc/php5/cli/conf.d/20-json.ini - /etc/php5/cli/conf.d/20-mcrypt.ini - /etc/php5/cli/conf.d/20-pdo_pgsql.ini - /etc/php5/cli/conf.d/20-pgsql.ini - /etc/php5/cli/conf.d/20-pspell.ini - /etc/php5/cli/conf.d/20-readline.ini  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode. 

I have installed php5-cli, php5-curl.

like image 786
Verse Avatar asked Mar 05 '16 14:03

Verse


People also ask

How do you check PHP extension is enabled in Ubuntu?

It is possible that an installed module has been disabled. In that case, it won't show up when running php -m , but it will show up in the list of installed Ubuntu packages. Modules can be enabled/disabled via the php5enmod tool ( phpenmod on later distros) which is part of the php-common package.


2 Answers

First installed sudo apt-get install php5-gd, then sudo apt-get install php5-intl and last one was sudo apt-get install php5-xsl. After that, it's installing as it should.

like image 121
Verse Avatar answered Sep 20 '22 20:09

Verse


This solved my issues

sudo apt-get install php7.1-xml 

or newer version (* = your php version )

sudo apt-get install php7.*-xml 
like image 22
ErcanE Avatar answered Sep 21 '22 20:09

ErcanE