How to Find Apache Version in Linux

Last updated on September 21st, 2021 at 11:01 am

If you know Apache version number of your web server, then you can easily install the right software tools for your websites. Here’s how to find Apache version in Linux. You can use it to check Apache version in Ubuntu, CentOS, Redhat and other Linux distributions.

 

How to Find Apache Version in Linux

Here is the command to find Apache Version in Linux.

 

Find Apache Version in Ubuntu, Debian Linux

Open terminal and run the following command

~$ apache2 -v
Server version: Apache/2.4.7 (Ubuntu)
Server built: Mar 10 2015 13:05:59

If the above command doesn’t work, try giving the full path to Apache installation in your command

~$ /usr/sbin/apache2 -v
Server version: Apache/2.4.7 (Ubuntu)
Server built: Mar 10 2015 13:05:59

Bonus Read : How to Enable Keep Alive in Apache

 

Find Apache Version in CentOS, Redhat Linux

Open terminal and run the following command

~$ httpd -v
Server version: Apache/2.2.16 (Unix)
Server built:   Oct  3 2015 11:41:41

 

Bonus Read : How to Remove Server Name from Apache Response Header

If the above command doesn’t work, try giving the full path to Apache installation in your command

~$ /usr/local/apache/bin/httpd -v
Server version: Apache/2.2.16 (Unix)
Server built:   Oct  3 2015 11:41:41

OR

$ /usr/sbin/httpd -v

depending on where you have installed Apache server

Bonus Read : How to Change Port Number in Apache in Ubuntu

 

By the way, if you want to create charts & dashboards for your business or website, you can try Ubiq. We offer a 14-day free trial.