How to troubleshoot a problem with two PHP extensions missing during Magento2 installation: Ext-intl and ext-xsl

Source: Internet
Author: User
Tags intl xsl composer install magento2

Problem phenomenon:
[Root@localhost magento2]# pwd
/home/wwwroot/default/magento2
[Root@localhost magento2]# Composer Install
Loading Composer repositories with the package information
Installing dependencies (including Require-dev) from lock file
Warning:the lock file is a not-to-date with the latest changes in Composer.json. Getting outdated dependencies. Run Update to
Update them.
Your requirements could not being resolved to an installable set of packages.
Problem 1
-The requested PHP extension Ext-intl * is missing from your system. Install or Enable PHP ' s intl extension.
Problem 2
-The requested PHP extension ext-xsl * is missing from your system. Install or enable PHP ' s XSL extension.
Solve the problem:
Enter cd/home/freeman/tools/lnmp1.2-full/src/php-5.6.9/ext/intl/
Execute $phpize &&./configure--with-php-c/local/php/bin/php-config && make && make install
In this configure process will be error, install the appropriate LIB on the line.
$yum Install Libicu-devel-y
$yum Install Libxslt-devel-y
cd/home/freeman/tools/lnmp1.2-full/src/php-5.6.9/ext/xsl/
$phpize &&./configure--with-php-c/local/php/bin/php-config && make && make install
Modify PHP.ini
$vi/usr/local/php/etc/php.ini
Increase:
Extension=xsl.so
Extension=intl.so
Then restart the PHP service/etc/init.d/php-fpm restart
Go back to/home/wwwroot/magento2 and execute it.
$composer Install
[Root@localhost magento2]# Composer Install
Loading Composer repositories with the package information
Installing dependencies (including Require-dev) from lock file
-Installing Magento/magento-composer-installer (0.1.5)
downloading:100%
-Installing braintree/braintree_php (2.39.0)
downloading:100%
This will be a success.

The above describes how to solve the Magento2 installation process is missing two PHP extension problems: Ext-intl and ext-xsl, including aspects of the content, I hope to be interested in PHP tutorial friends helpful.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.