CURL: Unable to load dynamic library
Posted by: xavier1980 (---.static.chello.nl)
Date: May 10, 2018 09:21PM

I've recently installed the PHP 7.1.17 add-on to my existing WAMP installation. However after selecting PHP 7.1.17 as the running version cUrl no longer seems to work. However cUrl still works when I select previous any of the versions (7.0.0 or 5.6.16).

The PHP error log says:
PHP Warning: PHP Startup: Unable to load dynamic library 'C:/wamp64/bin/php/php7.1.17/ext/php_curl.dll' - Kan opgegeven procedure niet vinden. in Unknown on line 0

The php_curl.dll file exists in the 'C:/wamp64/bin/php/php7.1.17/ext/' path. In the PHP.INI file and the phpForApache.ino file the "extension=php_com_dotnet.dll" line is uncommended (no semicolon). However when I create a php file and view phpinfo() cUrl does not show.

Please advice.

I'am running Windows 10 (x64) with WAMP 3.1.3 (x64) with Apache 2.4.17. The WAMP icon is GREEN.

Options: ReplyQuote
Re: CURL: Unable to load dynamic library
Posted by: Otomatic (Moderator)
Date: May 11, 2018 09:44AM

Hi,

Use at least Apache 2.4.23.
But, for recent PHP versions, it is best to always use the latest version of Apache : 2.4.33

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.4 32 bit - Apache 2.4.37 - PHP 7.2.12/7.1.24/7.0.32/5.6.38 - MySQL 5.7.23 - MariaDB 10.3.10
Wampserver 3.1.4 64 bit - Apache 2.4.37 - PHP 7.2.12/7.1.24/7.0.32/5.6.38 - MySQL 5.7.23 - MariaDB 10.3.10
PhPMyadmin 4.8.3 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote
Re: CURL: Unable to load dynamic library
Posted by: RiggsFolly (Moderator)
Date: May 11, 2018 10:10AM

As far as I am aware the `php_com_dotnet` extension has nothing to do with the `php_curl` extension so why did you mention that?

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.1.3 32bit & 64bit)
<Apache 2.4.29/2.2.31> <PHP 7.2/7.1/7.0/5.6/5.5/5.4> <MySQL 5.7.19/5.6.39/5.5.28>
<MariaDB 10.2.14> <phpMyAdmin4.8.1> <MySQL Workbench 6.3.10>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your MySQL databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: CURL: Unable to load dynamic library
Posted by: xavier1980 (---.ip.prioritytelecom.net)
Date: May 11, 2018 03:15PM

@RiggsFolly, you are right. I copied and pasted the wrong line. I ment "extension=php_curl.dll". (Double checked it just now).

@Otomatic, I installed the Apache : 2.4.33 update for WAMP and rebooted my PC. Unfortunately still the same problem with cURL.

Any other suggestions I could do or check?

Options: ReplyQuote
Re: CURL: Unable to load dynamic library
Posted by: Otomatic (Moderator)
Date: May 11, 2018 03:28PM

Hi,

> I installed the Apache : 2.4.33 update for WAMP
You need to switch to Apache 2.4.33 in place of Apache 2.4.17.

Left-Click Wampmanager tray icon -> Apache -> Version -> 2.4.33 (Click on 2.4.33)

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.4 32 bit - Apache 2.4.37 - PHP 7.2.12/7.1.24/7.0.32/5.6.38 - MySQL 5.7.23 - MariaDB 10.3.10
Wampserver 3.1.4 64 bit - Apache 2.4.37 - PHP 7.2.12/7.1.24/7.0.32/5.6.38 - MySQL 5.7.23 - MariaDB 10.3.10
PhPMyadmin 4.8.3 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote
Re: CURL: Unable to load dynamic library
Posted by: xavier1980 (---.ip.prioritytelecom.net)
Date: May 11, 2018 04:13PM

@Otomatic, yes I did also switch the Apache version in WAMP. But with both Apache versions I still get the Curl error. Strangely when I switch back to PHP version 7.0.0 cUrl works fine. But on PHP version 7.1.17 it doenst work sad smiley

Options: ReplyQuote
Re: CURL: Unable to load dynamic library
Posted by: Otomatic (Moderator)
Date: May 11, 2018 04:28PM

Hi,

- Verify that all VC ++ packages are installed and with the latest versions.
To do this, use the tool:
Checks VC++ packages installed
And you will find all the packages on [wampserver.aviatechno.net] in section Visual C++ Redistribuable Packages
Do not forget that if you have a 64 bit Windows, you must install both 32 and 64 bit versions of each package.
You must install each package "as an administrator", so right-click the exe file and then run as Administrator.
Do not use a previously loaded tool. Make a new download to make sure you are using the correct version.

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.4 32 bit - Apache 2.4.37 - PHP 7.2.12/7.1.24/7.0.32/5.6.38 - MySQL 5.7.23 - MariaDB 10.3.10
Wampserver 3.1.4 64 bit - Apache 2.4.37 - PHP 7.2.12/7.1.24/7.0.32/5.6.38 - MySQL 5.7.23 - MariaDB 10.3.10
PhPMyadmin 4.8.3 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote


Sorry, only registered users may post in this forum.