Apache Http Status


Follow these simple steps to find out the status of Apache HTTP web server, MySQL and PHP in your LAMP stack.

Apache HTTP web server

Go to http://server-ip:80 on your web browser. A page saying your Apache server is running properly should show up.

The Apache Status is one such tool that allows for real time monitoring of Apache connections and resource usage. The Apache Status will give you information that will aid in performance monitoring and Apache tuning. Using the Apache Status. Accessing the Apache status is rather easy. You will have to SSH into the server.

Apache Http Status

Apache HTTP Server versions later than 2.2 will not run on any operating system earlier than Windows 2000. Downloading Apache for Windows The Apache HTTP Server Project itself does not provide binary releases of software, only source code. Individual committers may provide binary packages as a convenience, but it is not a release deliverable. All status codes defined in RFC1945 (HTTP/1.0, RFC2616 (HTTP/1.1), and RFC2518 (WebDAV) are supported. HTTP Status Codes This is a big update from the last time I looked into this, when I enumerated 57 Status Codes that Apache 2.x was capable of handling. This list contains 83 Status Codes that Apache recognizes. I compiled the latest 2.4.4 Apache in order to view.

If it isn’t working, then check the status of the Apache web server by running the following command in your terminal

For Ubuntu:

For CentOS:

This command will show whether Apache is running or has stopped. If it is stopped, then restart the web server for which use the below command.

For Ubuntu:

For CentOS:


You can use mysqladmin command to find out whether mysql is running or not.


If mysql is not running, you will receive the following message or similar.

You can restart mysql service using the following command

In Ubuntu:

Get imessage on mac. In CentOS:

After restarting mysql, you can check the status again to make sure it is running.


To verify if php is installed properly and running in your Virtual Compute Node, create a file by using the command below

Press the key I to edit the file, enter the following content in the file and then save and exit by pressing ESC key followed by :wq! then hit Enter.

Then restart the Apache web server . This is done in order for the web server to recognize the changes done to the server. You can check the status of php by entering the following URL in your web browser.

If php is running in your server, you will receive the following message in your web browser.

Was this article helpful?

Related Articles

Script types:portrule
Categories: discovery, safe
Download: https://svn.nmap.org/nmap/scripts/http-apache-server-status.nse

User Summary

Attempts to retrieve the server-status page for Apache webservers thathave mod_status enabled. If the server-status page exists and appears tobe from mod_status the script will parse useful information such as thesystem uptime, Apache version and recent HTTP requests.


Script Arguments


See the documentation for the slaxml library.

http.host, http.max-body-size, http.max-cache-size, http.max-pipeline, http.pipeline, http.truncated-ok, http.useragent

See the documentation for the http library.

smbdomain, smbhash, smbnoguest, smbpassword, smbtype, smbusername

Apache Http Status See the documentation for the smbauth library.

Example Usage

Script Output


Apache Status Command


Apache Http Status 404

License: Same as Nmap--See https://nmap.org/book/man-legal.html