Start of Content Area

Procedure documentation Starting and Stopping the Web Server  Locate the document in its SAP Library structure

Use

You can start and stop the Apache Web server manually if necessary.

Prerequisites

The apachectl file has been replaced by the apachectl-dist file. You can use the apachectl-dist file to start and stop the Apache Web server. There are changes in the structure of the Apache Web server and as a result of these you must make the following changes to the apachectl-dist file:

 

#SERVERROOT=@@SERVERROOT

SERVERROOT=<TREX Path>

#PIDFILE=${SERVERROOT}/logs/httpd.pid

PIDFILE=${SERVERROOT}/<trex_hostname>/Apache/logs/httpd.pid

#

# the path to your httpd binary, including options if necessary

#HTTPD="${SERVERROOT}/bin/httpd -d ${SERVERROOT} -R ${SERVERROOT}/libexe

HTTPD="${SERVERROOT}/exe/Apache/bin/httpd -d ${SERVERROOT}/<hostname>/

Apache -R ${SERVERROOT}/<trex_hostname>/Apache/libexec"

Example

#SERVERROOT=@@SERVERROOT

SERVERROOT=/usr/sap/TRX/TRX00

#PIDFILE=${SERVERROOT}/logs/httpd.pid

PIDFILE=${SERVERROOT}/mytrex/Apache/logs/httpd.pid

#

# the path to your httpd binary, including options if necessary

#HTTPD="${SERVERROOT}/bin/httpd -d ${SERVERROOT} -R ${SERVERROOT}/libexe

HTTPD="${SERVERROOT}/exe/Apache/bin/httpd -d ${SERVERROOT}/mytrex/

Apache -R ${SERVERROOT}/mytrex/Apache/libexec"

Starting the Web Server

...

       1.      Log on with <SAPSID>adm.

       2.      Execute the following commands:

cd <TREX_DIR>/Apache

apachectl-dist start

Stopping the Web Server

...

       1.      Log on with <SAPSID>adm.

       2.      Execute the following commands:

cd <TREX_DIR>/Apache

apachectl-dist stop

 

 

End of Content Area