• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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