Can not restart web server: Template_Exception: Can not restart web server

Refers to:

  • Plesk 12.5 for Linux
  • Plesk Onyx for Linux
  • Plesk 12.0 for Linux

Created:

2016-11-16 12:54:06 UTC

Modified:

2017-03-22 10:44:12 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Can not restart web server: Template_Exception: Can not restart web server

Symptoms

  • Rebuilding of web server's configuration for all domains fails:

    [root@server ~]# /usr/local/psa/admin/bin/httpdmng --reconfigure-all

    ERR [util_exec] proc_close() failed
    ERR [panel] Apache config (14219515790.37860700) generation failed: Template_Exception: Can not restart web server:
    file: /opt/psa/admin/plib/Service/Driver/Web/Server/Apache.php
    line: 104
    code: 0
    Can not restart web server:
  • Rebuilding of server-wide configuration parameters for web server fails:

    [root@server ~]# /opt/psa/admin/bin/httpdmng --reconfigure-server
    ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/apache_control_adapter' '--restart' '--restart-interval' '20' '--http-port' '80' '--https-port' '443' '--graceful'] with exit code [255]
    ERR [panel] Apache config (14811847110.65081400) generation failed: Template_Exception: Can not restart web server: graceful restart failed, perform full restart graceful restart failed, perform full restart

    file: /opt/psa/admin/plib/Service/Driver/Web/Server/Apache.php
    line: 108
    code: 0
    Can not restart web server: graceful restart failed, perform full restart graceful restart failed, perform full restart
  • The following error can be found in Webserver Configuration Troubleshooter extension:

    ERR [util_exec] proc_close() failed
    DEBUG [util_exec] [d9261a0eb6f04ec904dbb635dbf9d173][0] Finished in 125.76602s, Error code: 255
    PleskUtilException: '/opt/psa/admin/bin/apache_control_adapter' '--restart' '--restart-interval' '0' '--http-port' '80' '--https-port' '443' failed with code 255

Cause

Apache cannot process files simultaneously for all the domains or Apache is not enabled in invoke-rc.d .

Resolution

  1. Make sure that apache is enabled in invoke-rc.d :

    For Ubuntu:

    # sysv-rc-conf --list apache2

    For Debian:

    # chkconfig --list apache2

    If no, enable system startup links for Apache:

    # update-rc.d apache2 enable
  2. Check if the issue can be reproduced.

Additional information:

#213362409 Plesk Webserver Configuration Troubleshooter

Have more questions? Submit a request
Please sign in to leave a comment.