[Xitami] Error in CGI execution

Tom Moore tmoore1008 at yahoo.com
Thu Dec 22 07:02:33 CET 2005


Can anyone assist with getting the SSI exec command to
work? I have Ximati/2.5c2 installed on a Windows XP
Home laptop.

Xitami returns the following, with no additional
information that I can find in the log files:
[xitami SSI: Error in CGI execution]

CGI works.

The following SSI commands work:
<!--#include file="..."-->
<!--#include virtual="..."-->

The following so far do not work (the ssi:exec option
*is* enabled):
<!--#exec cgi="..."-->
<!--#exec cmd="..."-->

For the purposes of this question I have, after much
failed trial and error toggling various CGI and SSI
options, reverted back to a clean "out-of-the-box"
install:

	Application directory is: C:\Program
Files\xitami-25\app (location of xigui32.exe)
	Web directory is: C:\Program
Files\xitami-25\app\webpages (location of testssi.ssi
and testssi.inc)
	Cgi-bin directory is: C:\Program
Files\xitami-25\app\cgi-bin 

The "out-of-the-box" [Cgi] and [Ssi] settings in the
xitami.cfg file (straight out of the xiopen_2_5.zip
file) are:

[Cgi]
    enabled=1
    workdir=-
    wildcard=0
    timeout=60
    monitor=200
    dirlist=0
    msdos-style=0
    debug=0
    stdio=1
    mixed-url=1
    errlog=cgierr.log
    environment=1
    passargs=0
    http-fields=1
    http-prefix=HTTP_
    form-fields=1
    form-prefix=FORM_
    form-query=0

[Ssi]
    enabled=1
    timefmt=%A, %d-%b-%y %H:%M:%S %Z
    sizefmt=bytes
    timeout=30
    errmsg=<p>[xitami SSI: %s]
    exec=0

Before making any changes, I've opened testssi.ssi
(which "includes"s testssi.inc, which "exec"s
testcgi.exe) in my browser and Xitami returns:
[xitami SSI: #exec command not permitted for security
reasons;]

I've then made two changes. First, I've set the
xitami.cfg ssi:exec option:

[Ssi]
    exec=1

...and Xitami returns:
[xitami SSI: ]

Next, I've dropped a testcgi.exe into C:\Program
Files\xitami-25\app\cgi-bin, and arrive at the error
in question--so it's definitely finding the CGI
executable: 
[xitami SSI: Error in CGI execution]

For the record, testcgi.exe works when called
directly, as follows, from either the command line or
the browser:
C:\Program Files\xitami-25\app\cgi-bin>testcgi.exe
http://127.0.0.1/cgi-bin/testcgi.exe?arguments

I've also tried unsuccessfully to invoke a simple .bat
file (C:\Program
Files\xitami-25\app\cgi-bin\helloworld.bat):
@echo off
echo content-type: text/html
type newline.txt
echo hello world

...via the following SSI exec:
<!--#exec cgi="/cgi-bin/helloworld.bat"-->

Regards,
Tom Moore

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam
protection around 
http://mail.yahoo.com 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the Xitami mailing list