• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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