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
•
05 Apr 2024
Drupal 9 to 10 upgrade an example of the actual steps taken
Continuing on from the Drupal 9 to Drupal 10 upgrade outline written earlier... Upgrading Drupal 9 to Drupal 10. However, the point of difference is this article works through the actual action steps of the upgrade.Planning and testing is critical for the Drupal to version 10 process to...
Andrew Fletcher
•
18 Mar 2024
Resolving CVE-2022-48624 less issue
To resolve the CVE-2022-48624 vulnerability on Ubuntu using Nginx, it's crucial to understand that the issue lies within the "less" package, not Nginx itself. The vulnerability affects "less" before version 606, where close_altfile in filename.c in less omits shell_quote calls for LESSCLOSE,...
Andrew Fletcher
•
12 Mar 2024
How to determine the size of a directory in Terminal
To determine the size of a directory using the terminal, you can use the du (disk usage) command. The syntax for this command can vary slightly depending on the operating system you are using, but a common way to use it is as follows: For Linux and macOSdu -sh /path/to/directoryduDisk...