How to Check Apache Web Server Version in Linux
![How to Check Apache Web Server Version in Linux](https://storage.googleapis.com/static.configserverfirewall.com/images/linux/check-apache-version.webp)
There are one or two commands to check the Apache web server version in Linux, depending on the Linux distribution you use. The apachectl
command, which available in both Debian and RedHat based Linux distributions have -v
option which prints the Apache version:
apachectl -v
The command displays the version number, build date and time, and Linux version.
![check apache version](https://storage.googleapis.com/static.configserverfirewall.com/images/linux/apachectl-v.webp)
In CentOS and Fedora Linux, to check the apache version, type the following on the command line.
httpd -v
You should see something similar to the following output (version number and build date could be different).
![how to check apache version in linux](https://storage.googleapis.com/static.configserverfirewall.com/images/linux/httpd-v.webp)
Ubuntu and other Debian based Linux distributions have apache2
command. You can check your version in Ubuntu with the following command:
apache2 -v
Server version: Apache/2.4.41 (Ubuntu)
Server built: 2020-08-12T19:46:17