我正在尝试在运行 Centos 7、Apache 2.4.6、MariaDB 和 PHP v5.6.9 的远程 Linux 服务器上安装 Magento 2 DRC。当我尝试安装 Composer 时,我收到以下消息:
$ cd /var/www/html/magento2 && composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested PHP extension ext-intl * is missing from your system.
我已经安装了 ext-intl
使用:
yum list php*intl
和
yum install php-intl
但仍然给我同样的信息。
我已经尝试过各种其他安装来解决这个问题,但都无济于事。任何建议将不胜感激,因为它正在拖延项目。
降级到 PHP 5.5 有帮助吗?
最佳答案
您可以按照以下步骤在 Centos 7 上安装 magento2。 http://gotechnies.com/install-magento2-centos-7/
在 Centos Distro 上安装 Magento 2(M2) 有几个简单的步骤。
第 1 步-: 首先,我们需要为 php5.6、mysql-server5.6 和 phpmyadmin 添加几个 EPEL 存储库。
# EPEL Repository for php5.6 $ rpm -iUvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm $ rpm -iUvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm # EPEL Repository for mysql-server5.6 $rpm -iUvh http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm # EPEL Repository for phpMyadmin on Centos 7 $ rpm -iUvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm $ yum -y update
第 2 步-:
安装 Apache、php5.6、mysql-server、phpmyadmin 等 Require 包。
$ yum install-y httpd php mysql-server phpmyadmin php56w-mcrypt php56w-intl php56w-xsl git
要在 apache 2.4 中允许 phpmyadmin 添加行
要求全部授予
阅读更多去上面的链接
关于php - 在 Centos 7 上为 composer 安装 PHP intl 扩展时发生冲突,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30369802/