Apache is a free and open source web server, it is written in c and it's one of the most popular web servers.
You can use apache to serve content to your visitors from your server.
If you are using apache as a web server on your server, and you don't know which version you are running, you can easily check the version of apache by running a simple command.
In this tutorial, you will learn how to check apache version on your server, by using the
-v command, and by using the apt package manager via the
apt show command.
Check apache version
There are several methods that you can use to find out which version of apache you are using on your server. For example, you can check apache version by using apt package manager, via the
apt show command
Or you can simply use the
-v command, which is the easiest and fastest way of checking apache version on your server.
To check the version of apache, run the command below
Once you run the command above, you will get an output like below on your terminal showing the version of apache.
Check apache version using apt
Like we mentioned above, apt can also be used to check which version of apache your running on your server.
To do this, simply run the command below
sudo apt show apache2
And the command above will show you all the details about apache2 package, where the version is also included.
In this tutorial, you learned how to check version of apache via two methods. In the first method we explained how you can check apache version by using the apache2 -v command.
In the second method, we explained how you can check apache version by using the apt show apache2 command.
In this tutorial, we were running Apache on Ubuntu 22.04.