• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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