[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] CGI-BIN/SSI
Kevin Cawthorne - www.delamitri.co.uk <webmaster@xxxxxxxxxxxxxxx> wrote:
> I have my main site's CGI-BIN at "home/sites/home/cgi-bin" and my web
pages
> at home/sites/home/web and I am trying to run an shtml page calling
scripts
> from the cgi-bin, but get "cannot process this directive".
.shtml is the extension for files including SSI tags. Is this an SSI file
or a CGI? If so make sure you have SSI enabled for the site from the GUI.
Also, for a file to be viewable over the web it must be in the "web"
directory or a subdirectory of "web". If your script is really a CGI, you
should change the extension to .pl (if it's written in Perl) or .cgi (if
it's written in Perl or any other language). Also, make sure CGI is enabled
for the site from the GUI. CGI can be run from any directory within "web" -
don't have to necessarily put CGI in a directory called "cgi" or "cgi-bin".
*But*, CGI cannot be stored in a directory parallel to "web", CGI files must
be stored in a directory *within* web.
> I have tried changing the paths to alsort but with no luck. can some
please
> tell me what my correct path to the cgi-bin from the index.shtml page
would
> be???
Maybe I've misunderstood the entire situation, but if the CGI are in the
directory you specified then the correct path would be:
"/home/sites/home/cgi-bin/" (with the leading "/").
Steven Werby {steven-lists@xxxxxxxxxxxx}