Ubuntu Linux

How to Check Apache Version in Ubuntu

In Ubuntu Linux, there are at least three commands available to check the apache version.

To check Apache Version, run the following command in Ubuntu terminal:

apache2 -v

Another command is the apachectl command:

apachectl -v
Server version: Apache/2.4.41 (Ubuntu)
Server built:   2020-08-12T19:46:17

The apache2ctl -v command also prints the Ubuntu Apache Version to the terminal:

apache2ctl -v

All three commands give the same output and are also available in all Debian-based Linux distributions.

how to check apache version in ubuntu