我正在尝试为Magento 2开发设置一个新的流浪汉框,但是在运行时composer install
,出现以下错误:
Problem 1
- The requested PHP extension ext-gd * is missing from your system. Install or enable PHP's gd extension.
Problem 2
- The requested PHP extension ext-mcrypt * is missing from your system. Install or enable PHP's mcrypt extension.
Problem 3
- The requested PHP extension ext-curl * is missing from your system. Install or enable PHP's curl extension.
Problem 4
- The requested PHP extension ext-intl * is missing from your system. Install or enable PHP's intl extension.
Problem 5
- The requested PHP extension ext-xsl * is missing from your system. Install or enable PHP's xsl extension.
Problem 6
- The requested PHP extension ext-mbstring * is missing from your system. Install or enable PHP's mbstring extension.
Problem 7
- The requested PHP extension ext-openssl * is missing from your system. Install or enable PHP's openssl extension.
Problem 8
- The requested PHP extension ext-zip * is missing from your system. Install or enable PHP's zip extension.
我已经尝试使用sudo apt-get install php7.0-mcrypt
etc 安装这些扩展中的每一个,但是我仍然收到上面指出我已安装的扩展仍然丢失的错误。我已经重新启动了Apache2。有任何想法吗?
PHP的-v
PHP 7.0.8 (cli) (built: Jun 26 2016 15:14:18) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
@BarryCarlyon使用屏幕截图更新了问题-如果您需要更多信息,请告诉我。如何确保“ Web”正在使用PHP7?
—
wickywills
您可以运行
—
Atish Goswami
php -m
并查看作为输出获得的已安装扩展的列表。
我看不到任何“错误”消息,因此不确定Magento为何未安装模块。PHPinfo提供了正确的输出,确认它在php7上并安装了那些模块。
—
Barry Carlyon
<?php phpinfo();
页面以检查并确认内容