I've got Apache installed on Windows. The folder name indicates that it's Apache 2.2, but I want to see the full version number. How can I do that?
I've got Apache installed on Windows. The folder name indicates that it's Apache 2.2, but I want to see the full version number. How can I do that?
From CMD:
Example:
The version will be published in the log specified under
ErrorLog
within your configuration. (/var/log/httpd/error_log
is a standard location in many Linuxes.)Additionally, you should be able to execute the
httpd
binary equivalent in windows with-v
.Example from Linux:
I wrote this as an alternative to the suggestions above and for those using XAMPP.
Navigate to your XAMPP folder, enter your Apache folder, enter your bin folder, right click on httpd.exe. The tabs on the top will be General/ Compatibility/ Details/ Previous Versions, we want the Details tab and there it will list the File version and Product version. They will say the same thing with the File version having an extra decimal place.
For Apache itself, it will be the same procedure excluding the XAMPP part.
If you can't recall or can't find your Apache or XAMPP folder just do a windows search for httpd.exe and right click and chose the open file location.
Enable server-status
The server-status page will also show this, in addition to performance information. It starts with something like this:
See Detailed Instructions for server-status on another question.
You can use this command in powershell ise
With Powershell you don't even need to run the .exe, you can directly read the version attribute.