How to access Apache Server status summary from a shell in RHEL?

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux (RHEL)
    • 7.x
  • Apache httpd 2.4.6

Issue

  • How can I retrieve the Apache Server status summary, from a shell, with RHEL7?
  • Using RHEL5 & RHEL6, the command apachectl status when run from a shell, would give a summary of the Apache Server status.With RHEL7, apachectl runs in pass-through mode (from the man page). How can I retrieve the Apache Server status summary, from a shell, with RHEL7?

Resolution

[root@localhost]# systemctl restart httpd
[root@localhost]# apachectl fullstatus

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments