• 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!
  • 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.

Generating new Apache configuration failed plesk 10.4.4

rescarcega

New Pleskian
I changed postfix to qmail through the component upgrade and after that Apache configuration is corrupted and will not start.

This is the error I received via mail:

Generating new Apache configuration on host <xxxx.xxx.xxx.xx> failed because the following error(s) occurred:

httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 5 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 67 of /usr/local/psa/admin/conf/generated/13391228120.29257900_server.include: Syntax error on line 6 of /usr/local/psa/admin/conf/ip_vhosts_bootstrap.conf: Could not open configuration file /var/www/vhosts/semar.gob.mx/conf/13391228120.83848500_httpd_ip_default.include: Permission denied


Please fix error(s) in templates of Apache configuration and retry generating the configuration file.

#########################

This is /var/log/sw-cp-server/error_log


2012-06-07T21:25:10-05: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 the e-mail, fix the errors, and click <a href="/admin/subscription/webserver-configuration-rebuild/?returnUrl=%2Fhome%2Fadmin">here</a> to retry generating configuration.
2012-06-07T21:25:17-05:00 ERR (3): Apache config (13391223170.42606200) generation failed: httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 5 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 67 of /usr/local/psa/admin/conf/generated/13391223170.42606200_server.include: Syntax error on line 5 of /usr/local/psa/admin/conf/ip_vhosts_bootstrap.conf: Could not open configuration file /var/www/vhosts/semar.gob.mx/conf/13391220420.24702800_httpd_ip_default.include: Permission denied

2012-06-07T21:25:38-05:00 ERR (3): Web server reconfiguration failed: New Apache configuration was not built.
2012-06-07 21:25:38: (mod_fastcgi.c.2588) FastCGI-stderr: PleskUtilException: '/usr/local/psa/admin/bin/apache-config' '-t' failed with code .

stdout:


stderr:
httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 5 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 67 of /usr/local/psa/admin/conf/generated/13391223170.42606200_server.include: Syntax error on line 5 of /usr/local/psa/admin/conf/ip_vhosts_bootstrap.conf: Could not open configuration file /var/www/vhosts/xxxxxx.xxxx.xxx/conf/13391220420.24702800_httpd_ip_default.include: Permission denied

file: /usr/local/psa/admin/plib/Service/Agent/Transport/Local/Exec.php
line: 71
code: 0
trace: #0 /usr/local/psa/admin/plib/Service/Agent/Transport/Local.php(58): Service_Agent_Transport_Local_Exec->process(4, Object(Service_Agent_Command_Exec), Object(Service_Agent_Log), Object(Service_Agent_Transport_LocalTransaction))
#1 /usr/local/psa/admin/plib/Service/Agent/Transport/Local.php(24): Service_Agent_Transport_Local->_command(4, Object(Service_Agent_Command_Exec), Object(Service_Agent_Transport_LocalTransaction), Object(Service_Agent_Log))
#2 /usr/local/psa/admin/plib/Service/Agent.php(133): Service_Agent_Transport_Local->process('ae472cf6ad6f9e4...', Array, Object(Service_Agent_Log))
#3 /usr/local/psa/admin/plib/Template/Writer/Apache.php(58): Service_Agent->commit()
#4 /usr/local/psa/admin/plib/Template/Configuration/Applier.php(196): Template_Writer_Apache->test()
#5 /usr/local/psa/admin/plib/Template/Configuration/Applier.php(117): Template_Configuration_Applier->_applyConfigurationsToServiceNode(1, Array)
#6 /usr/local/psa/admin/panel/application/controllers/SubscriptionController.php(999): Template_Configuration_Applier->applyConfiguration(true)
#7 /usr/local/psa/admin/panel/application/controllers/SubscriptionController.php(969): SubscriptionController->_webserverConfigurationRebuildServerwide()
#8 /usr/local/psa/admin/plib/Zend/Controller/Action.php(513): SubscriptionController->webserverConfigurationRebuildAction()
#9 /usr/local/psa/admin/plib/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('webserverConfig...')
#10 /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))
#11 /usr/local/psa/admin/panel/application/library/AdminPanel/Application/Web.php(20): Zend_Controller_Front->dispatch()
#12 /usr/local/psa/admin/panel/application/public/index.php(15): AdminPanel_Application_Web->run()
#13 {main}


