1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Problem with apache

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by bokken, Nov 27, 2012.

  1. bokken

    bokken Basic Pleskian

    22
     
    Joined:
    Aug 18, 2009
    Messages:
    51
    Likes Received:
    0
    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?
     
  2. RuslanT

    RuslanT Regular Pleskian Staff Member

    25
    70%
    Joined:
    Apr 28, 2010
    Messages:
    117
    Likes Received:
    14
    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.
     
  3. bokken

    bokken Basic Pleskian

    22
     
    Joined:
    Aug 18, 2009
    Messages:
    51
    Likes Received:
    0
    amazing solution...

    Im tryed to repair with:

    http://kb.parallels.com/en/112556

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

    Disable failing domains.

    And uninstall and install all horde completly.

    Not works!!!

    I enter into the admin website in engilsh, and click in repair apache templates, and now works! (in spanish login not works...)

    Why?

    Thanks for your support!
     
  4. RuslanT

    RuslanT Regular Pleskian Staff Member

    25
    70%
    Joined:
    Apr 28, 2010
    Messages:
    117
    Likes Received:
    14
    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
     
Loading...