Curl is not working on local.

Discussion in 'PHP' started by baris22, Nov 9, 2007.

  1. #1
    Hello,

    I can not get curl working on local.

    I checked the log file. As soon as I start the server I get this error on log file

    PHP Warning: PHP Startup: Unable to load dynamic library 'C:/AppServ\\php5\\ext\\php_curl.dll' - The specified module could not be found.\r\n in Unknown on line 0

    I am running Appserv v2.5.9 PHP/5.2.3

    I already enabled curl.

    What is wrong I do not know.

    Thanks
     
    baris22, Nov 9, 2007 IP
  2. greatlogix

    greatlogix Active Member

    Messages:
    664
    Likes Received:
    13
    Best Answers:
    1
    Trophy Points:
    85
    #2
    check your extension directory is properly set in php.ini file

    On my machine it is set to extension_dir = "c:/php/ext/" and all extensions like curl and gd are in c:/php/ext/

    I think you need to correct extension path
     
    greatlogix, Nov 9, 2007 IP
  3. baris22

    baris22 Active Member

    Messages:
    543
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #3
    I changed the extension directory but still same.

    it says

    PHP Warning: PHP Startup: Unable to load dynamic library 'C:/AppServ/php5/ext/php_curl.dll' - The specified module could not be found.\r\n in Unknown on line 0
     
    baris22, Nov 10, 2007 IP
  4. baris22

    baris22 Active Member

    Messages:
    543
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #4
    I got it working. I found the answer on google after a long search.

    It is what i did

    1. Copied libeay32.dll and ssleay32.dll to c:\windows\system32
    2. Edited my PHP.ini file un-commenting extension=php_curl.dll
    3. set extension directory C:/AppServ/php5/ext/
    4. Copied php_curl.dll from my C:/AppServ/php5/ext/ directory to C:/AppServ/php5 directory.
     
    baris22, Nov 10, 2007 IP
  5. laurentiu.iovan

    laurentiu.iovan Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    thanks man , i used what you found after a long search
    great post

    cheers :)
     
    laurentiu.iovan, Nov 21, 2007 IP
  6. prosman

    prosman Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    himmm goodjob.

    tnx alot
     
    prosman, Nov 21, 2007 IP