Article ID: 1352, created on Oct 6, 2008, last review on May 11, 2014

  • Applies to:
  • Plesk 8.x for Linux/Unix


Apache can be started, but I see warnings in the error_log, such as: 

"PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/' -  /usr/lib/php/modules/ cannot open shared object file: No such file or directory in Unknown on line 0"

The module name may differ from the one listed in this error (


This error indicates that PHP cannot open a module listed in its configuration files with the "extension" directive. The error can be related to any PHP module, such as:,,,,,,,,,,,, etc.


If you deleted the problem module, or you do not need it to be loaded, you can avoid this message by commenting this module loading string (in this example it is "") in the /etc/php.ini and /etc/php.d/* files.


If you wish to use this module, it should be placed into a PHP extension directory that is configured with the extension_dir directive in /etc/php.ini and listed in the error you get. Usually, this is done automatically when you install the appropriate module package into the system. In our example, the module corresponds to the php-pgsql package (for, it will be php-imap; for, it will be php-mysql, etc.). So, if the package that provides this module is not installed in the system, you should install it using the OS package manager. For example, for RPM:

# rpm -Uvh php-pgsql-x.x.x-xx.x.rpm

b8ef5052d936e902043e41759118114e a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF