httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 50814] New: SSI exec not working on Windows (Apache 2.x)
Date Mon, 21 Feb 2011 20:35:37 GMT

           Summary: SSI exec not working on Windows (Apache 2.x)
           Product: Apache httpd-2
           Version: 2.2.17
          Platform: PC
        OS/Version: Windows Server 2003
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_include

We are unable to use 'exec' with Server Side Includes to execute commands and 
get the output on a Windows system using either 2.2.17 or 2.0.64.  It does 
appear to work on  We have tried Windows 2003 SP2, Windows XP SP3, 
and an older Windows 2000 system.
We used the documentation at:

To reproduce:

- Configure SSI.  In the .conf:
   a) In the <Directory> section of the DocumentRoot, change the Options value 
      so it has 'Includes'.  We used:
        Options All

   b) Uncomment these lines:
        AddType text/html .shtml
        AddOutputFilter INCLUDES .shtml

- Place an 'index.shtml' file in the DocumentRoot dir root.  We used a simple 
  one with the following contents:

   <!--#set var="FOOBAR" value="SSI is working" -->
   <!--#echo var="FOOBAR" -->
   Here is output of the internal 'dir' command: <!--#exec cmd="dir" -->
   Here is output from exec of 'c:/windows/system32/hostname.exe':
&gt;&gt;<!--#exec cmd="c:/windows/system32/hostname.exe" -->&lt;&lt;

- Start the server and access the 'index.shtml' document in your browser.
   The output shows the 'SSI is working' string, but there is no output from 
   the 'dir' and 'hostname.exe' execs for 2.x, but there is for

  It doesn't seem to matter whether the server is started as a service or from 
  the command-line, but when started from the command-line we have noticed 
  cmd-prompt windows popping up very briefly and then disappearng, as if the
  exec'ed commands may be running within them.

Note: The config for is slightly different per the 1.3 documentation:
 It uses: 
   AddHandler server-parsed .shtml
 whereas 2.x uses:  
   AddOutputFilter INCLUDES .shtml

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message