How to access Apache Server status summary from a shell in RHEL?
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 statuswhen run from a shell, would give a summary of the Apache Server status.With RHEL7,apachectlruns inpass-throughmode (from the man page). How can I retrieve the Apache Server status summary, from a shell, with RHEL7?
Resolution
- First you need to enable Apache httpd
mod_statusmodule, Refer How can I view Apache server performance status then restart the httpd service and access from shell using below command, for example :
[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