Quantcast
Channel: Sentora Support Forums - All Forums
Viewing all articles
Browse latest Browse all 4650

I want to create a subdomain using XMWS

$
0
0
I want to create a subdomain using XMWS.
I wrote the test code below.

<?php
  require_once '../../conf.php';
  require_once '../../lib/xmwsclient.class.php';
  $xmws = new xmwsclient();
  $xmws->InitRequest($apiurl, 'sub_domains', 'CreateSubDomain', $apikey);
  $xmws->SetRequestData('<subname>test.mydomain.com</subname><subdirectory>/test_mydomain_com</subdirectory><uid>zadmin</uid><autohome>1</autohome>');
  $response_array = $xmws->XMLDataToArray($xmws->Request($xmws->BuildRequest()));
  if ($response_array['xmws']['response'] <> 1101) {
    die("API Error: " . $response_array['xmws']['content']);
  }
  else {
    echo $xmws->Request($xmws->BuildRequest());
  }
?>

It does not work normally.
I confirmed that it is registered in the database table x_vhosts.
It does not appear on the sentora subdomain manager.

What is the problem?

Viewing all articles
Browse latest Browse all 4650

Trending Articles