Topic
  • 2 replies
  • Latest Post - ‏2012-05-15T15:18:11Z by Roseberry
SystemAdmin
SystemAdmin
847 Posts

Pinned topic Apache configuration Error

‏2011-03-16T09:04:53Z |
Hi,

On my Linux server I successfully installed IBM Tivoli Composite Application Manager Agent for HTTP Servers for Linux Intel R2.6 (32 bit) but I have problem with apache configuration,
when I run (from root) -> /opt/IBM/ITM/bin/itmcmd config -A ht and configure apache serwer belowe error is return:

KHTC0003E Unexpected exception java.lang.Exception: Error executing /usr/sbin/httpd with options: -V.Error code: 1. Refer to trace log.
java.lang.Exception: Error executing /usr/sbin/httpd with options: -V.Error code: 1
at com.ibm.tivoli.itcam.tema.web.ApacheCommands.callCommand(ApacheCommands.java:112)
at com.ibm.tivoli.itcam.tema.web.ApacheCommands.getHttpdVersion(ApacheCommands.java:72)
at com.ibm.tivoli.itcam.tema.web.HttpdConfProcessor.configureHttpdConf(HttpdConfProcessor.java:187)
at com.ibm.tivoli.itcam.tema.web.HttpdConfigManager.configure(HttpdConfigManager.java:56)
at com.ibm.tivoli.itcam.tema.install.kht.KhtPlugin.start(KhtPlugin.java:102)
at com.ibm.tivoli.itcam.tema.install.kht.KhtPlugin.altStart(KhtPlugin.java:72)
at com.ibm.tivoli.itcam.tema.install.kht.UnixPlugin.ttyConfig(UnixPlugin.java:70)
at ITMinstall.CandleConfigAgent.main(CandleConfigAgent.java:721)

KHTC0006E Error: Unable to determine version of Apache runtime specified by home path /etc/httpd/conf/httpd.conf

Any idea why?
When i run command /usr/sbin/httpd -V or /usr/sbin/apachectl -V from root it works.
Updated on 2012-05-15T15:18:11Z at 2012-05-15T15:18:11Z by Roseberry
  • davidlskeen
    davidlskeen
    68 Posts

    Re: Apache configuration Error

    ‏2011-03-17T18:50:12Z  
    I asked the HTTP agent dev/L3 team about this. When the ht configurator calls /usr/sbin/httpd -V from JVM, it fails with exit code 1; but the command issued from the command line works. In both cases user root is used, so permissions should not be an issue. JVM with ht configurator executes commands via CandleConfig; so something in the CandleConfig environment is probably causing the failure.

    Please open a PMR on this problem, so the support team can diagnose and resolve it.
    --
    Dave Skeen
  • Roseberry
    Roseberry
    4 Posts

    Re: Apache configuration Error

    ‏2012-05-15T15:18:11Z  
    You probably found the solution now but for all the other that can came across that error...
    If your configuring for Apache instead of indicating /usr/sbin/httpd during the config of the agent (as shown in the doc) use /usr/sbin/apachectl
    That might avoid the error and result in a successful configuration (do not forget to restart the httpd service to load the new include file).

    • - - - - - - Luc Roseberry
    Tivoli Certified
    ITIL Master Certified
    Roseberry International
    http://www.roseberry-international.com