Webmail shows 500 Internal Server Error: Unable to load dynamic library

Created:

2016-12-12 03:40:43 UTC

Modified:

2017-08-08 13:14:35 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Webmail shows 500 Internal Server Error: Unable to load dynamic library

Applicable to:

  • Plesk Onyx for Linux

Symptoms

Unable to access webmail. 500 Internal Error is shown.

Execution of this command gives a lot of errors:

# php -v

In /var/log/httpd/error_log it is possible to find such errors after trying to access webmail:

PHP Warning:  PHP Startup: Unable to load dynamic library './curl.so' - ./curl.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library './dom.so' - ./dom.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library './fileinfo.so' - ./fileinfo.so: cannot open shared object file: No such file or directory in Unknown on line 0

Cause

System PHP misconfiguration. Modules path was manually set to incorrect one.

Resolution

By default, modules directory should be commented:

# grep -ir "extension_dir" /etc/php.ini
;extension_dir = "./"

Comment it if not.

Remove extension_dir string from /etc/psa-webmail/roundcube/php.ini and /etc/psa-webmail/horde/horde/php.ini files.

Have more questions? Submit a request
Please sign in to leave a comment.