Article ID: 127901, created on Dec 27, 2015, last review on Nov 29, 2016

  • Applies to:
  • Plesk Onyx for Linux
  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

Webserver configuration rebuild fails:

# /usr/local/psa/admin/bin/httpdmng --reconfigure-all

Details: [2015-01-22 13:35:07] ERR [util_exec] proc_close() failed
[2015-01-22 13:35:09] 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:

The following error can be found in Webserver Configuration Troubleshooter extension:

[2015-01-22 14:06:54] ERR [util_exec] proc_close() failed
[2015-01-22 14:06:54] 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 is unable to process the 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:

    # chkconfig --list apache2
    

    if no, enable it.

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

If the solution above does not help, do the following:

  1. Back up Plesk database:

    # mysqldump -uadmin -p`cat /etc/psa/.psa.shadow` psa > /root/odin-support/psa.`date +%F_%H:%M`.sql
    
  2. Enable graceful restart for Apache in Plesk:

    • Connect to PSA database

      # mysql -uadmin -p`cat /etc/psa/.psa.shadow` -Dpsa
      
    • Update misc table in psa database as follows:

      mysql> INSERT INTO misc VALUES ('restart_apache_gracefully', 'true');
      
  3. To avoid concurrent configuration checks and restart actions increase Apache restart interval to 20 seconds in Home > Tools & Settings > Apache Web Server > Apache restart interval.

  4. Rebuild web configuration again:

    # /usr/local/psa/admin/bin/httpdmng --reconfigure-all
    

Additional information:

Refer to the KB article on how to install Webserver Configuration Troubleshooter extension. How to enable Apache graceful restart in Plesk

Search Words

ERR [panel] Unable to make action: Unable to manage service by apache_control_adapter: Service /etc/init.d/httpd failed to start

generation failed: Template_Exception: Can not restart web server

PleskUtilException: '/opt/psa/admin/bin/apache_control_adapter' '--restart' '--restart-interval' '0' '--http-port' '80' '--https-port' '443' failed with code 255

Mod_security does not work

webpage not available

742559b1631652fadd74764ae8be475e 56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 e335d9adf7edffca6a8af8039031a4c7 2a5151f57629129e26ff206d171fbb5f 31017699f1904665788bf685dabf68e3

Email subscription for changes to this article
Save as PDF