• 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

Problem with apache

bokken

Basic Pleskian
Hello, i having problems starting apache, im getting this error.


# /etc/init.d/httpd start
Starting httpd: 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 10 of /usr/local/psa/admin/conf/generated/13540196600.18644200_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/13539939590.34363900_recaudalia_com_webmail.include: No such file or directory
[FAILED]


I tryed to repair the apache templates:

# /usr/local/psa/admin/sbin/httpdmng --reconfigure-all
PleskUtilException: '/usr/local/psa/admin/bin/apache-config' '-t' failed with code .

stdout:


stderr:
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 10 of /usr/local/psa/admin/conf/generated/13540196600.18644200_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/13539939590.34363900_recaudalia_com_webmail.include: No such file or directory

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('e2c306114d76a7f...', 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-11-27T13:34:21+01:00 ERR (3): Apache config (13540196600.18644200) generation failed: 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 10 of /usr/local/psa/admin/conf/generated/13540196600.18644200_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/13539939590.34363900_recaudalia_com_webmail.include: No such file or directory

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 10 of /usr/local/psa/admin/conf/generated/13540196600.18644200_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/13539939590.34363900_recaudalia_com_webmail.include: No such file or directory

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: 1065
code: 0
trace: #0 /usr/local/psa/admin/plib/common_func.php3(983): 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.


This its a big problem, no webserver working.

:(

What its the problem?
 
Try to switch webmail status for the domain and reconfigure all configs again. Or switch webmail to another if not help. Possible you encountered some db inconsistency.
 
After
# /usr/local/psa/admin/sbin/httpdmng --reconfigure-all
the error
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 10 of /usr/local/psa/admin/conf/generated/13540196600.18644200_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/13539939590.34363900_recaudalia_com_webmail.includ e: No such file or directory
reproduced?

And whe space character in the error "includ e" is not misprint on the forum?
Try to remove this config from /usr/local/psa/admin/conf/webmail_horde_bootstrap.conf manually and regenerate configs again:
# /usr/local/psa/admin/sbin/httpdmng --reconfigure-all
 
Back
Top