- Plesk for Linux
How to install the
php-mcrypt module on Plesk server?
Note: Following instructions below, the module will be installed for PHP version supplied by OS vendor. Plesk PHP handlers are shipped with mcrypt module. PHP handlers provided by Plesk can be selected in Domains > example.com > PHP settings.
Connect to the server via SSH.
Install the module:
For RedHat-based OSes:
# yum install epel-release
# yum install php-mcrypt
For Debian-based OSes:
Check the system PHP version:
# php -v
if PHP 5.x version is installed:
# apt-get install php5-mcrypt
if PHP 7.x version is installed:
# apt-get install php-mcrypt
mcryptmodule has not appeared on Tools & Settings > PHP Settings > [name of PHP handler] > Extensions page, it might be necessary to refresh server components by opening Tools & Settins > Server Components and pressing Refresh.
mcryptmodule available for existing websites, update their PHP settings by running:
# /usr/local/psa/bin/php_settings -u
Warning: mcrypt module is deprecated since PHP 7.2 and it will be moved out of core and into PECL: https://wiki.php.net/rfc/mcrypt-viking-funeral