Forums / Installing on a Windows Server / can not set up Curl

can not set up Curl

Started by soso838 on 8 Jul 2012, 5:45 PM · Views: 7,347

Results 1 to 18 of 18
8 Jul 2012, 5:45 PM
#1
soso838 avatar

soso838

Zen Follower

Join Date:
May 2012
Posts:
105
Plugin Contributions:
0

can not set up Curl

I install the zencart 1.5 everything is good, but when I want to set up Crul,I cannot find form
config->Mystore, is any one know where to setup the curl?

8 Jul 2012, 6:34 PM
#2
limitless avatar

limitless

Inactive

Join Date:
Jan 2012
Posts:
496
Plugin Contributions:
0

Re: can not set up Curl

Curl is enabled within PHP.

Uncomment out the curl line in your php.ini file to enable curl: extension=php_curl.dll

That is if you have it installed.

8 Jul 2012, 6:52 PM
#3
soso838 avatar

soso838

Zen Follower

Join Date:
May 2012
Posts:
105
Plugin Contributions:
0

Re: can not set up Curl

I am using Hostgator as ISP, when I log in xpanel, I cannot find any php.ini,should I ask hostgator Tech to help me or I can do it my self, I attach a copy of my setting it not show the curl in the admin
Attachment 10756

8 Jul 2012, 7:12 PM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: can not set up Curl

What problem are you experiencing relating to cURL ?

20 years a Zencart User

8 Jul 2012, 10:49 PM
#5
soso838 avatar

soso838

Zen Follower

Join Date:
May 2012
Posts:
105
Plugin Contributions:
0

Re: can not set up Curl

I can not turn on the curl ,in the V1.39 the curl can be turn on in the admin>configuration>mystore as :
cURL Proxy Status True
cURL Proxy Address xxx

but I as the last attachment I show my V1.5 config>mysore>
I cannot find the place that I can setup the Crul
attach one more time , and thank for replay
Attachment 10757

8 Jul 2012, 11:01 PM
#6
soso838 avatar

soso838

Zen Follower

Join Date:
May 2012
Posts:
105
Plugin Contributions:
0

Re: can not set up Curl

the problem is I can not turn on the curl ,
in the V1.39 the curl can be turn on in the admin>configuration>mystore as :
cURL Proxy Status True
cURL Proxy Address xxx

but in the last attachment I show my V1.5 config>mysore>
I cannot find the place that I can setup the Curl
and the "Limitless" tell me the change the php.ini
I am using the hostgator as ISP, I can not find this file in my cpenal
so which place that I can set up the curl or is any addon that I can use for adding the curl

8 Jul 2012, 11:18 PM
#7
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: can not set up Curl

The CURL proxy status feature has been removed from ZC1.5 because the function is deprecated

SEE:http://www.zen-cart.com/showthread.php?190424-v1-5-0-Release-Available

Read through the changelog and you will see:

CHANGE-138 Set CURL Proxy Status to FALSE by default, and remove from display since it's now deprecated

Ask hostgator to configure CURL in PHP for you.

If they don't want to do that, go find a better host. (They are crap hosts anyway.... why you want to host with those idiots is unclear).

20 years a Zencart User

8 Jul 2012, 11:52 PM
#8
soso838 avatar

soso838

Zen Follower

Join Date:
May 2012
Posts:
105
Plugin Contributions:
0

Re: can not set up Curl

Sorry I an not quite understand the V1.5
I have already ask the hostgator. they said my curl already turned on. but when I try to setup paypal. it shows

PayPal Express Checkout

PayPal Express Checkout (rev1.5.0)
Manage your PayPal account.

Configuration Instructions:

  1. Sign up for your PayPal account - click here.
    ... and click "install" above to enable PayPal Express Checkout support.
  2. Ensure you have entered the appropriate security data for username/pwd etc, below.Requirements:
    *CURL is used for bidirectional communication with the gateway, so must be active on your hosting server
    (if you need to use a CURL proxy, set the CURL proxy settings under Admin->Configuration->My Store.)

