- Plesk Onyx for Linux
PHP version 7.1 or higher is set in domain's PHP Settings.
The following error message appears on the website or in the domain's error logfile:
CONFIG_TEXT: main.CRITICAL: 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
Installation of Magento 2.1 fails with the following error message appears:
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.
PLESK_ERROR: Unable to install the app because its installation requirements are not met. Contact your hosting provider to resolve this problem.
PHP extension: The 'mcrypt' extension was not found.
The mcrypt extension has been removed from PHP starting from version 7.1. For more information, see:
- PHP Documentation: Deprecated features in PHP 7.1.x
- Magento Installation Guide: Magento 2.1.x technology stack requirements: PHP
In Plesk go to to Domains > example.com > PHP Settings > switch PHP version to 7.0 > then click OK.
Upgrade Magento to version 2.2 or greater, which supports PHP 7.1.