PHP Warning: PHP Startup: How to Load Dynamic Library

Composer Installation PHP Warning: PHP Startup: Unable to load dynamic library 'gd2'

I guess you have just installed PHP 8. Open your php.ini and locate the line near the bottom of the file:

[PHP_GD2]
extension=php_gd2.dll

Change the extension name from php_gd2.dll to php_gd.dll (this should match the one existing in your ext directory) and save the php.ini. Run the Composer installation again.

(PHP 8 somehow renamed php_gd2 to php_gd.)

How to fix PHP Warning: PHP Startup: Unable to load dynamic library 'ext\\php_curl.dll'?

As Darren commented, Apache don't understand php.ini relative paths in Windows.

To fix it, change the relative paths in your php.ini to absolute paths.

extension_dir="C:\full\path\to\php\ext\dir"


Related Topics



Leave a reply



Submit