You first need to find out where are those binaries stored. For this you may use the whereis command.

whereis httpd

The output will give you the different path for the files httpd like this:

httpd: /usr/sbin/httpd /usr/lib64/httpd /etc/httpd /usr/share/httpd /usr/share/man/man8/httpd.8.gz

Then, for the binaries, you can check the version using the path with the attribute -v

/usr/sbin/httpd -v

Output:

Server version: Apache/2.4.6 (CentOS)
Server built:   Oct 19 2017 20:39:16

For the yum installed version, you may also use the following command:

sudo yum list installed httpd
Installed Packages
httpd.x86_64                          2.4.6-67.el7.centos.6

Another last solution is to use: rpm -q httpd

Answer from Kevin Lemaire on Stack Overflow
🌐
Red Hat
access.redhat.com › solutions › 445713
Apache HTTPD versions supported by Red Hat - Red Hat Customer Portal
In RHEL 8 and recent (RHEL9 ,RHEL10) ... is available in Product Documentation for Red Hat Enterprise Linux · Search for httpd in Package Explorer Tool to check the httpd versions available with RHEL...
🌐
LinuxConfig
linuxconfig.org › home › how to check apache version on linux
How to check Apache version on Linux
September 21, 2025 - NOTE – DISTROS USE DIFFERENT COMMANDS On RHEL based Linux distros, OpenSUSE, and Arch Linux, the httpd command is used to interact with Apache. On other distributions, like debian and ubuntu, the apache2 command is used instead.
People also ask

How to check Apache version in Linux?

You can check the Apache version by running the commands like apachectl -v, httpd -v, or apache2 -v in the terminal.

🌐
ultahost.com
ultahost.com › knowledge-base › check-apache-version-linux
How to Check Apache Version in Linux | Ultahost Knowledge Base
Why Should I Check the Apache Version?

Knowing your Apache version helps you stay informed about potential security risks, compatibility issues, and troubleshooting problems linked to specific versions.

🌐
ultahost.com
ultahost.com › knowledge-base › check-apache-version-linux
How to Check Apache Version in Linux | Ultahost Knowledge Base
Do different Linux distributions use distinct commands to check Apache version?

Yes, some commands are specific to certain distributions. For example, apache2 -v works on Debian-based systems, while httpd -v is used in Red Hat-based systems.

🌐
ultahost.com
ultahost.com › knowledge-base › check-apache-version-linux
How to Check Apache Version in Linux | Ultahost Knowledge Base
🌐
Config Server Firewall
configserverfirewall.com › linux-tutorials › check-apache-version
How to Check Apache Web Server Version in Linux
October 24, 2020 - 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 ...
🌐
Red Hat
access.redhat.com › solutions › 4224011
How to check the Apache Tomcat and Apache Httpd version? - Red Hat Customer Portal
2 weeks ago - How to check the tomcat7 version in my JBoss Web Server 3 installation? Red Hat Enterprise Linux (RHEL) Red Hat Software Collections (RHSCL) Red Hat JBoss Web Server (JWS/EWS) Red Hat JBoss Core Services (JBCS) Apache Httpd · Apache Tomcat · A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.
🌐
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 - For example: $ sudo systemctl status apache2 # Debian/Ubuntu $ sudo systemctl status httpd # RHEL/CentOS · Getting help is easy, run: $ apache2 -h # Debian/Ubuntu $ httpd -h # CentOS/RHEL/Fedora · Printing Apache 2 version on my Ubuntu Linux ...
🌐
PhoenixNAP
phoenixnap.com › home › kb › web servers › how to check apache version
How to Check Apache Version | phoenixNAP KB
December 17, 2025 - The easiest way to check the Apache version is via the terminal. Several commands allow users to check the version. Note: The httpd -v and httpd -V commands work only in CentOS and other RedHat distributions.
Find elsewhere
🌐
UltaHost
ultahost.com › knowledge-base › check-apache-version-linux
How to Check Apache Version in Linux | Ultahost Knowledge Base
October 8, 2024 - This command runs on Debian-based ... the Apache HTTP Server is often referred to as httpd. You can use the yum package manager with the info command to check the Apache/httpd version:...
🌐
Reddit
reddit.com › r/redhat › mapping redhat's httpd and apache's
r/redhat on Reddit: Mapping Redhat's httpd and Apache's
July 10, 2024 -

Hi all, I'd like to know if somewhere I can find a mapping that compares Redhat's httpd versions to Apache's httpd versions, for cve and vulnerability purposes Ty

