I want to create a subdomain using XMWS.
#1
[Not Solved] I want to create a subdomain using XMWS.
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?
Reply
Thanks given by:


Possibly Related Threads...
Thread Author Replies Views Last Post
  [Fresh Install] subdomain vhost issue Draex 1 240 10-08-2016, 03:30 PM
Last Post: TGates
Photo PLEASE HELP ME, DOMAIN and SUBDOMAIN DOWN refki 2 265 09-08-2016, 11:47 PM
Last Post: refki
Sad An problem with panel subdomain and SSL. Ludaking 2 457 09-08-2016, 10:21 AM
Last Post: Ludaking

Forum Jump:


Users browsing this thread: 1 Guest(s)