Website shows 500 Internal Server Error: PHP Warning: PHP Startup: Unable to load dynamic library

Created:

2016-12-12 03:46:54 UTC

Modified:

2017-08-08 13:44:58 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Website shows 500 Internal Server Error: PHP Warning: PHP Startup: Unable to load dynamic library

Applicable to:

  • Plesk 12.5 for Windows

Symptoms

  • Website shows 500 Internal server error

  • There are a lot of errors in Event Viewer related to PHP modules:

    The description for Event ID 4 from source PHP-5.6.18 cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

    If the event originated on another computer, the display information had to be saved with the event.

    The following information was included with the event:

    php[12520]
    PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files (x86)\\Parallels\\Plesk\\Additional\\PleskPHP56\\ext\\php_pdo_mysqli.dll' - The specified module could not be found.
    ("C:\\Program Files (x86)\\Parallels\\Plesk\\Additional\\PleskPHP56\\php-cgi.exe")
  • When running the command which lists all enabled modules in this PHP, it also shows this error:

    C:\\Program Files (x86)\\Parallels\\Plesk\\Additional\\PleskPHP56>php.exe -m
    PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files (x86)\\Parallels\\Plesk\\Additional\\PleskPHP56\\ext\\php_pdo_mysqli.dll' - The
    specified module could not be found.
    in Unknown on line 0
    [PHP Modules]
    bcmath
    calendar
    Core
    ctype
    curl
    ..............

Cause

The modules mentioned in error messages are enabled in corresponding php.ini file, but the corresponding library does not exist in the folder defined by extension_dir parameter.

Resolution

If you do not need this extension, you can just comment out the corresponding directive in php.ini file. For example, if you need to modify php.ini of PHP 5.6 supplied by Plesk repositories, open %plesk_dir%Additional\\PleskPHP56 , find php.ini file in it and comment out the directive which enables the module mentioned in the error message:

;extension=php_pdo_mysqli.dll

Note: In case there are no modules mentioned in the error in the php.ini file, make sure that there is no custom PHP installation on the server.

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