Skip to content

RHEL9 - apachectl script doesn't support expected params #445

Description

@jesusbagpuss

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.!?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions