- Plesk for Linux
- Unable to install Magento application:
PLESK_ERROR: Error: The following error has occurred during the installation of application: Installation of magento at http://example.tld/ 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.tld/httpdocs/vendor/magento/framework/Encryption/Crypt.php on line 54.
- PHP version 7.1 or higher is used.
- The following error may be shown on the website with already installed Magento or in website logs:
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
The mcrypt extension has been removed from PHP starting from the version 7.1.
For more information, see:
Change the PHP version to 7.0 or 5.6 at Plesk > Domains > example.com > PHP Settings.