- Plesk for Linux
Note: This article has the reference to the issue with the fix available:
- #PPPM-3924 "Support issue #PPPM-3924"
- Plesk Onyx 17.8 Release 17 April 2018
- Apache 2.4 is installed on the server.
It is not possible to create a subdomain using API query, the following error appears in Plesk:
CONFIG_TEXT: 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/one.example.com/conf/httpd.conf file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php line: 47 code: 0.
This is Plesk bug with ID #PPPM-3924 which was fixed in Plesk Onyx 17.8.
Upgrade to the latest Plesk version.
If upgrading is not acceptable, apply the workaround below
Execute the API query from a different domain on the server or from a different server.
For Centos 7 Plesk 17.0, the following workaround is available:
1. Login to the server over SSH
2. Make a backup of the existing file
# mv /usr/local/psa/admin/plib/api-rpc/Agent.php /root/
2. Unpack the attached file to the
directory on the server.