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

后端 未结 18 606
别那么骄傲
别那么骄傲 2020-12-24 06:02

When installing Magento 2.0.2 via composer getting this error:

Problem 1
 - Installation request for magento/product-enterprise-edition 2.0.2 -> satisfiab         


        
相关标签:
18条回答
  • 2020-12-24 06:22

    It helped my case to install the right curl version

    sudo apt-get install php5-curl
    
    0 讨论(0)
  • 2020-12-24 06:23

    This solved my issues

    sudo apt-get install php7.1-xml
    

    or

    sudo apt-get install php7.2-xml
    
    0 讨论(0)
  • 2020-12-24 06:23

    @Verse answer works fine. But there is a small thing I would like to add. instead of installing php5-mbstring, php5-gd, php5-intl, php5-xsl. This answer is based on @Regolith answer: Package has no installation candidate .

    Install according to your php-version.

    First check which php version you have by sudo php -v. I have php7 so the result is:

    PHP 7.0.28-0ubuntu0.16.04.1 (cli) ( NTS )
    Copyright (c) 1997-2017 The PHP Group
    Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
       with Zend OPcache v7.0.28-0ubuntu0.16.04.1, Copyright (c) 1999-2017, by Zend Technologies
    

    since i have php7, I will do the following to list the php packages:
    sudo apt-cache search php7-*

    this returned

    libapache2-mod-php7.0 - server-side, HTML-embedded scripting language (Apache 2 module)
    php-all-dev - package depending on all supported PHP development packages
    php7.0 - server-side, HTML-embedded scripting language (metapackage)
    php7.0-cgi - server-side, HTML-embedded scripting language (CGI binary)
    php7.0-cli - command-line interpreter for the PHP scripting language
    php7.0-common - documentation, examples and common module for PHP
    php7.0-curl - CURL module for PHP
    php7.0-dev - Files for PHP7.0 module development
    php7.0-gd - GD module for PHP
    php7.0-gmp - GMP module for PHP
    php7.0-json - JSON module for PHP
    php7.0-ldap - LDAP module for PHP
    php7.0-mysql - MySQL module for PHP
    php7.0-odbc - ODBC module for PHP
    php7.0-opcache - Zend OpCache module for PHP
    php7.0-pgsql - PostgreSQL module for PHP
    php7.0-pspell - pspell module for PHP
    php7.0-readline - readline module for PHP
    php7.0-recode - recode module for PHP
    php7.0-snmp - SNMP module for PHP
    php7.0-sqlite3 - SQLite3 module for PHP
    php7.0-tidy - tidy module for PHP
    php7.0-xml - DOM, SimpleXML, WDDX, XML, and XSL module for PHP
    php7.0-xmlrpc - XMLRPC-EPI module for PHP
    libphp7.0-embed - HTML-embedded scripting language (Embedded SAPI library)
    php7.0-bcmath - Bcmath module for PHP
    php7.0-bz2 - bzip2 module for PHP
    php7.0-enchant - Enchant module for PHP
    php7.0-fpm - server-side, HTML-embedded scripting language (FPM-CGI binary)
    php7.0-imap - IMAP module for PHP
    php7.0-interbase - Interbase module for PHP
    php7.0-intl - Internationalisation module for PHP
    php7.0-mbstring - MBSTRING module for PHP
    php7.0-mcrypt - libmcrypt module for PHP
    php7.0-phpdbg - server-side, HTML-embedded scripting language (PHPDBG binary)
    php7.0-soap - SOAP module for PHP
    php7.0-sybase - Sybase module for PHP
    php7.0-xsl - XSL module for PHP (dummy)
    php7.0-zip - Zip module for PHP
    php7.0-dba - DBA module for PHP
    

    now to install packages run the following command with your desired package

    sudo apt-get install -y php7.0-gd, php7.0-intl, php7.0-xsl, php7.0-mbstring
    

    Note: php7.0-mbstring, php7.0-gd php7.0-intl php7.0-xsl are the package that are listed above.

    UPDATE: Don't forget to restart apache/<your_server>

    sudo service apache2 reload
    
    0 讨论(0)
  • 2020-12-24 06:23

    I used below to fix issue

    yum install -y php-intl php-xsl php-opcache php-xml php-mcrypt php-gd php-devel php-mysql php-mbstring php-bcmath

    0 讨论(0)
  • 2020-12-24 06:24

    ubuntu users try this

    apt-get install php7.2 libapache2-mod-php7.2 php7.2-common php7.2-gd php7.2-mysql php7.2-curl php7.2-intl php7.2-xsl php7.2-mbstring php7.2-zip php7.2-bcmath php7.2-soap php-xdebug php-imagick
    

    this is work for php 7.2 but you can change this 7.2 to 5.2 and run this command it is work.

    0 讨论(0)
  • 2020-12-24 06:24

    When I went to create a laravel project, I got this problem.

    After googling, I got this solution.

    I followed these steps:

    Step 1: sudo apt-get install -y php7.2-gd

    Step 2: sudo apt-get install php7.2-intl

    Step 3: sudo apt-get install php7.2-xsl

    Step 4: sudo apt-get install php7.2-mbstring

    0 讨论(0)
提交回复
热议问题