When executing httpd -v , it returns the following error:
[root@<hostname> bin]# httpd -V
bash: httpd: command not found ...
When executing ./httpd -v , it returns the following error:
[root@<hostname> bin]# ./httpd -V
./httpd: error while loading shared libraries: libaprutil-1.so.0: 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)
This issue occurs even if 'httpd -V' is run directly from the Apache /bin directory
Default: <Install_Dir>/CA/secure-proxy/httpd/bin/
PRODUCT: Siteminder
COMPONENT: Access Gateway
VERSION: Any
OPERATING SYSTEM: Linux
'httpd -V' is the incorrect syntax. The command should be './httpd -V'. However, before you can run './httpd -V' you must first set the Siteminder Access Gateway environment variables.
Using 'apachectl' to Determine the Version of Apache HTTP Server running on Siteminder Access Gateway
NOTE: 'apachectl' does not require that you set the Siteminder environment variables in order to run correctly.
1) Change to the following directory
<Install_Dir>/CA/secure-proxy/httpd/bin/
<Install_Dir> = Root drive and path to the Siteminder Access Gateway installation
Default: /opt/CA/secure-proxy/
2) Run the following command:
./apachectl -V
Using 'httpd' to Determine the Version of Apache HTTP Server running on Siteminder Access Gateway
1) Set the Siteminder Access Gateway Environment Variables
a) Change to the following directory
<Install_Dir>/CA/secure-proxy/
<Install_Dir> = Root drive and path to the Siteminder Access Gateway installation
Default: /opt/CA/secure-proxy/
b) Run the Access Gateway Environment Variable Script:
. ./ca_sps_env.sh
2) Change to the Apache HTTP Server Installation Directory
<Install_Dir>/CA/secure-proxy/httpd/bin
3) Run the following command:
./httpd -V
RESULT: You should get output similar to the following:
Server version: Apache/2.4.58 (Unix)
Server built: Mar 5 2024 05:14:15
Server's Module Magic Number: 20120211:129
Server loaded: APR 1.7.4, APR-UTIL 1.6.3, PCRE 8.45 2021-06-15
Compiled using: APR 1.7.4, APR-UTIL 1.6.3, PCRE 8.45 2021-06-15
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_PROC_PTHREAD_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.58/Release/"
-D SUEXEC_BIN="/tmp/apache/httpd-2.4.58/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"