How to install the php-mcrypt module on a Plesk server?
Connect to a Plesk server via SSH.
Install the module:
on CentOS/RHEL-based distributions:
The php-mcrypt package is available in RPMforge and EPEL repositories. Add the repository to the server and install the package using the yum utility. In this example, we are using the EPEL repo:
# yum install epel-release
# yum install php-mcrypt
on Debian/Ubuntu-based distributions:
Find the system PHP version:
# php -v
Run the command:
if PHP 5.x version is installed:
# apt-get install php5-mcrypt
if PHP 7.x version is installed:
# apt-get install php-mcrypt
To make the mcrypt extension available for existing websites, update PHP settings for all domains with the command:
# /usr/local/psa/bin/php_settings -u
This extension will also appear in Plesk at Tools & Settings > PHP Settings > [php] by OS vendor.