Author Topic: Windows Apache and CGI  (Read 14670 times)

support

  • Administrator
  • *****
  • Posts: 859
    • Script BASIC Open Source Project
Windows Apache and CGI
« on: March 27, 2006, 10:54:40 PM »
You need to make a few changes to get ScriptBasic to run as a CGI program under Apache for Windows.

httpd.conf

# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
AddHandler cgi-script .cgi .bas  (or whatever you would like to use as an attribute)

# First, we configure the "default" to be a very restrictive set of
# features.  
#
<Directory />
    Options FollowSymLinks +ExecCGI
    AllowOverride None
</Directory>

The first line of your script should look something like this.

#!G:/ScriptBasic/bin/scriba.exe -c
Script BASIC Project Manager