Andrew Fletcher published: 10 June 2020 (updated) 1 February 2021 1 minute read
Using a Centos 6 or 7 server, how to check the current version of Apache?
httpd -v
This command will return a string that is similar to the following:
Server version: Apache/2.4.6 (CentOS) Server built: Nov 16 2020 16:18:20
If you want to find where the httpd binaries are located use the following:
whereis httpd
This command will return something like:
httpd: /usr/sbin/httpd.worker /usr/sbin/httpd.event /usr/sbin/httpd /etc/httpd /usr/lib64/httpd /usr/share/man/man8/httpd.8.gz
How to know which httpd is being used, enter the which command
which httpd
The response to the command produced the following
/usr/sbin/httpd
Now know which is being used, you can check the version using the path with the attribute -v
/usr/sbin/httpd -v
Again the output should be the same as above
Server version: Apache/2.4.6 (CentOS) Server built: Nov 16 2020 16:18:20
Related articles
Andrew Fletcher
•
16 Jan 2025
get IP address from terminal OSX
When troubleshooting network issues or configuring devices, knowing your IP address can be essential. Whether you're connected via Wi-Fi, Ethernet, or tethering through a mobile provider, macOS offers powerful built-in tools to quickly identify your IP address. Here's a practical guide tailored to...
Andrew Fletcher
•
07 Jan 2025
Managing DDEV environment troubleshooting and setting up multiple Drupal projects
DDEV has become a popular tool for local web development, offering a streamlined approach to managing Docker-based environments. However, setting up and managing DDEV projects, particularly with the latest versions of Docker Desktop, can present challenges. This article guides you through resolving...
Andrew Fletcher
•
28 Dec 2024
Optimising file transfers by improving efficiency from cp to rsync
Transferring files between development and production environments is a critical task in the deployment process. However, I continue to come across multiple approaches that scale from awesome automation using pipelines to the basic of direct command line entry. Where the basic approaches rely on...