• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Plesk API Create Subdomain Errors and Missing Nodes

runtim23

Basic Pleskian
I'm trying to create a subdomain using API but get this as the response:

[result] => Array
(
[status] => error
[errcode] => 1002
[errtext] => ProtDir_Apache::update() failed: Unable to create user protection directory:Service node is unknown for sysuser with id=0
)

What am I doing wrong?
Here is my request:
<subdomain>
<add>
<parent>configuredDomain.com</parent>
<name>business</name>
<property>
<name>www_root</name>
<value>/subdomains/business/httpdocs</value>
</property>
<property>
<name>ssl</name>
<value>true</value>
</property>
<property>
<name>php</name>
<value>true</value>
</property>
<property>
<name>php_handler_type</name>
<value>fastcgi</value>
</property>
<property>
<name>cgi</name>
<value>true</value>
</property>
<property>
<name>fastcgi</name>
<value>true</value>
</property>
</add>
</subdomain>

Also, how do you set the hosting type for the subdomain?! I don't see this in the docs.

Thanks.
 
Back
Top