Open the terminal and type:

apache2 -v   

-v Print the version of apache2, and then exit.

Answer from karel on askubuntu.com
People also ask

Why should I check my Apache version?

It is crucial to keep Apache updated to maintain security and ensure it is running optimally.

🌐
liquidweb.com
liquidweb.com › home › 3 methods of checking apache version
3 Methods of Checking Apache Version | Liquid Web
What is the easiest way to check Apache version?

Checking the Apache version through WHM is the easiest method for those who are not familiar with CLI. Simply navigate to Server Status > Apache Status, and you will have access to the current installed version of Apache.

🌐
liquidweb.com
liquidweb.com › home › 3 methods of checking apache version
3 Methods of Checking Apache Version | Liquid Web
How often should I check my Apache version?

It is a good practice to check Apache version regularly or when you suspect any security vulnerabilities. It is also recommended to keep your software up to date for optimal security and reliability.

🌐
liquidweb.com
liquidweb.com › home › 3 methods of checking apache version
3 Methods of Checking Apache Version | Liquid Web
🌐
LinuxConfig
linuxconfig.org › home › how to check apache version on linux
Check Apache Version on Linux Systems
September 21, 2025 - Various ways of checking the Apache ... is used to interact with Apache. On other distributions, like debian and ubuntu, the apache2 command is used instead....
🌐
nixCraft
cyberciti.biz › nixcraft › howto › apache › how to find out apache version using command
How To Find Out Apache Version Using Command - nixCraft
October 19, 2022 - One can use package manger too to dig out version info. For instance, on a Debian/Ubuntu Linux, I can type the following apt command: $ apt info apache2 CentOS/RHEL/Fedora Linux user can type the following rpm command/dnf command/yum command: $ rpm -q httpd $ yum info httpd $ dnf info httpd · Last metadata expiration check...
🌐
Ubuntu
ubuntu18.com › check-apache-version-ubuntu
How to Check Apache Version in Ubuntu
December 28, 2020 - How to check Apache Version in Ubuntu using apache2, apachectl, and apache2ctl command.
🌐
PhoenixNAP
phoenixnap.com › home › kb › web servers › how to check apache version
How to Check Apache Version | phoenixNAP KB
December 17, 2025 - To check the Apache version in Debian-based Linux distributions such as Ubuntu, Debian, and Linux Mint, use the apache2 command.
🌐
Abdul Wahab Junaid
awjunaid.com › home › how to find the apache web server version
How to find the Apache Web Server version | Abdul Wahab Junaid
September 2, 2023 - Look for the “Server” field in the response headers. It will typically contain the Apache version information.
Find elsewhere
🌐
Liquid Web
liquidweb.com › home › 3 methods of checking apache version
3 Methods of Checking Apache Version | Liquid Web
November 19, 2024 - The command above will return the version of Apache installed on your system via RPM package. If you are using Ubuntu, you can use the below apt-cache command to check Apache version.
Top answer
1 of 11
145

The method

Connect to port 80 on the host and send it

HEAD / HTTP/1.0

This needs to be followed by carriage-return + line-feed twice

You'll get back something like this

HTTP/1.1 200 OK
Date: Fri, 03 Oct 2008 12:39:43 GMT
Server: Apache/2.2.9 (Ubuntu) DAV/2 SVN/1.5.0 PHP/5.2.6-1ubuntu4 with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.0
Last-Modified: Thu, 02 Aug 2007 20:50:09 GMT
ETag: "438118-197-436bd96872240"
Accept-Ranges: bytes
Content-Length: 407
Connection: close
Content-Type: text/html; charset=UTF-8

You can then extract the apache version from the Server: header

Typical tools you can use

You could use the HEAD utility which comes with a full install of Perl's LWP library, e.g.

HEAD http://your.webserver.com/

Or, use the curl utility, e.g.

 curl --head http://your.webserver.com/

You could also use a browser extension which lets you view server headers, such as Live HTTP Headers or Firebug for Firefox, or Fiddler for IE

Stuck with Windows?

Finally. if you're on Windows, and have nothing else at your disposal, open a command prompt (Start Menu->Run, type "cmd" and press return), and then type this

telnet your.webserver.com 80

Then type (carefully, your characters won't be echoed back)

HEAD / HTTP/1.0

Press return twice and you'll see the server headers.

Other methods

As mentioned by cfeduke and Veynom, the server may be set to return limited information in the Server: header. Try and upload a PHP script to your host with this in it

<?php phpinfo() ?>

Request the page with a web browser and you should see the Apache version reported there.

You could also try and use PHPShell to have a poke around, try a command like

/usr/sbin/apache2 -V
2 of 11
49

httpd -v will give you the version of Apache running on your server (if you have SSH/shell access).

The output should be something like this:

Server version: Apache/2.2.3
Server built:   Oct 20 2011 17:00:12

As has been suggested you can also do apachectl -v which will give you the same output, but will be supported by more flavours of Linux.

🌐
Hivelocity
hivelocity.net › home › knowledge base articles › how to check the apache version on a linux dedicated cpanel server
How to Check the Apache Version on a Linux Dedicated cPanel Server
December 6, 2023 - This means the easiest way to check your version number is to visit a link to a file that does not actually exist, such as: https://domain.com/unknownfile.txt. If for whatever reason, this does not show you your current Apache version, you can also check using the command line.
🌐
AlexHost
alexhost.com › home › faq или база знаний › how to check the apache version in vps
How to Check the Apache Version in VPS ⋆ ALexHost SRL
December 2, 2024 - Run the Following Command: apache2 -v · or for some distributions, you may need to use: httpd -v · This command will return output similar to the following: Server version: Apache/2.4.41 (Ubuntu) Server built: 2021-03-11T18:58:20 ·
🌐
Globo.Tech
globo.tech › learning center › tutorials
How to check Apache version - Globo.Tech
March 16, 2020 - In this tutorial, we will show you how to find the version of your Apache Web server. In Debian/Ubuntu operating system, you can check the version of Apache using apachectl command:
🌐
UltaHost
ultahost.com › knowledge-base › check-apache-version-linux
How to Check Apache Version in Linux | Ultahost Knowledge Base
October 8, 2024 - You can use the apache2 -v command in Debian-based systems to check the version of Apache that is installed on your system: ... If Apache is not installed on your system, you’ll encounter a “command not found” error.
🌐
Quora
quora.com › How-do-I-check-the-version-of-running-Apache-Web-Server
How to check the version of running Apache Web Server - Quora
Answer: To check the version of the running Apache Web Server on a Linux system, you can use the `httpd` or `apache2ctl` command, depending on your Apache installation. > For Apache 2.x (e.g., Apache 2.4): ```bash httpd -v ``` or ```bash apache2ctl ...
🌐
Geek Rewind
geekrewind.com › how-to-check-install-specific-apache-version-on-ubuntu-linux
How to Check & Install Specific Apache version on Ubuntu Linux - Geek Rewind
December 27, 2021 - To get started with finding out what version of Apache you’re running, or installing a specific Apache version on Ubuntu Linux, continue below. Installing Apache on Ubuntu Linux is easy. Run the apt-get install apache2 commands to get it installed. Run the commands below to check the Apache version on the Ubuntu Linux command console.
🌐
Sky Go
silicondales.com › home › linux tutorials › how to find apache version via command line
How to find Apache version via Command Line - silicondales.com
A long time ago, we published an item which showed how to discover your Apache version on a Plesk installation. Sometimes, people land in there looking to