[Xitami] using cgi with Xitami
R O
xitami@lists.xitami.org
Wed, 11 Feb 2004 10:13:29 -0800
Vera,
First off, can you even pull up a generic webpage with your current
settings. In your browswer go to: http://127.0.0.1/testpage.html . Making
certain "testpage.html" exists in your webpages root folder. If you can't
pull an html file then you have bigger issues with your configuration and
most likely its not a cgi issue at all.
Second, if you can pull html normally verify your default.cfg (config) file
and make certain your cgi path options are set correctly.
ipaddress=127.0.0.1 # * = use any IP address on host
webpages=htdocs # Relative or full path
defaults=defaults.cfg # Local config file
base-host=basehost.cfg # Base host config (optional)
portbase=0 # e.g. 5000 for port 5080
priority=1 # 1 = normal, 2=low, 3=high
background=0 # 1 = run as daemon
refresh=60 # Seconds between refreshes
cgi-url=/cgi-bin # What defines a CGI URL?
cgi-bin=cgi-bin # Relative or full path, or '*'
In the above example, all cgi files can ONLY be refernced as such:
www.foo.com/cgi-bin/testcgi.pl.
Also verify the CGI section itself:
[CGI]
enabled=1 # CGI programs enabled?
workdir=- # Where CGI scripts run
wildcard=0 # Allow /cgi-bin anywhere in URL,
0=No, 1=Yes
dirlist=0 # Allow directory listings
passargs=0 # Pass arguments on command line?
debug=0 # Keep input and output files
http-fields=1 # Add HTTP_ header fields?
http-prefix=HTTP_ # If so, what prefix?
form-fields=1 # Add form fields to environment?
form-prefix=FORM_ # If so, what prefix?
form-query=0 # Pass form fields as
QUERY_STRING?
environment=1 # CGI gets server environment?
Goodluck.
Russel P. Olinger
(310) 466-3399
rolinger1@hotmail.com
>From: Vera Cranor <vcranor@InfoAve.Net>
>Reply-To: xitami@lists.xitami.org
>To: xitami@lists.xitami.org
>Subject: Re: [Xitami] using cgi with Xitami
>Date: Tue, 10 Feb 2004 19:13:03 -0600
>
>
>Murali... I downloaded this file, bs3225b4.exe and installed it.
>This seems to be version 2.5b4 for Windows NT, 95, 98, Linux, OS/2, and
>Unix.
>(I'm using Win XP)
>
>In the "Computer Management", under Services, I now have "Xitami Web
>Server", and it says it's running.
>However... I still can't get a Perl cgi progy to run, but it will run the
>"textcgi.exe" that comes with it.
>Ping 127.0.0.1 works ok.
>
>errors.log:
> 127.0.0.1 - vera [10/Feb/2004:18:55:12 -0600] "GET /cgi-bin/test.cgi
>HTTP/1.1" 500 1065 "" "Mozilla/4.0 (compatible; MSIE
>
>6.0; Windows NT 5.1; .NET CLR 1.1.4322)"
>
>cgierr.log: empty
>
>I tried cussing and crying.... should I shoot it or just puke?
>
>vera
>
>
>--
>Xitami Users Mailing List -- For Xitami support
>To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
_________________________________________________________________
Click here for a FREE online computer virus scan from McAfee.
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963