- Plesk for Linux
How to install the
Connect to the server via SSH.
Install the module:
For CentOS, Scientific Linux, and Oracle Linux
# 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
Note: The module will be installed for PHP version by OS vendor. Plesk PHP handlers are shipped with mcrypt module.
Note: 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