Based on RHEL9.8:
> which apachctl
/sbin/apachectl
> apachectl -S
apachectl: The "-S" option is not supported.
In the /sbin/apachectl file, there is this message:
### NOTE: This is a replacement version of the "apachectl" script with
### some differences in behaviour to the version distributed with
### Apache httpd. Please read the apachectl(8) man page for more
### information.
The get_process_name function does identify the correct httpd, but preflight check 3.1 happens before the process name is considered, causing e.g. checks 16.2 to fail.
Side note:
On my RHEL9 server there are two identical copies (not symlinks) of httpd:
/sbin/httpd
/usr/sbin/httpd
I am unsure why there are two. The apachectl wrapper references /usr/sbin/httpd, and this is what the httpd.service runs.
The version returned by which httpd is the /sbin/httpd version.!?
Based on RHEL9.8:
In the
/sbin/apachectlfile, there is this message:The
get_process_namefunction does identify the correct httpd, but preflight check 3.1 happens before the process name is considered, causing e.g. checks 16.2 to fail.Side note:
On my RHEL9 server there are two identical copies (not symlinks) of
httpd:/sbin/httpd/usr/sbin/httpdI am unsure why there are two. The
apachectlwrapper references/usr/sbin/httpd, and this is what the httpd.service runs.The version returned by
which httpdis the/sbin/httpdversion.!?