and when I check admin>server information
the curl shows
curl
cURL support enabled
cURL Information libcurl/7.24.0 OpenSSL/0.9.8t zlib/1.2.3 libidn/1.18

it that mean I can setup paypal without setting the :
"*CURL is used for bidirectional communication with the gateway, so must be active on your hosting server
(if you need to use a CURL proxy, set the CURL proxy settings under Admin->Configuration->My Store.)"

9 Jul 2012, 7:28 AM
#9
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: can not set up Curl

soso838:

"*CURL is used for bidirectional communication with the gateway, so must be active on your hosting server
(if you need to use a CURL proxy, set the CURL proxy settings under Admin->Configuration->My Store.)"

I see the problem. You are confusing "CURL" and "CURL PROXY". These are NOT the same thing.

cURL is something that is enabled/disabled at the server. These days it is almost always enabled on every server.

cURL Proxy was a zencart setting created for GoDaddy users (and perhaps others) because these servers required special treatment in order to use cURL. The special treatment being the setting of the proxy server.

These days it has been determined that none of the servers currently use/require the proxy settings, so they have been removed as a setting from the zencart code.

In other words you can ignore any and all references to "CURL PROXY". If you are having a problem please provide details.

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

16 Jul 2012, 1:59 AM
#10
sonickev avatar

sonickev

New Zenner

Join Date:
Jun 2011
Posts:
4
Plugin Contributions:
0

Re: can not set up Curl

RodG:

I see the problem. You are confusing "CURL" and "CURL PROXY". These are NOT the same thing.

cURL is something that is enabled/disabled at the server. These days it is almost always enabled on every server.

cURL Proxy was a zencart setting created for GoDaddy users (and perhaps others) because these servers required special treatment in order to use cURL. The special treatment being the setting of the proxy server.

These days it has been determined that none of the servers currently use/require the proxy settings, so they have been removed as a setting from the zencart code.

In other words you can ignore any and all references to "CURL PROXY". If you are having a problem please provide details.

Cheers
Rod

The problem is that the Paypal Payment module does not work because it still appears to be expecting cURL proxy to be switched off..but you cannot do this any more.

So, I am stuck. Where the Paypal payment module cannot be completed because it directs me to disable cURL proxy before completing the payment module configuration...but I cannot disable the cURL proxy because it is no longer there.

16 Jul 2012, 2:04 AM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: can not set up Curl

Lemme guess ... you're hosted on GoDaddy, and have never been able to use PayPal yet?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

16 Jul 2012, 7:18 AM
#12
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: can not set up Curl

sonickev:

The problem is that the Paypal Payment module does not work because it still appears to be expecting cURL proxy to be switched off..but you cannot do this any more.

I recall that some one else had this problem a few months ago.

sonickev:

So, I am stuck. Where the Paypal payment module cannot be completed because it directs me to disable cURL proxy before completing the payment module configuration...but I cannot disable the cURL proxy because it is no longer there.

Try running the following SQL command

UPDATE configuration SET configuration_value= 'FALSE' WHERE configuration_key = 'CURL_PROXY_REQUIRED' ;

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

16 Jul 2012, 11:02 AM
#13
sonickev avatar

sonickev

New Zenner

Join Date:
Jun 2011
Posts:
4
Plugin Contributions:
0

Re: can not set up Curl

DrByte:

Lemme guess ... you're hosted on GoDaddy, and have never been able to use PayPal yet?

yes, that is correct...am I not going to be able to work with Paypal?

I tried Barclaycard but that doesn't work either.

Does any mainstream payment module work in the UK, or have I made a bad choice with zencart? I like all the features of zencart, but its all a bit pointless if none of the UK payment portals work

16 Jul 2012, 11:08 AM
#14
sonickev avatar

sonickev

New Zenner

Join Date:
Jun 2011
Posts:
4
Plugin Contributions:
0

Re: can not set up Curl

RodG:

I recall that some one else had this problem a few months ago.

Try running the following SQL command

UPDATE configuration SET configuration_value= 'FALSE' WHERE configuration_key = 'CURL_PROXY_REQUIRED' ;

Cheers
Rod

