• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Apache configuration files not building due to errors in configuration templates.

DjFarout

Basic Pleskian
Hi, I've been getting the errors randomly for awhile. I would have to reboot the machine to get the sites working again. But now its happening more often. Could be, because we are adding/modifying more website info.

I ran through a few of the solutions on the KB site. The only thing it came up with, is Missing keys and column issues. Could this really be causing my problems?

[root@server unix]# /usr/local/psa/admin/bin/php check_db.php --by-problem
Trying to retrieve DB schema from ./10.4-psa.sql
checking base psa by /usr/local/psa/tmp/db.sql
===Missed keys===
<Subscriptions>.<uuid>
<domains>.<parentDomainId>
===Invalid columns===
<IP_Addresses>.<main> type: actual = <enum('true','false')> expected = <enum('false','true')>
<Subscriptions>.<uuid> NULL attribute: actual = <true>
Trying to retrieve DB schema from ./10.4-apsc.sql
checking base apsc by /usr/local/psa/tmp/db.sql
No errors in database structure apsc found

Here is the /usr/local/psa/admin/logs/panel.log :

2012-06-04T10:44:09-04:00 ERR (3): Apache config (13388209770.07660300) generation failed: Can not restart web server: httpd stop failed
0 /usr/sbin/httpd processes are killed
Service /etc/init.d/httpd failed to start
httpd stop failed
0 /usr/sbin/httpd processes are killed
Service /etc/init.d/httpd failed to start

2012-06-04T11:52:26-04:00 ERR (3): New files of configuration for Apache web server were not built due to errors in configuration templates. The detailed error message was e-mailed to you, so please check t$
2012-06-04T11:53:43-04:00 ERR (3): Apache config (13388251510.45593800) generation failed: Can not restart web server: httpd stop failed
0 /usr/sbin/httpd processes are killed
Service /etc/init.d/httpd failed to start
httpd stop failed
0 /usr/sbin/httpd processes are killed
Service /etc/init.d/httpd failed to start

2012-06-04T11:53:43-04:00 ERR (3): Web server reconfiguration failed: New Apache configuration was not built.
2012-06-04T11:54:37-04:00 ERR (3): New files of configuration for Apache web server were not built due to errors in configuration templates. The detailed error message was e-mailed to you, so please check t$
2012-06-04T11:55:13-04:00 CRIT (2): Zend_Db_Statement_Exception: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
file: /usr/local/psa/admin/plib/Zend/Db/Statement/Pdo.php
line: 234
code: 0
trace: #0 /usr/local/psa/admin/plib/Zend/Db/Statement.php(300): Zend_Db_Statement_Pdo->_execute(Array)
#1 /usr/local/psa/admin/plib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#2 /usr/local/psa/admin/plib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('UPDATE `Configu...', Array)
#3 /usr/local/psa/admin/plib/Zend/Db/Adapter/Abstract.php(634): Zend_Db_Adapter_Pdo_Abstract->query('UPDATE `Configu...', Array)
#4 /usr/local/psa/admin/plib/Zend/Db/Table/Abstract.php(1132): Zend_Db_Adapter_Abstract->update('Configurations', Array, Array)
#5 /usr/local/psa/admin/plib/Db/Table/Row.php(283): Zend_Db_Table_Abstract->update(Array, Array)
#6 /usr/local/psa/admin/plib/Db/Table/Row.php(240): Db_Table_Row->_executeUpdate(Array, Array)
#7 /usr/local/psa/admin/plib/Zend/Db/Table/Row/Abstract.php(440): Db_Table_Row->_doUpdate()
#8 /usr/local/psa/admin/plib/Db/Table/Row.php(26): Zend_Db_Table_Row_Abstract->save()
#9 /usr/local/psa/admin/plib/Template/Configuration/Applier.php(481): Db_Table_Row->save()
#10 /usr/local/psa/admin/plib/Template/Configuration/Applier.php(111): Template_Configuration_Applier->_processConfgurationChanges()
#11 /usr/local/psa/admin/panel/application/controllers/SubscriptionController.php(999): Template_Configuration_Applier->applyConfiguration(true)
#12 /usr/local/psa/admin/panel/application/controllers/SubscriptionController.php(969): SubscriptionController->_webserverConfigurationRebuildServerwide()
#13 /usr/local/psa/admin/plib/Zend/Controller/Action.php(513): SubscriptionController->webserverConfigurationRebuildAction()
#14 /usr/local/psa/admin/plib/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('webserverConfig...')
#15 /usr/local/psa/admin/plib/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#16 /usr/local/psa/admin/panel/application/library/AdminPanel/Application/Web.php(20): Zend_Controller_Front->dispatch()
#17 /usr/local/psa/admin/panel/application/public/index.php(15): AdminPanel_Application_Web->run()
#18 {main}

2012-06-04T12:04:14-04:00 ERR (3): New files of configuration for Apache web server were not built due to errors in configuration templates. The detailed error message was e-mailed to you, so please check t$
2012-06-04T12:04:21-04:00 ERR (3): New files of configuration for Apache web server were not built due to errors in configuration templates. The detailed error message was e-mailed to you, so please check t$

I'm running
OS Linux 2.6.18-194.26.1.el5xen - (CentOS 5.8)
Panel version 10.4.4 Update #32.

Any thoughts?
 
This is what I got.

Generating new Apache configuration on host <server.com> failed because the following error(s) occurred:

Can not restart web server: httpd stop failed
0 /usr/sbin/httpd processes are killed
Service /etc/init.d/httpd failed to start
httpd stop failed
0 /usr/sbin/httpd processes are killed
Service /etc/init.d/httpd failed to start


Please fix error(s) in templates of Apache configuration and retry generating the configuration file.
 
Last edited:
Ok, I tried all the linked items and they still didn't help. None of them really had the same symptoms. The issue seems to be with httpd not restarting.

2 ways I've gotten the server to come back are:

running "/usr/local/psa/admin/bin/httpdmng --reconfigure-all" several times or Clicking on the Regenerate button in the admin error log

OR

Restarting the server.

Or a combo of the 2.

IgorG - Do you have any other suggestions?
 
Last edited:
Back
Top