So there are two ways. I will show you here and along with where are the configuration files are located and logs files also. how to check the apache version using the command line and update it on centos.
we can use the following commands to find the version installed on the CentOS machine. This will help you to update or upgrade the version from lower to higher. The current version is 2.4. This is the most widely used web server for hosting the websites on both platform Linux and windows.
How To Check Apache Web Server:
you can easily set up and configure the apache on Linux. you can also host multiple websites on the same server.
we can also find using the below command.
rpm -qa httpd
you can find the apache Default Log Locations
Configuration file location.
YouTube Link: Apache Version
You’re done command to check apache version apache centos apache version update