webinator install complains about missing CGI VAR-- but they are there?

Post Reply
shad-cfr
Posts: 2
Joined: Mon Sep 27, 2004 5:09 pm

webinator install complains about missing CGI VAR-- but they are there?

Post by shad-cfr »

Checking dir with a web fetch...Ok
Verifying version...Ok
Verifying variables...*** Failed ***
$urlroot was /webinator/texis.cgi/installtest/func.html/installtest instead of /webinator/texis.cgi/installtest.

One or more variables were not set as expected by the URL:
http://dev.cfr.org/webinator/texis.cgi/ ... html?-dump
The web server may not be running Texis for that URL, or it may be
incorrectly setting CGI variables. Netscape-Enterprise/3.6 is known
to have such a bug. Your web server appears to be
Apache/1.3.29 (Unix) PHP/4.3.4 mod_layout/3.2.1.

Make sure you are running a web server that sets CGI environment
variables, such as $SCRIPT_NAME, $PATH_TRANSLATED, $PATH_INFO, and
$DOCUMENT_ROOT, correctly. Without them Vortex cannot run correctly
on a web server.
View web server reply (y/n)? [ENTER for n]:
User avatar
Kai
Site Admin
Posts: 1272
Joined: Tue Apr 25, 2000 1:27 pm

webinator install complains about missing CGI VAR-- but they are there?

Post by Kai »

View the web server reply (hit y) and send the entire contents to tech support at Thunderstone. It is likely one or more of the variables are missing or set differently than expected, especially since `installtest' appears twice in $urlroot.
shad-cfr
Posts: 2
Joined: Mon Sep 27, 2004 5:09 pm

webinator install complains about missing CGI VAR-- but they are there?

Post by shad-cfr »

the results can be seen at the url above. i've copied them here:

Texis Web Script (Vortex) Copyright © 1996-2004 Thunderstone - EPI, Inc.
Free Webinator Version 5.00.1090608945 20040723 (i686-unknown-linux2.4.2-64-32)
Environment
DOCUMENT_ROOT='/data/dev.cfr.org/htdocs'
HTTP_ACCEPT='text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1'
HTTP_ACCEPT_CHARSET='windows-1252, utf-8, utf-16, iso-8859-1;q=0.6, *;q=0.1'
HTTP_ACCEPT_ENCODING='deflate, gzip, x-gzip, identity, *;q=0'
HTTP_ACCEPT_LANGUAGE='en'
HTTP_CONNECTION='Keep-Alive, TE'
HTTP_COOKIE='s_vnum=2'
HTTP_COOKIE2='$Version=1'
HTTP_HOST='dev.cfr.org'
HTTP_IF_MODIFIED_SINCE='Mon, 27 Sep 2004 22:44:58 GMT'
HTTP_REFERER='http://thunderstone.master.com/texis/ma ... =3be3163f3'
HTTP_TE='deflate, gzip, chunked, identity, trailers'
HTTP_USER_AGENT='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2) Opera 7.50 [en]'
PATH='/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin'
REMOTE_ADDR='24.25.25.78'
REMOTE_PORT='63671'
SCRIPT_FILENAME='/data/dev.cfr.org/htdocs/webinator/texis.cgi'
SCRIPT_URI='http://dev.cfr.org/webinator/texis.cgi/ ... /func.html'
SCRIPT_URL='/webinator/texis.cgi/installtest/func.html'
SERVER_ADDR='198.104.138.142'
SERVER_ADMIN='webmaster@cfr.org'
SERVER_NAME='dev.cfr.org'
SERVER_PORT='80'
SERVER_SIGNATURE=''
SERVER_SOFTWARE='Apache/1.3.29 (Unix) PHP/4.3.4 mod_layout/3.2.1'
GATEWAY_INTERFACE='CGI/1.1'
SERVER_PROTOCOL='INCLUDED'
REQUEST_METHOD='GET'
QUERY_STRING='-dump'
REQUEST_URI='/webinator/texis.cgi/installtest/func.html?-dump'
SCRIPT_NAME='/webinator/texis.cgi/installtest/func.html'
PATH_INFO='/installtest/func.html'
PATH_TRANSLATED='/data/dev.cfr.org/htdocs/installtest/func.html'

Command line
texis.cgi -dump
Variables
$urlroot='/webinator/texis.cgi/installtest/func.html/installtest'
$pathroot='/installtest'
$sourcepath='/data/dev.cfr.org/htdocs/installtest'
User avatar
Kai
Site Admin
Posts: 1272
Joined: Tue Apr 25, 2000 1:27 pm

webinator install complains about missing CGI VAR-- but they are there?

Post by Kai »

The problem is the value of SCRIPT_NAME: according to the CGI 1.1 spec it is supposed to be just the CGI program (ie. /webinator/texis.cgi), not the CGI program plus PATH_INFO (/installtest/func.html) as it is here.

Webinator appends SCRIPT_NAME and PATH_INFO to get the value of $url; since SCRIPT_NAME incorrectly includes extra text, the resulting $url is incorrect. Later versions of Apache set SCRIPT_NAME correctly. (It may also be due to server-side includes, I'm not sure.)
Post Reply