Home website design new york | Free Quote website design new york | Call Now 646.657.9323 website design new york
Royal Deer Design, Web Design New York City. We are a web design and internet marketing company located in New York City
Saturday January 14, 2012, 22:17

WHMCS (Curl Error) couldn't connect to host - code: 7

We have recently faced an issue with setting up an additional server for WHMCS. We have servers from wiredtree (those buys are amazing, outstanding support!), but nobody could help us. Also, if you google this problem there are not really any good advice about this issue. After 12h of testing many options and searching for the solution - we found it, and now we share it.

Error:
Module Command Error
(Curl Error) couldn't connect to host - code: 7

On the official WHMCS site you can find:

Server Command Error - Curl Error - Couldn't connect to host (7)
This response means you have a firewall blocking the connection. The port being used depends on what module you are using but for cPanel it would be 2086/2087, Plesk 8443, DirectAdmin 2222, etc...

Indeed they are correct :).

So, we had 2 servers, one of them had installed WHMCS (let's call it Server A) and we wanted to attach another VPS server (let's call it Server B) to this WHMCS. Here are potential issues:

1. You must whilelist IP of server B in WHM of the server B. Simply go to WHM of the server B  to a section Plugins > 'ConfigServer Security&Firewall', then whilelist there an IP of the server A. Here is one problem - you may not have 'ConfigServer Security&Firewall' plugin installed (we had that issue). So, just ask your hosting provider to install csf plugin for you, guys from wiredtree did it for us! :)

2. When adding a new server to WHMCS insert Access Hash, which you can generate in WHM of server B (Setup Remote Access Key).

3. As we found it online, it is good if server B has a root password without special characters - that may cause some issues.
 
Hopefully that save somebody few hours of problems :).
 
 
 






WHMCS (Curl Error) couldn't connect to host - code: 7

, created on Saturday January 14, 2012, 22:17, article tagged with keywords: cPanel, hosting, WHM, WHMCS, server,
Tags: cPanel, hosting, WHM, WHMCS, server,

WHMCS (Curl Error) couldn't connect to host - code: 7

, related articles:
ARCHIVE


Categories:



--


Our Tweets
blue dot When do-it-yourself is the bad choice: 5 items small #business owners should invest in http://t.co/w4lKVxue via @royaldeerdesign
10:30pm May 9, 2012

blue dot How to use social media to increase your profits http://t.co/dBlTUvOb via @royaldeerdesign #business #socialmedia
8:46pm May 5, 2012

blue dot Three factors that determine the cost of an app http://t.co/iA0U31Fs via @royaldeerdesign
11:15am April 29, 2012

blue dot Why A Simplistic Design Is The Best Design http://t.co/3Tvv9avL via @royaldeerdesign
10:38pm April 25, 2012


blue dot follow us on twitter