2012-06-07T21:25:39-05: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 the e-mail, fix the errors, and click <a href="/admin/subscription/webserver-configuration-rebuild/?returnUrl=%2Fhome%2Fadmin">here</a> to retry generating configuration.
2012-06-07 21:26:52: (connections.c.1737) SSL (error): 5 -1 32 Broken pipe
2012-06-07 21:31:54: (connections.c.1737) SSL (error): 5 -1 32 Broken pipe
2012-06-07 21:36:00: (connections.c.299) SSL: 1 error:140940E5:SSL routines:SSL3_READ_BYTES:ssl handshake failure
2012-06-07 21:36:05: (connections.c.1737) SSL (error): 5 -1 0 Success
2012-06-07 21:36:05: (connections.c.1737) SSL (error): 5 -1 0 Success
2012-06-07 21:36:05: (connections.c.1737) SSL (error): 5 -1 0 Success
2012-06-07T21:36:06-05: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 the e-mail, fix the errors, and click <a href="/admin/subscription/webserver-configuration-rebuild/?returnUrl=%2Fhome%2Fadmin">here</a> to retry generating configuration.
2012-06-07T21:36:14-05:00 ERR (3): New web server configuration for some domains within the marked subscriptions was not built due to errors in configuration templates. The detailed error message was e-mailed to you, so please check the e-mail, fix the errors, and click <a href="/admin/subscription/webserver-configuration-rebuild/?returnUrl=%2Fsubscription%2Flist">here</a> to retry generating configuration.
2012-06-07 21:36:56: (connections.c.1737) SSL (error): 5 -1 32 Broken pipe
2012-06-07 21:41:59: (connections.c.1737) SSL (error): 5 -1 32 Broken pipe


I tried http://kb.parallels.com/en/111605 without success.

Any ideas?

My server:

Linux 2.6.32-71.el6.x86_64 #1 SMP Fri May 20 03:51:51 BST 2011 x86_64 x86_64 x86_64 GNU/Linux
 
Mysql entries show permission denied and syntax error

Following http://kb.parallels.com/en/112882

mysql -uadmin -p`cat /etc/psa/.psa.shadow ` psa -Nse"select * from Configurations where status='error'\G"
*************************** 1. row ***************************
207
server
1
/usr/local/psa/admin/conf/generated/13391228120.29257900_server.include
13391447890.67569900
server
NULL
error
httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 5 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 67 of /usr/local/psa/admin/conf/generated/13391447890.67569900_server.include: Syntax error on line 6 of /usr/local/psa/admin/conf/ip_vhosts_bootstrap.conf: Could not open configuration file /var/www/vhosts/xxxxx.xxxx.xx/conf/13391228120.83848500_httpd_ip_default.include: Permission denied

*************************** 2. row ***************************
208
serverHorde
1
/usr/local/psa/admin/conf/generated/13391228120.29257900_horde.include
13391447890.67569900
server
NULL
error
httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 5 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 67 of /usr/local/psa/admin/conf/generated/13391447890.67569900_server.include: Syntax error on line 6 of /usr/local/psa/admin/conf/ip_vhosts_bootstrap.conf: Could not open configuration file /var/www/vhosts/xxxxx.xxxx.xx/conf/13391228120.83848500_httpd_ip_default.include: Permission denied

....

*************************** 91. row ***************************
297
domainWebmailHorde
1

13391228120.83848500
domain
43
error
httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 5 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 67 of /usr/local/psa/admin/conf/generated/13391228120.29257900_server.include: Syntax error on line 6 of /usr/local/psa/admin/conf/ip_vhosts_bootstrap.conf: Could not open configuration file /var/www/vhosts/xxxxx.xxxx.xx/conf/13391228120.83848500_httpd_ip_default.include: Permission den


I get 91 entries with the same error, different id's

Following http://kb.parallels.com/en/112815

I get this:

mysql> select id,objectId,status,description from Configurations where status="error";
+-----+----------+--------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| id | objectId | status | description |
+-----+----------+--------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 207 | NULL | error | httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 5 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 67 of /usr/local/psa/admin/conf/generated/13391447890.67569900_server.include: Syntax error on line 6 of /usr/local/psa/admin/conf/ip_vhosts_bootstrap.conf: Could not open configuration file /var/www/vhosts/xxxxx.xxxx.xx/conf/13391228120.83848500_httpd_ip_default.include: Permission denied
|
| 208 | NULL | error | httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 5 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 67 of /usr/local/psa/admin/conf/generated/13391447890.67569900_server.include: Syntax error on line 6 of /usr/local/psa/admin/conf/ip_vhosts_bootstrap.conf: Could not open configuration file /var/www/vhosts/xxxxx.xxxx.xx/conf/13391228120.83848500_httpd_ip_default.include: Permission denied
|
| 209 | 44 | error | httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 5 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 67 of /usr/local/psa/admin/conf/generated/13391228120.29257900_server.include: Syntax error on line 6 of /usr/local/psa/admin/conf/ip_vhosts_bootstrap.conf: Could not open configuration file /var/www/vhosts/xxxxx.xxxx.xx/conf/13391228120.83848500_httpd_ip_default.include: Permission denied
|
....

| 297 | 43 | error | httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 5 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 67 of /usr/local/psa/admin/conf/generated/13391228120.29257900_server.include: Syntax error on line 6 of /usr/local/psa/admin/conf/ip_vhosts_bootstrap.conf: Could not open configuration file /var/www/vhosts/xxxxx.xxxx.xx/conf/13391228120.83848500_httpd_ip_default.include: Permission denied
|

the same 91 rows and:

mysql> select * from apsContexts where (pleskType='hosting' OR pleskType='subdomain') AND subscriptionId=0;
Empty set (0.01 sec)

mysql> select * from Subscriptions where object_id=43;
Empty set (0.01 sec)


And following: http://kb.parallels.com/en/112885


mysql> select objectId from Configurations where status='error';
+----------+
| objectId |
+----------+
| NULL |
| NULL |
| 44 |
| 44 |
| 55 |
| 55 |
| 54 |
| 54 |
| 38 |
| 38 |

...

| 11 |
| 43 |
| 43 |
+----------+
91 rows in set (0.00 sec)

mysql> select id,name,parentDomainId from domains where id=43;
+----+-------------------+----------------+
| id | name | parentDomainId |
+----+-------------------+----------------+
| 43 | walmart.goexpo.mx | 33 |
+----+-------------------+----------------+
1 row in set (0.00 sec)

mysql> select id, object_id from Subscriptions where object_id=33;
+----+-----------+
| id | object_id |
+----+-----------+
| 15 | 33 |
+----+-----------+
1 row in set (0.01 sec)

mysql> SELECT `apsContexts`.* FROM `apsContexts` AS `apsContexts` WHERE (`pleskType` = 'hosting' AND `pleskId` = 43);
Empty set (0.01 sec)


As I had followed http://kb.parallels.com/en/111605 and followed Resolution 2 then I removed entries in the Configuration table (mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -e"delete from Configurations") before trying to reconfigure Apache. Just to let you know what I had done before.

Any ideas how to procede?

The permissions at the conf directory are:

drwxr-x---. 2 root psaserv 4096 Jun 7 21:33 conf

and the files in the conf directory:

[root@server6 conf]# ll
total 80
-rw-r-----. 1 root apache 2432 Dec 17 22:28 13241825130.19814800_httpd.include
-rw-r-----. 1 root apache 1994 Dec 17 22:28 13241825140.56938000_httpd.include
-rw-r-----. 1 root apache 2237 Dec 17 22:28 13241825150.01176400_httpd.include
-rw-r-----. 1 root apache 2476 Dec 17 22:28 13241825150.60715000_httpd.include
-rw-r-----. 1 root apache 3642 Mar 21 18:38 13323767130.14637100_httpd_ip_default.include
-rw-r-----. 1 root apache 3642 May 7 21:54 13364456640.56907300_httpd_ip_default.include
-rw-r-----. 1 root apache 3642 May 8 08:52 13364851430.85323700_httpd_ip_default.include
-rw-r-----. 1 root apache 318 May 8 09:14 13364864660.96834000_httpd.include
-rw-r-----. 1 root apache 3642 May 8 09:14 13364864660.96834000_httpd_ip_default.include
-rw-r-----. 1 root apache 318 Jun 7 19:57 13391170710.43830900_httpd.include
-rw-r-----. 1 root apache 3642 Jun 7 19:57 13391170710.43830900_httpd_ip_default.include
-rw-r-----. 1 root apache 318 Jun 7 20:54 13391204880.22877900_httpd.include
-rw-r-----. 1 root apache 3642 Jun 7 20:54 13391204880.22877900_httpd_ip_default.include
-rw-r-----. 1 root apache 318 Jun 7 20:55 13391205330.57362400_httpd.include
-rw-r-----. 1 root apache 3642 Jun 7 20:55 13391205330.57362400_httpd_ip_default.include
-rw-r-----. 1 root apache 318 Jun 7 21:20 13391220420.24702800_httpd.include
-rw-r-----. 1 root apache 3642 Jun 7 21:20 13391220420.24702800_httpd_ip_default.include
-rw-r-----. 1 root apache 318 Jun 7 21:33 13391228120.83848500_httpd.include
-rw-r-----. 1 root apache 3642 Jun 7 21:33 13391228120.83848500_httpd_ip_default.include
-rw-r--r--. 1 root root 185 Dec 18 00:44 vhost.conf

Any ideas?
 
Please Help! Can you find anything in the logs I've posted? I've been having problems with the domains hosted in this server due to permission problems. I have directories with 777 permission and Apache can't write to this directories. This happen after the update issue.
 
I got some simmilar error this morning that was making Apache not to start. That seems after an auto-update of the panel:

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

httpd: Syntax error on line 210 of /etc/httpd/conf/httpd.conf: Syntax error on line 6 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 11 of /usr/local/psa/admin/conf/generated/13396585390.83471800_horde.include: Syntax error on line 31 of /usr/local/psa/admin/conf/webmail_horde_bootstrap.conf: Could not open configuration file /usr/local/psa/admin/conf/generated/13395316070.04032000_notesadlibitum_es_webmail.include: No such file or directory


Please fix error(s) in templates of Apache configuration and retry generating the configuration file.


1- I updated server with yum update. Several months without doing and it and also read about some errors due to mysqlclient old versions bugs.

2- Then I followed http://kb.parallels.com/en/112815 and http://kb.parallels.com/en/112885 , but error was server issue and related to Horde, no domain involved.

3- So I sftp'd to the server and found in /etc/httpd/conf a new httpd.conf file (last naight created) and a httpd.conf.rpmsave (year ago). I compared both and found just a couple of changes:

line 355:

Old one: UserDir disable
New one: UserDir enable

line 994:

Old one: nothing
New one: GracefulShutDownTimeout 3

Old file just works and make apache run again. This is an strange issue. I thoght about some hacking at first, but the http.conf.rpmsave file was created by root and thats not a hacking possibility at this machine.
 
Back
Top