Search Engine: Elastic

Article ID: 123399, created on Nov 4, 2014, last review on Jul 14, 2018

  • Applies to:
  • Plesk Automation 11.5


Cannot generate Apache web server configuration file for domain, the following error displays:

    Template_Exception: Syntax error on line 53 of
    SSLCertificateFile: file '/usr/local/psa/var/certificates/cert-FtfAdT' does not exist or is empty

    file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
    line: 68
    code: 0


SSL certificate of domain was updated, but web server configuration file remained unchanged. The behavior is caused by software issue #PPA-1042. The fix is included in MU #6.


  1. Update PA installation to latest version:

    /usr/local/ppa/bin/ppa_update --install-updates
  2. Restore certificate file with correct name, content, path on according Apache service node. The required SSL certificate should be stored in /usr/local/psa/var/certificates/ directory.

    # grep -ir certificate /etc/httpd/conf/plesk.conf.d/ip_default/domain.tld.conf
    SSLCertificateFile /usr/local/psa/var/certificates/cert-qgkJ3T
    SSLCACertificateFile /usr/local/psa/var/certificates/cert-xYC0qZ

The required actions can be performed automatically using Parallels Plesk Automation (PPA). Follow the next steps:

  1. Log in Plesk Automation (PA) Provider Panel. Go to Top > Services > Websites > required website > Open in Control Panel.

  2. In Customer Control Panel choose in Webspaces required webspace and then go to Websites > Hosting Settings > Security > uncheck the option 'SSL support' and click 'Submit' button.

  3. Open Hosting Setting of the required webspace and enable SSL support back. In this case SSL certificate files will be regenerated according to values stored in Plesk Automation (PA) database.

  4. Log in to Apache service node where required webspace has been stored. If you do not know on which web service node the following webspace was stored use this article.

  5. Reload Apache service configuration files:

    [root@ppa ~]# httpd -S 
    Syntax OK
    [root@ppa ~]# service httpd reload
    Reloading httpd:                                           [  OK  ]

33a70544d00d562bbc5b17762c4ed2b3 caea8340e2d186a540518d08602aa065 e0aff7830fa22f92062ee4db78133079

Email subscription for changes to this article
Save as PDF