CartMetrix - Do you know yours?

« Compile Errors with Mod_auth_mysql and Apache 2.2 | Home | ZenCart Products ID Search »

10/5/2006

ZenCart Godaddy and cURL

I recently migrated a customer's ZenCart site to a hosting account with Godaddy.com. The project went smoothly except for the Authorize.net gateway. Trying to process orders, the site timed out on the final order process page.

Godaddy's support site, some googling and debugging led to this working code to be added to the cURL routine in authorizenet_aim.php.

curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
// The line below was posted on Godaddy's support site,
// but did not work for me
//curl_setopt ($ch, CURLOPT_PROXY,"http://64.202.165.130:3128");
// This line worked for me instead
curl_setopt ($ch, CURLOPT_PROXY,"64.202.165.130:3128");
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt ($ch, CURLOPT_TIMEOUT, 45);

Links:

Popularity: 41%

Trackback:

Related Posts

3 Responses to “ZenCart Godaddy and cURL”

  1. Nick said:

    Thanks for the info. I was looking to host a client’s Zen Cart site with GoDaddy, but wasn’t sure if it would be the right fit.

  2. damonp said:

    I wouldn’t necessarily recommend Godaddy’s hosting, but it is usually adequate. There are a lot of caveats and required workarounds in their PHP setup in particular. I have usually been able to hack things to work with Godaddy, but there have been occasions where a client had to migrate to a different host to achieve desired results. Any large hosting provider is this way though. They have their configurations that work for them and they aren’t going to change for a lonely client. It’s just not in their financial or infrastructure interest.

    For a good low-cost host I’d recommend HostGator. I have worked with them several times in the past and recommend them to clients.
    Recommend Hosting Providers

  3. Getting ZenCart Working On GoDaddy | David Bisset: Web Designer, Coder, Wordpress Guru said:

    […] can be installed, but it’s Authorize.NET payment module might not work because of cURL. I stumbled on a possible solution. I’m repeating it here, just so I can make sure it’s in my […]

Post your opinion

Verification Image

Please type the letters you see in the picture.

Subscribe without commenting


damonparker.org is proudly powered by WordPress
Entries (RSS) and Comments (RSS).

copyright © 2002-2008 damonparker.org. all rights reserved.

Close
E-mail It