Article ID: 128115, created on Jan 19, 2016, last review on Jun 17, 2016

  • Applies to:
  • Plesk 12.5 for Linux


Ubuntu 12.04 with apache 2.4 is installed or OS is being upgrading to Ubuntu 14.04 with apache 2.4

Domains reconfiguration fails with the following error:

    ERR [panel] Apache config (14530640570.65770600) generation failed: Template_Exception: Can not restart web server:
    file: /opt/psa/admin/plib/Service/Driver/Web/Server/Apache.php
    line: 110
    code: 0
    DEBUG [util_exec] [569bfffb2195c] Starting: send-error-report /opt/psa/admin/bin/send-error-report

From the `/var/log/plesk/panel.log`:

    DEBUG [util_exec] [45f53d4fd8587abc1e746ad36b388503][0] Starting: apache_control_adapter --restart --restart-interval 0 --http-port 80 --https-port 443
    ERR [util_exec] proc_close() failed    ['/opt/psa/admin/bin/apache_control_adapter' '--restart' '--restart-interval' '0' '--http-port' '80' '--https-port' '443'] with exit code [255]

According to Apache logs the service is actually restarted successfully.

As a result websites show Plesk default page.


The apache_control_adapter utility monitors a wrong pid-file. This issue has been considered as software issue #PPPM-3904 and will be fixed in future Plesk updates.


  1. Change apache PID file location in /etc/apache2/envvars to make utility /opt/psa/admin/bin/apache_control_adapter work properly:

    # grep -i pid /etc/apache2/envvars
    export APACHE_PID_FILE=/var/run/
  2. Restart apache.

Note: This error may appear on Plesk upgrade to 12.5 or OS dist-upgrade.

Search Words


Template_Exception: Can not restart web server

restart web server


generation failed: Template_Exception: Can not restart web server:


742559b1631652fadd74764ae8be475e 56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 e335d9adf7edffca6a8af8039031a4c7

Email subscription for changes to this article
Save as PDF