- Plesk for Linux
Some functions of the website are not working. The following PHP error can be observed:
Fatal error: Call to undefined function mcrypt_module_open() in /var/www/vhosts/example.com/httpdocs/some_website/script.php on line 10
The error similar to the following can be found in
[Fri Oct 20 05:32:12 2017] [error] [client 18.104.22.168] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/module.so' - /usr/lib64/php/modules/module.so: cannot open shared object file: No such file or directory in Unknown on line 0, referer: http://example.com/index.php?id=2302
Custom configuration is used for PHP handler.
PHP handler misconfiguration.
Connect to the server via SSH and correct the configuration. E.g., for the aforementioned example:
# cat /etc/php.d/mcrypt.ini
; Enable mcrypt extension module