« Previous Next »

Thread: PHP Curl issue

Last post 06-10-2009 2:11 AM by shaztesting. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 06-04-2009, 7:15 PM

    PHP Curl issue

    hi, I'm new to IIS and am getting the following error report when installing zencart:


    CURL problems detected: 28 => connect() timed out! more info...
    CURL requires SSL support. Please notify webmaster or hosting company. 7 => couldn't connect to
    host more info...
    CURL problems detected: 28 => connect() timed out! more info...
    CURL requires SSL support. Please notify webmaster or hosting company. 7 => couldn't connect to
    host more info...
    /admin/includes/configure.php does not exist more info...


    i've got 1.38a of zencart installed on IIS 6 using fact CGi. I've enabled cURL by commenting it out of the php.ini and copying the dll files over to the system32 folder.
    When i check it out in a php info file it shows up as successfully enabled.
    I have purchased and set up a dedicated SSL on a unique static IP and everything is working fine with that.
    Yet i still get the same errors when installing zencart.

    My curltest.php files has the following results.


    Code:
    7 couldn't connect to host
    Array
    (
    [url] => "http://www.zen-cart.com/testcurl.php"
    [content_type] =>
    [http_code] => 0
    [header_size] => 0
    [request_size] => 0
    [filetime] => -1
    [ssl_verify_result] => 0
    [redirect_count] => 0
    [total_time] => 0
    [namelookup_time] => 0
    [connect_time] => 0
    [pretransfer_time] => 0
    [size_upload] => 0
    [size_download] => 0
    [speed_download] => 0
    [speed_upload] => 0
    [download_content_length] => -1
    [upload_content_length] => -1
    [starttransfer_time] => 0
    [redirect_time] => 0
    )



    So cURL is enabled but cannot communicate with the zencart server. What solutions are there?
    On the zen-cart forums i was directed towards fixing any nslookup errors and that didn't fix the cURL issue.
    What else can i try?
    Thanks in advance.
  • 06-05-2009, 3:56 AM In reply to

    Re: PHP Curl issue

    From what you've posted I would have suggested either name resolution and/or some form of network connectivity issue. From what you are saying you can ping www.zen-cart.com from the IIS server?

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    www.iis-aid.com
    My IIS articles
    My PHP articles
    My How-to guides
  • 06-05-2009, 11:37 AM In reply to

    Re: PHP Curl issue

    Hi Dominic, Thanks for the quick reply. I am not at the web server right now and given Monday is a public holiday, I can get you that information on Tuesday. From memory however, the IIS server can visit www.zen-cart.com but when pinged the server replies with 'Destination net unreachable' 3/4 times. It's still a reply but not with the 32b of data. Could this be the issue? If so what specifically should I ask our DNS admin to do? Is there any way to open a port for curl to communicate with whichever server we would like? Or is it better to do it on a case by case basis (after succesfully connecting to zen-cart.com we would need it to work with our payment gateway)? thanks
  • 06-05-2009, 10:49 PM In reply to

    Re: PHP Curl issue

     A "Destination net unreachable" message means there is no route to the destination, and will almost certainly be what is causing your issue. The fact it works some of the time and not others indicates a routing issue (OSPF, etc) or malfunctioning hardware and/or driver. At a minimum you'll need to be able to route TCP port 80 & 443 over IP for cURL to work. This is not a name resolution issue, but rather a networking issue.

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    www.iis-aid.com
    My IIS articles
    My PHP articles
    My How-to guides
  • 06-10-2009, 2:11 AM In reply to

    Re: PHP Curl issue

    thanks mate! it worked. one more hurdle cleared :)

Page 1 of 1 (5 items)
Microsoft Communities