Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP CURL not loading in WAMP after upgrading PHP from 5.3.4 to 5.3.22

I have the exact same issue as PHP cURL not working - WAMP on Windows 7 64 bit

CURL doesn't load at Apache restart, with message: "PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.3.22/ext/php_curl.dll' - The operating system cannot run %1.\r\n in Unknown on line 0"

Except that I am not installing 5.3.13 as in the other thread but I am attempting to upgrade PHP in an existing WAMP installation from 5.3.4 to 5.3.22, both x64 VC9 TS on a Win 2008R2 64 bits, running Apache 2.2.4 x64.

I did the following steps:

  • stopped Apache
  • unzip php5.3.22 in /wamp/bin/php5.3.22;
  • updated php.ini, httpd.conf and the 2 Wamp config files to point to the new PHP version;
  • updated php5ts.dll and php5isapi.dll in Apache\bin with the new ones
  • updated Windows PATH to point to php5.3.22 folder instead of php5.3.4
  • restarted Apache -> CURL load error message

I could try most of the answers provided in other threads except the one from Matthieu:

Go to http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/ and download the curl version that corresponds to your php version under "Fixed curl extensions:".

...as there is no "Fixed curl extension" for 5.3.22 in Anindya's site.

Does anyone know if there is need or not for a "fixed curl lib" after 5.3.13? and where I can find it?

like image 455
user3001220 Avatar asked Nov 17 '13 09:11

user3001220


1 Answers

Either there are some typos in your question or you have done a few things wrong.

The new PHP should have gone into \wamp\bin\php\php5.3.22 updated php5ts.dll and php5isapi.dll in Apache\bin with the new ones This is done by Switching versions in WAMP, you dont do it manually

updated Windows PATH to point to php5.3.22 folder instead of php5.3.4 There is no need to put PHP on the PATH, in fact it reduces the ability of WAMPServer to switch between various versions of PHP.

Have a look at this it may help How to install a version of PHP into an existing WAMP install

like image 120
RiggsFolly Avatar answered Oct 20 '22 18:10

RiggsFolly