Control Web Panel

WebPanel => How to => Topic started by: igorbatagor on January 20, 2017, 01:12:09 PM

Title: Integrate WHMCS Problem
Post by: igorbatagor on January 20, 2017, 01:12:09 PM
HI
I just installed CWP and tried to integrate to my whmcs.
i have folloed this tutorial http://wiki.centos-webpanel.com/cwp-account-api but i found problem
I have tried reinstall centos from 32bit to 64bit more than 3 times but still found problem.

I tried to create an account from whmcs but it is never finished.
I have tried to read http://wiki.centos-webpanel.com/cwp-account-api again and again, tried and try again but never success.

But i tried to visit http://111.112.113.114:2030/api/?key=4235r3f33s2&api=account_new&domain=cwptest.com&username=cwptest&password=gew42f4&package=1&email=email@mail.mail&inode=10000&nofile=100&nproc=25 from my browser and it is worked.
But whmcs can not did it, why?
any one have problem like me?

Sorry for my english.
thank you.
Title: Re: Integrate WHMCS Problem
Post by: devnull on January 20, 2017, 04:48:02 PM

Hello Igor,

Check if you have enabled  allow_url_fopen directive. If it is disabled
and url can not be fetched through php.
Title: Re: Integrate WHMCS Problem
Post by: igorbatagor on January 20, 2017, 09:13:30 PM

Hello Igor,

Check if you have enabled  allow_url_fopen directive. If it is disabled
and url can not be fetched through php.
Thank devnull
I have enable allow_url_fopen on my server with whmcs, but still has same error.
Must i enable allow_url_fopen on CWP server too?

Best regards
Title: Re: Integrate WHMCS Problem
Post by: devnull on January 21, 2017, 07:20:27 PM

I do not think you have to enable allow_url_fopen on the CWP server side.

Maybe you can try to make the api call through a text browser like   lynx or make a curl call from the server on which you whmcs installed to the CWP server and see what happens in the output from cli.
Can also be a firewall issue etc. Maybe the whmcs server is blocking outgoing connections to port 2030?


 
Title: Re: Integrate WHMCS Problem
Post by: robbyq on January 23, 2017, 09:23:17 AM
HI
I just installed CWP and tried to integrate to my whmcs.
i have folloed this tutorial http://wiki.centos-webpanel.com/cwp-account-api but i found problem
I have tried reinstall centos from 32bit to 64bit more than 3 times but still found problem.

I tried to create an account from whmcs but it is never finished.
I have tried to read http://wiki.centos-webpanel.com/cwp-account-api again and again, tried and try again but never success.

But i tried to visit http://111.112.113.114:2030/api/?key=4235r3f33s2&api=account_new&domain=cwptest.com&username=cwptest&password=gew42f4&package=1&email=email@mail.mail&inode=10000&nofile=100&nproc=25 from my browser and it is worked.
But whmcs can not did it, why?
any one have problem like me?

Sorry for my english.
thank you.

+1 i have ticket support 3 months and not solved.
Title: Re: Integrate WHMCS Problem
Post by: robbyq on January 26, 2017, 08:56:45 AM
Fix?
Title: Re: Integrate WHMCS Problem
Post by: robbyq on January 27, 2017, 04:02:26 PM
Fix?

uP
Title: Re: Integrate WHMCS Problem
Post by: Administrator on January 27, 2017, 07:17:45 PM
try to run the same from your server where whmcs is installed by using curl command, example
curl "http://111.112.113.114:2030/api/?key=4235r3f33s2&api=account_new&domain=cwptest.com&username=cwptest&password=gew42f4&package=1&email=email@mail.mail&inode=10000&nofile=100&nproc=25"
Title: Re: Integrate WHMCS Problem
Post by: darkness on June 09, 2017, 06:55:16 PM
Hello guys.
I have a bit strange problem:
Order Accept Encountered Problems
Check All Fields (only lower caps are allowed and no special characters)!
This is what I see in the WHMCS and the cURL command in the console returns "OK". Any possible reasons for the error?