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

Failed to lock proc mutex: Permission denied

The error : Failed to lock proc mutex: Permission denied can occur when using mod_ruid2 with...

Repairing and Optimizing all MySQL and MariaDB Databases on the Server

From time to time you will find repairing and optimizing your databases are necessary. From a...

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...

Error: Multilib version problems found

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

ModSecurity: collection_store: Failed to access DBM file /var/cpanel/secdatadir/ip: Permission denied

The error Failed to access DBM file /var/cpanel/secdatadir/ip: Permission denied can occur on...



Save 30% on web hosting - Use coupon code Hosting30