How To Find Out Apache Version Using Command

To find out the version of Apache installed on a Linux or Unix system, you can use the httpd command with the -v option. Here’s the syntax:

httpd -v

This will print the Apache version number to the console. For example:

Server version: Apache/2.4.6 (CentOS)
Server built: Sep 7 2019 08:04:56

If the httpd command is not found, you can try using apache2 instead:

apache2 -v

This should print the Apache version number on the screen, for example:

Server version: Apache/2.4.41 (Ubuntu)
Server built: 2021-08-19T15:47:28

Leave a Comment