Check Apache version on Ubuntu linux

To ensure that we have the latest version of the Apache web server running, we need to perform a check on our current version.

In the tutorial below, we will demonstrate how easy it is to check our Apache version on Ubuntu or other similar modern flavour of Linux.

To check what version of Apache we have running, we can open a terminal and execute the following command:

apache2 -v

We invoke the apache2 binary which is located at /usr/sbin/apache2 (by default in Ubuntu 10.04 LTS) and tell it that we want to know the current version.

The result will look something like:

Server version: Apache/2.2.14 (Ubuntu)
Server built: Nov 14 2010 23:57:03

From the result we can see that we are running Apache 2.2.14 on Ubuntu. We also get the date the Apache server was built which may also be helpful.

It is always important to ensure that our web server software is kept up to date as it is the piece of software through which our website interacts with the rest of the world. Out of date software is the leading cause of vulnerabilities which affect systems. Newer versions of Apache will be more secure and more stable so it is definitely a win-win situation to have the newer/later version installed.

From a security perspective, it is also important to keep your server operating system up to date. To keep your Ubuntu server software up to date, learn how to update Ubuntu using the command line.

We hope this tutorial was helpful in showing you how to check the version of Apache that you have running on your Linux server.

Thank Tutorial Arena for This Tutorial.
Show your appreciation with a +1...