0

I'm having a hell of a time getting Curl to work with PHP/Apache on my Windows XP 64-bit development box. I have PHP and Apache successfully installed, but when I tried to enable Curl I get the following error (twice) from PHP on Apache startup:

"PHP Startup: Unable to load dynamic library 'C:\php\ext\php_curl.dll' - The operating system cannot run %1."

I did uncomment the correct line in PHP.ini. I did move the two DLLs (php_curl.dll and ssleay32.dll) into my PHO root, into my System32, even my apache root - but no matter where I put them, PHP can't find them. I keep getting the error above. Anyone have any idea how to remedy this?

3 Answers 3

0

You said you put them in the root of your php directory, what about in c:\php\ext like the error message says? What are the permissions on the files?

1
  • The files have been in there since I installed PHP, and everything is writable. I installed MySQL with no problems. Jan 14, 2011 at 5:20
0

Open php.ini and look to what extension_dir directive point to.

0

I had similar issue when I installed php-8.2.17. After days of trying all the recommended online approaches, I redownloaded, and unzipped to a new folder. Then copied all the files in \ext (new) folder to my installed php\ext folder. Then, finally, PHPInfo showed curl was enabled. Hope this helps

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .