When executing httpd -v , it returns the following error:
root@mymachine bin]# ./httpd -v
./httpd: error while loading shared libraries: libpcre.so.1: cannot
open shared object file: No such file or directory
Using ldd to check on the httpd binary also reports dependencies not found:
[root@mymachine bin]# ldd ./httpd
linux-gate.so.1 => (0x00d12000)
libpcre.so.1 => not found
libaprutil-1.so.0 => not found
libexpat.so.0 => /usr/lib/libexpat.so.0 (0x00e7d000)
libapr-1.so.0 => not found
libuuid.so.1 => /lib/libuuid.so.1 (0x00884000)
librt.so.1 => /lib/librt.so.1 (0x00745000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x0084e000)
libpthread.so.0 => /lib/libpthread.so.0 (0x006e3000)
libdl.so.2 => /lib/libdl.so.2 (0x0078e000)
libc.so.6 => /lib/libc.so.6 (0x0095c000)
/lib/ld-linux.so.2 (0x56605000)
libfreebl3.so => /lib/libfreebl3.so (0x00db8000)
CA Access Gateway (SPS) 12.8SP0 on RedHat 7
Using httpd -V to get the version of embedded Apache is correct.
But first, the proper environment variables need to be sourced:
$ source ca_sps_env.sh
Then the -V will give you the full details and much more !
(This is the output from CA Access Gateway (SPS) 12.8SP0)
$ ./httpd/bin/apachectl -V
Server version: Apache/2.4.27 (Unix)
Server built: Jul 25 2017 07:12:16
Server's Module Magic Number: 20120211:68
Server loaded: APR 1.6.2, APR-UTIL 1.6.0
Compiled using: APR 1.6.2, APR-UTIL 1.6.0
Architecture: 64-bit
Server MPM: worker
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with....
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=256
-D HTTPD_ROOT="/tmp/apache/httpd-2.4.27/Release"
-D SUEXEC_BIN="/tmp/apache/httpd-2.4.27/Release/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"