Hi there.
I'm trying to create subdomains using cpanel api2 functions.
If i try and do something simple like
listaccts(); - this works fine.
If I try and do the subdomain creation, I get this error: (I've removed my exact directory structure from the error code)
I'm trying to create subdomains using cpanel api2 functions.
If i try and do something simple like
listaccts(); - this works fine.
If I try and do the subdomain creation, I get this error: (I've removed my exact directory structure from the error code)
<b>Fatal error</b>: Uncaught exception 'Exception' with message 'curl_exec threw error "SSL read: error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac, errno 0" for https://myiphere:2087/xml-api/cpane...allowdot=0&domain=testing&rootdomain=[mydomain]&cpanel_xmlapi_user=root&cpanel_xmlapi_module=SubDomain&cpanel_xmlapi_func=addsubdomain&cpanel_xmlapi_apiversion=2' in /home/[user]/public_html/xmlapi.php:730 | |
Stack trace: | |
#0 /home/[user]/public_html/xmlapi.php(652): xmlapi->curl_query('https://91.103....', 'dir=public_html...', 'Authorization: ...') | |
#1 /home/[user]/public_html/xmlapi.php(875): xmlapi->xmlapi_query('cpanel', Array) | |
#2 /home/[user]/public_html/subdrcreate.php(46): xmlapi->api2_query('root', 'SubDomain', 'addsubdomain', Array) | |
#3 {main} | |
thrown in <b>/home/[user]/public_html/xmlapi.php</b> on line <b>730</b><br /> Any ideas how I can get round this? Have I done something wrong? This is my test script:
PHP:
Many thanks! tasha |