- Plesk for Linux
How to install the php-mcrypt module on a Plesk server?
Note: Following instructions below, the module will be installed for PHP version supplied by OS vendor. Plesk PHP handlers are shipped with the mcrypt module by default. PHP handlers provided by Plesk can be selected in Domains > example.com > PHP settings.
Connect to a Plesk server via SSH.
Install the module:
for CentOS/RHEL-based distributions:
# yum install epel-release
# yum install php-mcrypt
for Debian/Ubuntu-based distributions:
Find out 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
If the mcrypt module has not appeared at Tools & Settings > PHP Settings > [name of PHP handler] > Extensions page, refresh server components by opening Tools & Settings > Server Components and clicking Refresh.
To make mcrypt module available for existing websites, update their PHP settings with the command:
# /usr/local/psa/bin/php_settings -u
Warning: The 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