Call to undefined function curl_init() Windows Server 2008

Posted on 2010-11-30
Last Modified: 2012-05-10

I cannot get Curl to work in PHP 5.2.14 on Windows Server 2008 64 bit.

I have FastCGI non threadsafe setup and working.

The extension is enabled, the extension_dir is set correctly and I have tried copying msvcr70, ssleay32 and libeay32 to both c:\php and c:\windows\system32.

Is Curl compatible with 64bit Windows?

I have tried php -m in command and I get the error zlib.dll is missing. Could this have something to do with it?

What can I do to get CURL working?

Question by:bromley_college
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
LVL 110

Expert Comment

by:Ray Paseur
ID: 34239220
Curl has to be compiled into PHP.  I do not know if it works with 64bit, but you could ask Haxx.
LVL 110

Expert Comment

by:Ray Paseur
ID: 34239232
LVL 110

Expert Comment

by:Ray Paseur
ID: 34239358
Hmm... See also this:

"There is now experimental support for x64 versions of PHP on Windows."
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 34239633
Any idea how I install the curl?

Ive downloaded the Win64 exe but get the error 'The application has failed to start becauses its side by side configuration is incorrect'



Accepted Solution

bromley_college earned 0 total points
ID: 34240127

Fixed. It turned out there is a bug in 5.2.14 and when you replace the php_curl.dll from version 5.12.13 it works:


LVL 110

Expert Comment

by:Ray Paseur
ID: 34240141

Author Closing Comment

ID: 34276722
found the solution myself

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question