• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

problems with subdomains

R

ray007

Guest
I'm trying to do some subdomain maintenance on the commandline and have run into some problems. Creating and updating seems to work fine, but removing (-r) or getting infos on subdomains (-i) always gives me an error:

# /usr/local/psa/bin/subdomain -i -s <subdomainname> -d <domainname>
ERROR: PleskBadURIException
Empty locator name

0: /usr/local/psa/admin/plib/Location.php:37
Location->__construct(object of type plesk__client__domain__hosting__subdomains__location, string 'name', string '')
1: /usr/local/psa/admin/plib/Location.php:55
Location->applyLocator(string 'subdomain', string 'name', string '')
2: /usr/local/psa/admin/plib/UIPointer.php:117
UIPointer->appendLocation(string 'subdomain', string 'name', string '')
3: /usr/local/psa/admin/plib/api-common/class.cuSubDomain.php:279
cuSubDomain->cuSubDomain()
4: /usr/local/psa/admin/plib/api-cli/subdomain.php:28

Trying to remove a subdomain with -r instead of -i brings exactly the same error.

I then tried to use the sudomainng-script:
/usr/local/psa/admin/bin/subdomainmng --remove --subdomain-name=<subdomainname> --vhost-name=<domainname>

There is no error at all on the commandline, but the subdomain isn't removed either ...

Btw: is there some xml rpc call to manage subdomains? I have been looking around the documentation and the schemas, and couldn't find anything ...
 
Back
Top