Top answer
1 of 4
8
The question sounds a little strange and I'm not sure how you'd want the information presented since CVEs may be fixed in completely different versions based on exactly which version of RHEL you're using. What are you trying to achieve with this information? Are you just trying to find out if a specific version of Red Hat's httpd packages are vulnerable to a specific CVE? Are you trying to find out if there are known CVEs for a specific version? Red Hat has a couple of tools that you might find useful: There's a searchable CVE database: https://access.redhat.com/security/security-updates/cve There's also the "CVE Checker" which will let you perform a bulk query: https://access.redhat.com/labs/cvechecker/ It's also worth taking a look at the backport policy ( https://access.redhat.com/security/updates/backporting/ ) Not every CVE will have an updated package available, especially for older versions of RHEL and lower criticality issues.
2 of 4
2
You can't really. At least not in the way a mapping of a RedHat version to its open source components would work. This is just straight up the package instead of a product created with multiple upstreams like Satellite. The RedHat version is the version it says it is.... Sorta. The security fixes are back ported if they apply. There are a few ways to deal with this. Mostly I just use the errata info that is on red hats cve page when dealing with org security sections that aren't using RHEL specific scans. The errata page will have info on the package version that addresses the CVE. The ideal is to have them use scans that aren't general Linux but RedHat specific. See https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/7/html/security_guide/vulnerability-scanning_scanning-the-system-for-configuration-compliance-and-vulnerabilities#red-hat-security-advisories-oval-feed_scanning-the-system-for-configuration-compliance-and-vulnerabilities But you have the other option if that's not doable.
🌐
LinuxQuestions.org
linuxquestions.org › questions › linux-newbie-8 › how-to-know-the-apache-version-216107
how to know the apache version - Linux - Newbie
August 11, 2004 - hi, i got one linux red hat server, inside already got apache but i want to know what is the version of apache, what is the command??
🌐
Linux Bash
linuxbash.sh › post › checking-apache-version-and-build-details
Checking Apache version and build details - Linux Bash
April 9, 2026 - The command depends on your Linux distribution. apache2 -v is common in Debian-based distributions like Ubuntu, while httpd -v is used in Red Hat-based systems like CentOS. If Apache is installed, you will see output like: Server version: ...
🌐
Red Hat
access.redhat.com › solutions › 3489671
How to check the version after applying patch on Apache HTTP Server? - Red Hat Customer Portal
Solution In Progress - Updated 2024-06-14T15:59:53+00:00 - English · No translations currently exist. How do I check the patched httpd version? Is there any way to confirm the version after applying a patch? Red Hat JBoss Core Services Apache HTTP Server · 2.4.23 · A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.
🌐
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 - If you need to check the Apache version number installed on your server, you can do so in one of a couple ways. In the default configuration, Apache will be set to display its version information on most of you error pages.
🌐
Liquid Web
liquidweb.com › home › 3 methods of checking apache version
3 Methods of Checking Apache Version | Liquid Web
November 19, 2024 - Entering the apachectl -v command is another way to check Apache version as shown below. ... The command will display the Apache version installed on your system, as well as the version of the OpenSSL library currently in use.
🌐
Ubiq BI
ubiq.co › home
Ubiq BI - Build dashboards & reports in minutes
May 13, 2020 - Here is how to configure Apache cache in Ubuntu.
🌐
Salivity
salivity.github.io › apache › article › how-to-check-apache-version-on-a-server
How to Check Apache Version on a Server - apache
Server Signature: By default, many Apache installations display the server version at the bottom of automatically generated pages, such as a “404 Not Found” error page or the default index directory listing.
🌐
GoDaddy
godaddy.com › en-uk › help › check-service-versions-on-my-vps-linux-server-19642
Check service versions on my VPS Linux server | VPS Hosting - GoDaddy Help GB
Apache: /usr/sbin/httpd -v or httpd -v · Apache on cPanel: /usr/local/apache/bin/httpd -v · Curl: rpm -q curl · Bash: bash --version · Exim on cPanel: exim -bV · Glibc: ldd --version or ls /lib/libc-* Kernel: uname -r · PHP on cPanel: ...
🌐
Dotlinux
dotlinux.net › blog › how-to-check-apache-version-on-linux
How to Check Apache Version on Linux: A Comprehensive Guide
Sudo privileges (required for some methods, e.g., editing Apache configs). The simplest way to check the Apache version is to use the Apache binary itself with the -v flag (lowercase “v” for “version”).