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

Manually Clear from Console / Command Line cPanel Exim Mail Queue

Clearing the Exim Mail Queue From Command Line   If the Exim mail queue on your server has...

Error: rpmdb open failed with cPanel

Fixing RPM Database Errors in cPanel   The error "rpmdb open failed" occurs when the RPM...

cPanel Max Defers Occurring for an Account

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

Create CXS Quarantine Directory

Creating a CXS Quarantine Directory   CXS (ConfigServer eXploit Scanner) quarantines...

VPS Time not Correct with Time Server

VPS Time Not Syncing With Time Server   If the time on your VPS is incorrect or drifting,...



Save 30% on web hosting - Use coupon code Hosting30