Apache HTTP Server status

How to verify Apache status?

It is really important to be sure that Apache is actually up and running, before moving forward on our troubleshooting efforts, because it is quite common that the source of our issues is just Apache not running, see below both the CLI command we have to use and also an example for you to see how it looks like beforehand.

  • sudo systemctl status httpd.service
[juan@pc ~]$ 
[juan@pc ~]$ sudo systemctl status httpd.service
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2019-05-21 17:14:25 EDT; 9min ago
     Docs: man:httpd(8)
 Main PID: 2177 (httpd)
   Status: "Total requests: 10; Current requests/sec: 0; Current traffic:   0 B/sec"
   CGroup: /system.slice/httpd.service
           ├─2177 /usr/sbin/httpd -DFOREGROUND
           ├─3511 /usr/sbin/httpd -DFOREGROUND
           ├─3512 /usr/sbin/httpd -DFOREGROUND
           ├─3513 /usr/sbin/httpd -DFOREGROUND
           ├─3515 /usr/sbin/httpd -DFOREGROUND
           ├─3601 /usr/sbin/httpd -DFOREGROUND
           ├─3602 /usr/sbin/httpd -DFOREGROUND
           ├─3603 /usr/sbin/httpd -DFOREGROUND
           ├─3604 /usr/sbin/httpd -DFOREGROUND
           ├─3605 /usr/sbin/httpd -DFOREGROUND
           └─3606 /usr/sbin/httpd -DFOREGROUND

May 21 17:14:24 pc.tulamp.com systemd[1]: Starting The Apache HTTP Server...
May 21 17:14:25 pc.tulamp.com systemd[1]: Started The Apache HTTP Server.
[juan@pc ~]$ 
[juan@pc ~]$