• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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.

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