• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1549
  • 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?
0
Xponex
Asked:
Xponex
  • 2
1 Solution
 
hernst42Commented:
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?
0
 
XponexAuthor Commented:
Yes, positive. I even went and re-downloaded it just to be sure.
0
 
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.
0
 
Vee_ModCommented:
Closed, 500 points refunded.
Vee_Mod
Community Support Moderator
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

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