Web Agent :: Oracle HTTP Server : Direct use of apachectl within Oracle9iAS is deprecated

Document ID : KB000049633
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

When I start the apachectl script from Oracle HTTP Server 10.3, there is a mention that :

****************************************************************

WARNING!! Direct use of apachectl within Oracle9iAS is deprecated.
Using apachectl in conjunction with opmn may lead
to unexpected behavior (such as opmn automatically restarting
OHS after it has been shutdown using apachectl). Please use
opmnctl (located at ORACLE_HOME/opmn/bin/opmnctl) instead.
apachectl may not be shipped with future versions of Oracle9iAS.

****************************************************************

As this is not documented, we would like to know how the environment variables should be set in order to be able to start Apache and its Web Agent using the commands:

     opmnctl [verbose] startproc ias-component=HTTP_Server        
     opmnctl [verbose] stopproc ias-component=HTTP_Server 
and 
     opmnctl startall        
     opmnctl stopall

I tried several ways to do it, but I face problems and the Web Agent does not start.

Solution:

You need to make some modifications to the apachectl script of the Oracle HTTP Server:

After the line:

STATUSURL="http://localhost:7777/server-status"

I have added:

    ./home/web/sandbox/netegrity/webagent/nete_wa_env.sh  
and I change the line  
    PID=`cat $PIDFILE`  
for  
   PID=`/usr/bin/cat $PIDFILE`  
as:  
  checkrun ()
  {  
   if [ -f $PIDFILE ]  
    then  
     PID=`/usr/bin/cat $PIDFILE`  

Then, you will be able to start and stop the Web Agent using command :

   opmnctl startall
   opmnctl stopall 
or 
  opmnctl [verbose] startproc ias-component=HTTP_Server        
   opmnctl [verbose] stopproc ias-component=HTTP_Server