• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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