- Plesk Onyx for Linux
PHP version equal or higher than 7.1 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.2. For more information, see:
- PHP Documentation: mcrypt
- Magento Installation Guide: Magento 2.1.x technology stack requirements: PHP
- Log in to Plesk UI
Go to Domains > example.com > PHP Settings > switch PHP version lower than 7.1 > click OK.