• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1566
  • Last Modified:

PHP and Curl installation on Windows 2003 server

I have a server running Windows 2003 with IIS and PHP.

PHP works fine, unless the page trys to use CURL in which case this warning pops up: Unable to load dynamic library 'c:\php\extensions\php_curl.dll'

I have tried to install CURL and here's what I've done:
1. Verified that php.ini extension_dir is set to "c:\php\extensions"
2. Verified that c:\php\extensions contains the file php_curl.dll
3. Verified that the extension=php_curl.dll line in php.ini is uncommented.

I have also, though I don't know if was needed, copied libeay32.dll and ssleay32.dll to the c:\windows\system32 directory and to the c:\php directory.

After all that, the error still pops up.

I have gone to a command prompt and done a php -m and a few odd things occur.

First, I get this error:
The procedure entry point zend_hex_strtod could not be located in the dynamic link library php5ts.dll.

Second, I get the infamous:
Unable to load dynamic library 'c:\php\extensions\php_curl.dll'

I'm not real familiar with PHP and esspecially not familiar with curl. Any thoughts?
  • 2
1 Solution
Are you sure you use the same php_curl.dll that came with the php-installation you made. Looks like the version of the extension does not match to the installed php version?
XponexAuthor Commented:
Yes, positive. I even went and re-downloaded it just to be sure.
XponexAuthor Commented:
I have found the solution, the problem was a corrupted original install. To fix it I totally removed PHP from my server and then did a manual PHP install instead of the automated install. Once I did that and made sure that PHP was working correctly, then I copied the libeay32.dll and ssleay32.dll files to my windows\system32 directory. I also added c:\php to the evirnoment variable PATH. I then set the php.ini extension_dir variable to c:\php\ext and then I uncommented the extension=php_curl.dll line. I was still getting an error, so I rebooted the system, and all is working great now.
Closed, 500 points refunded.
Community Support Moderator
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now