• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

Resolved PHP warning after mcrypt installation

Xyn Host

New Pleskian
I am getting this Error after following this thread to install mcrypt:

How to install the php-mcrypt module on a Plesk server

I replaced7.2 with 7.3 everywhere in the commands.

Still this error is showing on the Domains which are using PHP 7.3 now.

  • PHP Warning: PHP Startup: Unable to load dynamic library 'mcrypt.so' (tried: /opt/plesk/php/7.3/lib64/php/modules/mcrypt.so (/opt/plesk/php/7.3/lib64/php/modules/mcrypt.so: cannot open shared object file: No such file or directory), /opt/plesk/php/7.3/lib64/php/modules/mcrypt.so.so (/opt/plesk/php/7.3/lib64/php/modules/mcrypt.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Success: Plugin already updated.
 
You can't follow this article for PHP7.3 because you'll see:

# /opt/plesk/php/7.3/bin/pecl install mcrypt-1.0.1
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
pecl/mcrypt requires PHP (version >= 7.2.0, version <= 7.3.0, excluded versions: 7.3.0), installed version is 7.3.7
No valid packages found
install failed

You have to install the latest mcrypt version 1.0.2 with PHP7.3 support:

# /opt/plesk/php/7.3/bin/pecl install mcrypt-1.0.2
 
Back
Top