• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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