Many thanks for that. Sadly it doesn't fix the issue.
I still get the text report that says
Requirements:
*CURL is used for bidirectional communication with the gateway, so must be active on your hosting server (if you need to use a CURL proxy, set the CURL proxy settings under Admin->Configuration->My Store.)

I'm told that cURL is active by default on godaddy servers and don't really know which way to turn now.

I went down the path of Barclaycard, only to find that it doesn't work because they just changed their product and the 5 year old plug-in isn't compatible. So I chose Paypal because it was already there in Zencart and I figured it was a safe bet, now Paypal doesn't work either? Any suggestions?

I'm confused how godaddy recommend zen cart, then zen cart appears to be ready made for paypal, but the combination doesn't work and nobody seems to have a solution.

16 Jul 2012, 1:06 PM
#15
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: can not set up Curl

sonickev:

Many thanks for that. Sadly it doesn't fix the issue.
I still get the text report that says
Requirements:
*CURL is used for bidirectional communication with the gateway, so must be active on your hosting server (if you need to use a CURL proxy, set the CURL proxy settings under Admin->Configuration->My Store.)

Still get? Wasn't the original error

sonickev:

The problem is that the Paypal Payment module does not work because it still appears to be expecting cURL proxy to be switched off..but you cannot do this any more.

The SQL statement I provided would only 'fix' the first error. The current 'error' needs to be treated as a separate issue.

sonickev:

I'm told that cURL is active by default on godaddy servers and don't really know which way to turn now.

You don't have to accept what you are told. There are ways to confirm this for yourself. Look in the zencart 'extras' folder for a program called 'curltester.php' (or similar).

sonickev:

I went down the path of Barclaycard, only to find that it doesn't work because they just changed their product and the 5 year old plug-in isn't compatible.

It could also be because your cURL is nonfunctional. Many/most modules that require 'real time' communication with other servers rely on cURL these days. In fact most non cURL methods are generally restricted/dissallowed.

sonickev:

So I chose Paypal because it was already there in Zencart and I figured it was a safe bet, now Paypal doesn't work either? Any suggestions?

PayPal and ZenCart are a 'safe bet'. The problem is with your chosen host.

sonickev:

I'm confused how godaddy recommend zen cart, then zen cart appears to be ready made for paypal, but the combination doesn't work and nobody seems to have a solution.

Alas, this isn't a mutual partnership. GD may recommend ZenCart, but very few Zenners will recommend GoDaddy.

My next suggestion is for you to do a manual install of Zencart (I'm assuming you used some kind of GD customised installer), because the original thread I was thinking about has come back to me.

http://www.zen-cart.com/showthread.php?193686-Error-on-use-PayPal-Express-Checkout

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

16 Jul 2012, 5:09 PM
#16
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: can not set up Curl

sonickev:

or have I made a bad choice with zencart?

No, that is a GOOD choice.

Your BAD choice was GoDaddy...

20 years a Zencart User

16 Jul 2012, 5:22 PM
#17
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: can not set up Curl

RodG:

My next suggestion is for you to do a manual install of Zencart (I'm assuming you used some kind of GD customised installer)
Yes, that would be my suggestion too.
As I said before, the GoDaddy auto-installer is broken. They're using non-standard Zen Cart code in it, resulting in your site being broken.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

16 Jul 2012, 5:37 PM
#18
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: can not set up Curl

Another GOOD suggestion would be to get out of GoDaddy before it's too late.

If you choose to stay there, well... expect to be spending many tearful hours/days/weeks on this forum trying to resolve issues that should never arise.

If they won't refund you, just cut your losses and put it down to experience.

On a GOOD host, it is possible to install zencart and get it working inside half an hour.
On 30 September last year we registered a domain from scratch, set up hosting and installed zencart.

We began the entire process (domain registration) at about 9:00am

By 12:00 noon we had a functioning zencart site with Paypal express configured. (YES... the domain had propogated by noon!)

By 5:00 pm we had applied templates, configured shipping, and added +-40 products.

The following day, the site took its first order.

That site - hosted with a company that understands zencart - can be seen here

20 years a Zencart User