Stating Apache shows this message:
Redirecting to /bin/systemctl start httpd.service
Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.
Further investigation
Run systemctl status httpd.service -l
You'll see the cause:
Jan 22 15:55:00 localhost.localdomain systemd[1]: Starting The Apache HTTP Server...
Jan 22 15:55:00 localhost.localdomain httpd[2760]: httpd: Syntax error on line 55 of /etc/httpd/conf/httpd.conf: Cannot load /software/webagent/bin/libmod_sm24.so into server: libsmerrlog.so: cannot open shared object file: No such file or directory
Jan 22 15:55:02 localhost.localdomain systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jan 22 15:55:02 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server.
Jan 22 15:55:02 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.
Let's check our libraries:
dd /webagent path/bin/libmod_sm24.so
linux-vdso.so.1 => (0x00007fff0fcea000)
libsmerrlog.so => not found
libsmeventlogger.so => not found
libsmcommonutil.so => not found
libsmi18n.so => not found
libicudata.so.49 => not found
libicui18n.so.49 => not found
libicuio.so.49 => not found
libicuuc.so.49 => not found
libSmXlate.so => not found
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f4c67cbc000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f4c67ab7000)
librt.so.1 => /lib64/librt.so.1 (0x00007f4c678af000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f4c675a8000)
libm.so.6 => /lib64/libm.so.6 (0x00007f4c672a5000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f4c6708f000)
libc.so.6 => /lib64/libc.so.6 (0x00007f4c66cce000)
/lib64/ld-linux-x86-64.so.2 (0x00007f4c6821a000)
We have a few things missing!
Now to validate source . ./ca_wa_env.sh from the webagent install path
Let's check again...
ldd /software/webagent/bin/libmod_sm24.so
linux-vdso.so.1 => (0x00007fffed3fe000)
libsmerrlog.so => /software/webagent/bin/libsmerrlog.so (0x00007f1d1771d000)
libsmeventlogger.so => /software/webagent/bin/libsmeventlogger.so (0x00007f1d17615000)
libsmcommonutil.so => /software/webagent/bin/libsmcommonutil.so (0x00007f1d1748c000)
libsmi18n.so => /software/webagent/bin/libsmi18n.so (0x00007f1d172f9000)
libicudata.so.49 => /software/webagent/bin/libicudata.so.49 (0x00007f1d160d8000)
libicui18n.so.49 => /software/webagent/bin/libicui18n.so.49 (0x00007f1d15dad000)
libicuio.so.49 => /software/webagent/bin/libicuio.so.49 (0x00007f1d15ca0000)
libicuuc.so.49 => /software/webagent/bin/libicuuc.so.49 (0x00007f1d15a19000)
libSmXlate.so => /software/webagent/bin/libSmXlate.so (0x00007f1d158ba000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f1d15696000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f1d15491000)
librt.so.1 => /lib64/librt.so.1 (0x00007f1d15289000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f1d14f82000)
libm.so.6 => /lib64/libm.so.6 (0x00007f1d14c7f000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f1d14a69000)
libc.so.6 => /lib64/libc.so.6 (0x00007f1d146a8000)
/lib64/ld-linux-x86-64.so.2 (0x00007f1d17bc3000)
Much Better :-)
Now we must tell apache about this.
use ECHO $ to display the following environment variables, copy them to your editor of choice.
NETE_WA_ROOT
NETE_WA_PATH
CAPKIHOME
LD_LIBRARY_PATH
PATH
In your editor you'll have something like this....
NETE_WA_ROOT=/software/webagent
NETE_WA_PATH=/software/webagent/bin
CAPKIHOME=/software/webagent/CAPKI
LD_LIBRARY_PATH=/software/webagent/bin:/software/webagent/bin/thirdparty:/software/webagent/bin:/software/webagent/bin/thirdparty:
PATH=/software/webagent/bin:/software/webagent/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
Now edit /etc/sysconfig/httpd
And add these lines, the finished product will look like this:
Now start apache using
service httpd start