systemctl and Web Agent startup settings for Red Hat Apache Web Server 2.4.x

Document ID : KB000004165
Last Modified Date : 21/09/2018
Show Technical Document Details

Red Hat Enterprise Linux 7 (RHEL 7) introduced systemctl command to start and stop a service program. Here is a command line to start Red Hat Apache 2.4 Web Server.

# systemctl start httpd.service

How do you set up Web Agent for Red Hat Apache 2.4 Web Server?

In RHEL 6, /etc/sysconfig/httpd may contain the below statement to source ”” script file.

   . /opt/CA/webagent/

However, in RHEL 7, the source statement does not work.

OS: Red Hat Enterprise Linux 7 (RHEL 7)Web Server: Red Hat Apache 2.4 Web Server

In RHEL 7 /etc/sysconfig/httpd, only environment variable may be defined and the source statement does not work.


The resolution is to include the content of ”” script file in /etc/sysconfig/httpd. Beware that ${VARIABLE} must be replaced with the actual value. Especially for ${LD_LIBRARY_PATH} and ${PATH}, see these values by ‘env’ command beforehand and be sure to add it. This modification to the httpd file should be logically equal to sourcing the shell script.

-Please note that the MIT Kerberos module was updated in the newer webagent agent versions. In the older agents (as recent as 12.52 SP1 CR06), the Kerberos module is outdated if you use RedHat7.  If this is the case, modify LD_LIBRARY_PATH to include /lib64 in front of the webagent paths. This ensures that the Apache/RedHat 7 kerberos module gets loaded before the webagent's module.  The change is already included in the below example.  If this is not done, you may see errors relating to Kerberos modules failing to load.  For more information about the error, please review TEC1859038.



Here is an example of the contents of ”” which should be added in /etc/sysconfig/httpd. (Bold is effective and others are commented out)


#export NETE_WA_ROOT

#export NETE_WA_PATH



#export PATH


Additional Information:

TEC1859038 - Red Hat 7 Apache 2.4 startup fails when SSO Web Agent is installed - fails to load Kerberos module