Installing cURL on Windows/IIS

Leave a Reply to Matthew Cancel Reply

Comment as a guest.

  1. This was the only fix I found that worked

    yeah, I posted this after getting it to work myself!! πŸ˜‰

    Thanks

    you are welcome!! πŸ™‚

  2. Hi, I dont mean to sound dumb but i’ve got the Apache server 2.0.58 and PHP 5.1.4 installed on my computer and can’t get cURL to work. I removed the semi-colon before the line with php_curl.dll in the php.ini file and saved, then restarted Apache, still no luck. Do I need to restart my computer or install something else? Thanks for any reply.

  3. Thanks for the reply, but are you sure I can just change the php.ini file and there’s nothing else to install? I still get this when trying to run a script with curl in it: Call to undefined function curl_init().

  4. Curl is working successfully after following the steps given above.But one extra thing I did was i included php_curl.dll in extensions directory and in php.ini file igave extensions_dir=”c:phpextensions”.After that it is working fine.Thanks.

  5. Priya, the curl library was already there in the extensions directory of my PHP directory, so I didn’t need to put it there!! πŸ˜‰

  6. I can’t get this no matter what i do..
    manually installed php 5.2.5 on a iis server and the installation works fine..
    i went to add curl..heres all i did.. somes redundant but desperation

    1 uncommented php_curl.dll in php.ini
    2 changed path system enviroment variables to include c:php
    3 set ext directory to c:phpext, also tried ./ and .ext
    4 copied ssleay32.dll, libeay32.dll,php5ts.dll to system 32
    5 copied php_curl.dll to c:php, system32
    6. restarted the server lots
    7. checked dll version of curl to php version is a match 5.2.5

    im out of ideas.. everyone seems to say it works by doing half the stuff ive done.. all i get is fatal error call to undefined function
    phpinfo reads ctype enabled.. under that it should say curl but it doesn’t

  7. @Shadix:

    What version of Windows are you using? If its WindowsXP then you need to put the files in “System” folder instead of “System32”.

  8. I resolved this problem.. most unusual.. it seems the trouble was that php would read php.ini but ignored all the data inside the file unless i placed the file in the directory it wanted.. on phpinfo this directory was c:windows it definately would read php.ini though becuase if i doubled up on the files i would get the alias error no input file

  9. So your php.ini file was not being considered by Windows. Ofcourse it needs to be in system path, so either you do it by adding to the system environment variable or simply by putting it in a windows folder like “windows” or “system”. πŸ™‚

  10. Just in case it helps anyone. I had exactly the same problem and it was a permissions issue on IIS. Just needed to change the permissions of the dll and it worked.

  11. Nice dude – finally got CURL running on php 5.2.6, windows Vista and Apache 2.2 after 3 hours of surfing and dubugging.

    I basically copied php.ini, php5ts.dll, libeay32.dll, php_curl.dll, and ssleay32.dll into
    c:php
    c:phpext
    c:windows
    c:windowssystem
    c:windowssystem32

    and ONE of them did the trick lol.

  12. ugh, I’ve been struggling to get this to work… on XP just tried everything you all said… after copying the files over to c:windowssystem32, system, apache is crashing on me now. even after a reboot.

    Seriously why can’t PHP come with all this crap pre-installed, like PEAR and PECL too its ridiculous. They really need to set a standard somewhere.

  13. for a windows server running IIS and php5:

    if curl does not work once php.ini is set up right (to include the php_curl.dll and you have restarted IIS since editing it), it is probably the curl dependencies.

    this happened to me and my solution was to copy libeay32.dll and ssleay32.dll in to the system32 directory then restart IIS.

    btw thanks for the thread!

  14. @IISnoob:

    this happened to me and my solution was to copy libeay32.dll and ssleay32.dll in to the system32 directory then restart IIS.

    Yup, I’ve mentioned that in step #2 above! πŸ™‚

  15. Thank you,

    This is working.
    The other treads don’t tell if to copy the 3 dll, even in PHP 5.02 have to copy it first.

    Thank you, it cost me hours to know that dlls have to be copied. Once again thank you,

    Sincerely yours,

    Luckman Raharja

Sliding Sidebar