• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Richard Markink

New Pleskian
Hello,

I am trying to add a domain by making use of the plesk xml api. I am running plesk 12.5.30.

When i use the php script that i found on the plesk github to execure a request on the same server as where the request is send to i get the following error in plesk:

New configuration files for the Apache web server were not created due to the errors in configuration templates: Template processing failed: file = /usr/local/psa/admin/conf/templates/default/domainVhost.php, error = Template_Exception: Empty content was provided for config file /var/www/vhosts/system/test.bhvaed.nl/conf/httpd.conf file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php line: 47 code: 0. Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files.

i used the following request:
Code:
<packet version="1.6.7.0">
<site>
<add>
   <gen_setup>
        <name>test.bhvaed.nl</name>
        <webspace-id>1</webspace-id>
   </gen_setup>
   <hosting>
        <vrt_hst>
            <property>
                <name>www_root</name>
                <value>/elearning.coursenet.nl</value>
            </property>
        </vrt_hst>
   </hosting>
</add>
</site>
</packet>

it will result in a 503 error on the page i run this script.
When i run the same script on a other server of with curl tool there is no problem at all.

What can cause this problem ?
 
Back
Top