Applicable to:
- Plesk for Linux
Symptoms
-
An attempt to install Magento 2.1 from Applications menu fails with the error:
The following error has occurred during the installation of application: Installation of magento at https://example.com failed. Non-zero exit status returned by script. Output stream: 'PHP Fatal error: Uncaught Exception: Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/example.com/httpdocs/vendor/zendframework/zend-stdlib/src/ArrayObject.php on line 426 in /var/www/vhosts/example.com/httpdocs/vendor/magento/framework/App/ErrorHandler.php:61
-
PHP version higher than 7.0 is assigned for a domain at Domains > example.com > PHP Settings page.
Cause
Magento 2.1 supports only PHP 7.0.
Resolution
- Log in to Plesk.
- Go to Domains > example.com > PHP Settings and switch to PHP version 7.0.
Note: in case PHP 7.0 is not installed, install it according to this KB guide.
Comments
0 comments
Please sign in to leave a comment.