When starting the Web Agent, the Web Server reports this error and the web sites are not reachable:
Mon Oct 14 13:18:52 EDT 2019
/{home_weg_server}/bin/apachectl start httpd: Syntax error on line 964 of
/{home_weg_server}opt/IHS/profiles/ihs/conf/httpd.conf: Syntax error on line 2 of /opt/IHS/profiles/ihs/conf/virtualhosts.conf:
Syntax error on line 7
/{home_webagent}/bin/libmod_sm22.so into server: libsmerrlog.so: cannot open shared object file: No such file or directory
Web Agent 12.52SP1CR09 64bit on IHS 8.5.5.16 64bit on RedHat 6;
This error occurs when there's a mismatch in the environment variable or a misconfiguration in the Apache config files (1)(2)(3).
Further, according to IBM, it is suggested to place the environment variables of the Web Agent into the envvars script of IHS instead of in apachectl script (4).
Set the IHS Web Agent environment variables that way:
# cp -p /{home_web_server}/bin/envvars /{home_web_server}/bin/envvars.orig
# cat /{home_web_agent}/ca_wa_env.sh >> /{home_web_server}/bin/envvars
. /{home_web_agent/ca_wa_env.sh
# . /{home_web_agent}/ca_wa_env.sh
and restart IHS and Web Agent to solve the issue.