Title
Finding the Apache version in Oracle HTTP Server (OHS)

Date
2005-10-12

Summary
There are multiple ways to get the Apache version (see below).

NOTE: The Apache version stays the same throughout a product's lifecycle.
    Product Apache Version OHS Version
    OracleAS 10g (10.1.3)    
    OracleAS 10g (10.1.2.x) Apache 2.0.52
    Apache 1.3.31
    OHS 10.1.2 R2
    OHS 10.1.2
    OracleAS 10g (9.0.4.x) Apache 1.3.28 OHS 9.0.4
    9iAS Release 2 (9.0.3.x) Apache 1.3.22 OHS 9.0.3
    9iAS Release 2 (9.0.2.x) Apache 1.3.22 OHS 9.0.2
    9iAS Release 1 (1.0.2.2.x) Apache 1.3.19 OHS 1.0.2.2
    iAS (1.0.1 - 1.0.2.1) Apache 1.3.12 OHS 1.0.2
    iAS (1.0.0) Apache 1.3.9 OHS 1.0.0
    Oracle 10g Database (10.x) Apache 1.3.28 OHS 9.0.4
    Oracle9i Database (9.2.x) Apache 1.3.19 OHS 9.2
    Oracle9i Database (9.0.1.x) Apache 1.3.12 OHS 9.0.1
    Oracle8i Database (8.1.7.x) Apache 1.3.12 OHS 8.1.7
    Oracle Applications 11.5.9 Apache 1.3.19 (iAS 1.0.2.2.2) OHS 1.0.2.2
    Oracle Applications 11.5.8 Apache 1.3.19 (iAS 1.0.2.2.2) OHS 1.0.2.2
    Oracle Applications 11.5.7 Apache 1.3.19 (iAS 1.0.2.2.2) OHS 1.0.2.2
    Oracle Applications 11.5.5 Apache 1.3.12 (iAS 1.0.2.1s) OHS 1.0.2.1s
    Oracle Applications 11.5.4 Apache 1.3.9 (must upgrade)  
Details
1. Obtain the Apache version from the inventory logs:
ls -d $ORACLE_HOME/inventory/Components*/*/* | grep "apache.apache"

2. Programatically obtain the variables using the fcgi-bin executable:
http://servername:port/fcgi-bin/echo
http://servername:port/cgi-bin/printenv

3. Obtain the Apache version from the httpd executable:
$ORACLE_HOME/Apache/Apache/bin/httpd -version

4. If ServerTokens is not set to Prod in httpd.conf, you can also see the version on a page not found page, when requesting an invalid file:
http://servername:port/thispageisnotfound

Applicable Versions
Oracle HTTP Server
Ahmed Aboulnaga

.com .com