12

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?

6 Answers 6

6

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:

# /usr/local/apache/bin/httpd -v
Server version: Apache/1.3.41 (Unix)
Server built:   Sep 10 2009 10:42:36
2
  • 7
    How is this the accepted answer if the question clearly states that Apache is installed on Windows? The answer from Bradley Forney below is better. May 10, 2016 at 11:44
  • 1
    @RobinvanBaalen Probably because this answer pre-dates Bradley's by five years, and any remotely competent system administrator should be capable of adapting it for Windows use. (Bradley's just done that legwork for them.)
    – Iszi
    Jul 6, 2016 at 17:28
13

From CMD:

"C:\Program Files\[Apache directories]\bin\httpd.exe" -v

Example:

C:\Documents and Settings\User>"c:\Program Files\Apache Software Foundation\Apache2.2\bin\httpd.exe" -v
Server version: Apache/2.2.21 (Win32)
Server built:   Sep  9 2011 10:26:10
2

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.

0

Enable server-status

The server-status page will also show this, in addition to performance information. It starts with something like this:

Apache Server Status for localhost

Server Version: Apache/2.2.14 (Win32) PHP/5.3.1

Server Built: Sep 28 2009 22:41:08

See Detailed Instructions for server-status on another question.

0

You can use this command in powershell ise

(((. "C:\Apache24\bin\httpd.exe" -v ) -split "/") -split " \(")[1]
0

With Powershell you don't even need to run the .exe, you can directly read the version attribute.

(Get-Command ./httpd.exe).FileVersionInfo.FileVersion

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .