- Plesk Onyx for Linux
- Requesting via XML API with
wp-instanceoperator to retrieve WP instances list fails the following error:
CONFIG_TEXT: Parser error: Request is invalid. Error in line 2: Element 'wp-instance': This element is not expected. Expected is one of ( request-settings, server, customer, webspace, subdomain, dns, db_server, mail, certificate, site-alias ).
- Plesk Onyx is being used.
wp-instance operator is only supported in Plesk 12.0 and 12.5, with XML API versions 220.127.116.11 and 18.104.22.168. XML API
wp-instance operator is not longer supported in Plesk Onyx XML API versions.
See Which XML API operators are dropped in Plesk Onyx 17.8 in comparison to 17.5? for more information.
It is possible to manage WordPress instances via command line as follows:
- Log into the server via SSH.
- Retrieve WordPress instances list with following command:
# plesk ext wp-toolkit --list
ID Main Domain ID Main Domain's Path Owner ID Alive Site URL Name Version
2 1 /httpdocs 1 true https://example2.com/wordpress My CMS 4.9.5
11 26 /httpdocs 1 true https://example.com My CMS 4.9.5