I honestly wish I'd never started this!
I'm trying to use modernbill with Directadmin and having problems with cURL. Modernbill uses cURL when communicating between servers to set up user accounts on my DA box.
It basically sends the following string in order set up an account:
https://mywebhost.net:2222/CMD_API_...2=blah&domain=blahblah.com&package=fdspec&ip=[the ip address]
Now, in order for the script to user cURL I have to set the path in the config file. Typing whereis cURL at the command line gives me 2 versions one in /usr/local/bin/curl and another in /usr/bin/curl/ The script can also use PHP compiled cURL which I've tried too.
I asked modernbill to look at why it wasn't working and this is what they said:
Can *I* do anything to help solve this? Why do I have 2 versions of cURL? I haven't touched the box since DA installed everything. Could 2 versions be conflicting? Any pointers would be much appreciated. Is the cURL version truly strange and abnormal?
Thanks
I'm trying to use modernbill with Directadmin and having problems with cURL. Modernbill uses cURL when communicating between servers to set up user accounts on my DA box.
It basically sends the following string in order set up an account:
https://mywebhost.net:2222/CMD_API_...2=blah&domain=blahblah.com&package=fdspec&ip=[the ip address]
Now, in order for the script to user cURL I have to set the path in the config file. Typing whereis cURL at the command line gives me 2 versions one in /usr/local/bin/curl and another in /usr/bin/curl/ The script can also use PHP compiled cURL which I've tried too.
I asked modernbill to look at why it wasn't working and this is what they said:
Hi Gavin,
What I found:
PHP compiled curl is failing to connect with this error returned from curl.
"Connect failed; Operation now in progress"
I can't find any documentation on what that error would be.
From code, I found your path to curl to be:
/usr/bin/curl and it's a strange version that I've never seen: "Features: IPv6 SSL libz NTLM"
I removed the base_64 encryption on the username/password for the CLI curl call and this is the URL it is using now:
https://user:[email protected]:...2=blah&domain=blahblah.com&package=fdspec&ip=[the ip address]
When I paste that into a browser it just hangs. The only way it works is by removing the user/pass and loging in first.
The curl connections using PHP compiled and command line are both failing. The calls/data seem to be correct.
Can *I* do anything to help solve this? Why do I have 2 versions of cURL? I haven't touched the box since DA installed everything. Could 2 versions be conflicting? Any pointers would be much appreciated. Is the cURL version truly strange and abnormal?
Thanks
Last edited: