• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Plesk 10.4.4 MU12 - Apache Error

NicolaA

New Pleskian
Hello, after MU12 Plesk Panel shows this error after I log in: "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 here to retry generating configuration"

I did not receive any e-mail and if I click to retry generating configuration nothing changes and the error message appears again.

I also run a "/usr/local/psa/admin/sbin/httpdmng --reconfigure-all" and then I get this error:

[root@sh1 ~]# /usr/local/psa/admin/sbin/httpdmng --reconfigure-all
PleskUtilException: '/usr/local/psa/admin/bin/apache-config' '-t' failed with code 1.

stdout:


stderr:
httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 8 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 92 of /usr/local/psa/admin/conf/vhosts_bootstrap.conf: Could not open configuration file /var/www/vhosts/pelonisbalzer.it/conf/13268556360.94803800_httpd.include: Permission denied

file: /usr/local/psa/admin/plib/Service/Agent/Transport/Local/Exec.php
line: 98
code: 0
trace: #0 /usr/local/psa/admin/plib/Service/Agent/Transport/Local.php(58): Service_Agent_Transport_Local_Exec->process(5, 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(5, 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('a0fdd26f5c538ee...', 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/plib/WebServerManager/Adapter/Apache.php(125): Template_Configuration_Applier->applyConfiguration(true)
#7 /usr/local/psa/admin/plib/WebServerManager/Adapter/Apache.php(313): WebServerManager_Adapter_Apache->sync()
#8 /usr/local/psa/admin/plib/WebServerManager.php(199): WebServerManager_Adapter_Apache->reconfigureServer(Object(Db_Table_Row_ServiceNode))
#9 /usr/local/psa/admin/plib/api-common/Httpdmng.php(123): WebServerManager->reconfServer()
#10 /usr/local/psa/admin/sbin/httpdmng(13): Httpdmng->__construct()
#11 {main}

2012-01-18T11:39:22+01:00 ERR (3): Apache config (13268831610.90847200) generation failed: httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 8 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 92 of /usr/local/psa/admin/conf/vhosts_bootstrap.conf: Could not open configuration file /var/www/vhosts/pelonisbalzer.it/conf/13268556360.94803800_httpd.include: Permission denied

httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 8 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 92 of /usr/local/psa/admin/conf/vhosts_bootstrap.conf: Could not open configuration file /var/www/vhosts/pelonisbalzer.it/conf/13268556360.94803800_httpd.include: Permission denied

PleskUtilException: /usr/local/psa/admin/bin/httpdmng '--reconfigure-server' '-no-restart' failed with message: Empty error message from utility.
file: /usr/local/psa/admin/plib/common_func.php3
line: 1047
code: 0
trace: #0 /usr/local/psa/admin/plib/common_func.php3(965): util_exec('httpdmng', Array, Array, 'msg', NULL)
#1 /usr/local/psa/admin/plib/Os.php(17): smart_exec('httpdmng', Array, Array, 'msg')
#2 /usr/local/psa/admin/plib/Os.php(28): Os::exec('httpdmng', Array, 'msg')
#3 /usr/local/psa/admin/plib/api-common/Httpdmng.php(89): Os::execEx('httpdmng', Array)
#4 /usr/local/psa/admin/sbin/httpdmng(13): Httpdmng->__construct()
#5 {main}

Execution failed.
Command: httpdmng
Arguments: Array
(
[0] => --reconfigure-server
[1] => -no-restart
)

Details: Empty error message from utility.

Any ideas?
Thanks in advance
Simone
 
Last edited:
Hi,

I had similar problems with #12.
On one of our servers we had this kind of problems every day at ~0:05am when the
cronjob rewrote the configuration files. For some reason the new configuration files
in /usr/local/psa/admin/conf/, /usr/local/psa/admin/conf/generated/ and some accounts
(/var/www/vhosts/%customer_xyz%/conf/) could not be written. So I changed the names
of the newest available configuration files per hand that they match the names in the
error-logs that arrived per mail every day. After a few days I ran the command
'/usr/local/psa/admin/bin/httpdmng --reconfigure-server' AFTER I changed the configuration
files by hand. That solved the problem - at least for us.

Best regards,

Oliver Meyer
 
Hi Oliver, thanks for your reply. I checked my /usr/local/psa/admin/conf/generated/ and I can't find the configuration 13268556360.94803800_pelonisbalzer.it as indicated in the error log quoted in my previous message.

Do you think that if I delete subscription then regenerate configuration and then recreate the subscription for thsi client, would fix this error?

Thanks
Simone
 
Hi Simone,

is there another configuration with '_pelonisbalzer.it' at the end?
If yes, rename it to 13268556360.94803800_pelonisbalzer.it.
If not, I would try to delete the subscription. Then fix the rest of the
configuration files per hand and see what happens if you try to restart
Apache on the command line - when it is starting without errors I would
run the command '/usr/local/psa/admin/bin/httpdmng --reconfigure-server'.
Maybe this will fix your problems too. Good luck!

Best regards,

Oliver Meyer
 
Hi Oliver, I just checked in the /usr/local/psa/admin/conf/generated/ and there is no "_pelonisbalzer.it" configuration, but I have it on vhosts_bootstrap.conf. I also try to delete and recreate the subscription and regenerate the apache configuration and the error is showed again :(
So if I relaunch /usr/local/psa/admin/sbin/httpdmng --reconfigure-all the same error appears but for another subscription.

Should I try to add manually the 13268556360.94803800_pelonisbalzer.it in my /usr/local/psa/admin/conf/generated/ ?

Thank you very much.

Simone
 
Hi Simone,

you can try to add it by hand - just copy the configuration from another
domain (that has the same service package) and change the name and
content that it fits to the domain.

Best regards,

Oliver Meyer
 
Back
Top