
Step 3 − Edit Apache configuration file using your favorite text editor. Step 2 − Type following command to enable mod_status module. Follow steps below to enable and use mod_status module. mod_status module displays information such as uptime, total accesses, CPU usage, and other important details about Apache server. Checking Apache Server Uptime using mod_status ModuleĪpache web server comes with a built-in module called mod_status that can be used to display status of Apache server in real-time. If Apache server is not running, you'll get an error message indicating that server is not running. In output above, notice that Server Version, Server MPM, and other information about Apache server are displayed.

Follow steps below to check status of Apache server using apachectl command.Īpache Server Status for localhost (via 127.0.0.1) This is a command-line tool that comes with Apache web server package. Checking Apache Server Status using apachectl CommandĪnother way to check status of Apache server is to use apachectl command. If it's running, you'll also see start time, memory usage, and CPU usage of Apache process. In output above, notice that Active status indicates whether Apache server is running or not. Main PID: 1234 (code=exited, status=0/SUCCESS) Process: 1234 ExecStart=/usr/sbin/apache2 -k start (code=exited, status=0/SUCCESS) Step 4 − If Apache server is not running, you should see output similar to following.Īctive: inactive (dead) since Mon 10:25:21 EDT 2 days ago Loaded: loaded (/lib/systemd/system/rvice enabled vendor preset: enabled)Īctive: active (running) since Mon 10:25:21 EDT 2 days ago Step 3 − If Apache server is running, you should see output similar to following. Step 2 − Type following command to check status of Apache service. Step 1 − Open a terminal window on your Linux system. Follow steps below to check Apache server status using systemctl command. It can also be used to check status of Apache web server. Systemctl is a powerful command-line tool used to manage systemd system and service manager in Linux. Checking Apache Server Status using systemctl Command In this article, we'll explore three different ways to check Apache server status and uptime in Linux. However, it's important to monitor status and uptime of Apache server to ensure it's running smoothly and efficiently. In Linux, Apache can be easily installed and configured to serve web pages and other content.


Apache is a popular open-source web server that powers a large percentage of websites on internet.
