cPanel Account - PHP Startup: Unable to load dynamic library

PHP Startup Error: Unable to Load Dynamic Library

 

The error "PHP Startup: Unable to load dynamic library" in your error_log means PHP is trying to load an extension that is not installed or not compatible with your current PHP version.

 

Common Causes

  • PHP version change: Extensions compiled for one PHP version will not work with another. If you recently changed PHP versions in MultiPHP Manager, some previously enabled extensions may not be available for the new version.
  • Custom php.ini referencing a missing extension: If you have a custom php.ini or .user.ini file that loads an extension with extension=modulename.so, and that module does not exist for your PHP version, this error occurs.

 

How to Fix

  1. Check which extension is failing by reading the full error message (it includes the filename)
  2. If you have a custom .user.ini or php.ini in your public_html, remove or comment out the line that loads the missing extension
  3. If you need the extension, check cPanel > MultiPHP INI Editor to see which extensions are available for your PHP version and enable it there

 

If you are unsure which extension is causing the problem, contact support with the error message and we will resolve it.

  • 4 Users Found This Useful

Was this answer helpful?

Related Articles

Error: Multilib version problems found

Finished Dependency Resolution Error:  Multilib version problems found. This often means that...

FTP Failed: Service check failed to complete Unable to connect to port 21

The service “ftpd” appears to be down. The system failed to connect to this service’s TCP/IP...

cPanel Max Defers Occurring for an Account

While viewing exim_mainlog and seeing the following:   enforce_mail_permissions: Domain...

Clear cPanel Eximstats DB and Repairing the Eximstats DB

Over the time or due to spammers the eximstats database file may grow to a large size. To clear...

Remount /tmp with exec permission

Remounting /tmp With Execute Permission   On some cPanel servers, the /tmp partition is...



Save 30% on web hosting - Use coupon code Hosting30