Unable to load dynamic library 'curl'
Posted by: pgoiffon (---.w2-7.abo.wanadoo.fr)
Date: January 15, 2024 04:40PM

Hello,

I updated my wamp server to 3.3.3 by installing/updating Visual C++ redis with the VisualCppRedist AIO then applying the updater, all of those found on [wampserver.aviatechno.net].
And then I installed the 8.1.27, 8.2.14 and 8.3.1 PHP addons.

When switching to those new versions, the PHP error log contains an error about the curl php extension :

[15-Jan-2024 10:28:42 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: c:/Dev/wamp64/bin/php/php8.1.27/ext/curl (Le module spécifié est introuvable), c:/Dev/wamp64/bin/php/php8.1.27/ext/php_curl.dll (La procédure spécifiée est introuvable)) in Unknown on line 0

Same result with the embedded 8.1.26 PHP version.

In the phpinfo indeed there are no curl section.

But for all af these PHP versions :
- in both phpForApache.ini and php.ini the curl extension is enabled and the ext dir is valid
- there is indeed a php_curl.dll in the ext dir

My previous 8.1.24 and 8.2.11 versions are working well (no error on startup, the curl ext appears in phpinfo, Composer detects the extension).

What can I do ?

Options: ReplyQuote
Re: Unable to load dynamic library 'curl'
Posted by: Otomatic (Moderator)
Date: January 15, 2024 06:34PM

Hi,

What is the Apache version?

Try right-click -> Restart from scratch.

PS : Il existe un forum francophone.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Unable to load dynamic library 'curl'
Posted by: pgoiffon (---.rezaxess.fr)
Date: January 16, 2024 11:24AM

Hello,

Wamp tells me Apache 2.4.46 (both systray menu and localhost home page)


Using the "restarting from scratch" didn't change : still the same error in the php error log and no curl in phpinfo
I forgot to tell I also rebooted my laptop multiple times

Options: ReplyQuote
Re: Unable to load dynamic library 'curl'
Posted by: Otomatic (Moderator)
Date: January 16, 2024 11:40AM

Hi,

> Apache 2.4.46
Too old to work with the latest PHP versions.

Install Apache 2.4.58

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Unable to load dynamic library 'curl'
Posted by: pgoiffon (---.rezaxess.fr)
Date: January 16, 2024 12:58PM

Many thanks, it is working like a charm !!

I downloaded the Apache 2.4.58 x64 addon on the Wamp site, after restarting Wamp and selection the new version, everything is ok.

Thanks for your very valuable help !

Options: ReplyQuote
Re: Unable to load dynamic library 'curl'
Posted by: Kashell (---.prairiemeadows.com)
Date: February 09, 2024 09:12PM

I am having a similar issue. I just updated my dev server to Apache 2.4.58, moving over my certs and httpd.conf file. I am running PHP 8.0.28 because of some legacy code concerns, and now it is giving the exact same extension errors it gave pgoiffon above.

PHP Startup: Unable to load dynamic library 'curl' (tried: c:\Intra\PHP\ext\curl (The specified module could not be found)

c:\Intra\PHP\ext\php_curl.dll (The specified module could not be found)) in Unknown on line 0

I know the .dlls are there, and I checked php.ini, the full path is there for extension_dir.

I am missing something, and I dont know what it is.

Options: ReplyQuote
Re: Unable to load dynamic library 'curl'
Posted by: Otomatic (Moderator)
Date: February 10, 2024 11:46AM

> c:\Intra\PHP\ext\php_curl.dll

It has nothing to do with Wampserver

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.