- Plesk for Linux
The following error appears when attempting to Install Magento 2.1 from Domains > Example.com > Applications
PLESK_ERROR: Error: The following error has occurred during the installation of application:
Installation of magento at http://example.com/ failed. Non-zero exit status returned by script. Output stream: 'PHP Fatal error: Uncaught Exception: Deprecated Functionality: Function mcrypt_module_open() is deprecated in /var/www/vhosts/example.com/httpdocs/vendor/magento/framework/Encryption/Crypt.php on line 54 in /var/www/vhosts/example.com/httpdocs/vendor/magento/framework/App/ErrorHandler.php:61
#0 /var/www/vhosts/example.com/httpdocs/vendor/magento/framework/Encryption/Crypt.php(54): Magento\Framework\App\ErrorHandler->handler(8192, 'Function mcrypt...', '/var/www/vhosts...', 54, Array)
#1 /var/www/vhosts/example.com/httpdocs/vendor/magento/framework/Encryption/Encryptor.php(401): Magento\Framework\Encryption\Crypt->__construct('af545b5948f0c4a...', 'blowfish', 'ecb', false)
#2 /var/www/vhosts/example.com/httpdocs/vendor/magento/framework/Encryption/Encryptor.php(313): Magento\Framework\Encryption\Encryptor->getCrypt('af545b5948f0c4a...', 0, false)
#3 /var/www/vhosts/example.com/httpdocs/vendor/magento/module-config/Model/Confi in /var/www/vhosts/example.com/httpdocs/vendor/magento/framework/App/ErrorHandler.php on line 61
The domain example.com has configured PHP 7.1 or superior.
Magento 2.1 is not compatible with 7.1 or superior according to their system requirements.
The installation process should confirm that a compatible PHP version is used, this has been considered as a software issue with bug ID APSI-1327 that will be fixed in upcoming updates.
As a workaround:
- Log into Plesk
- Navigate to Domains > Example.com > PHP Settings
- And select a compatible PHP version such has: 5.6 or 7.0