"John Mellor" <[EMAIL PROTECTED]> writes:
> Thanks for your helpful reply, Andrew. Unfortunately I still cannot get
> it to work. Your advice enabled wwwoffle to find the files but my
> browser just tried to download instead of run them. I checked they were
> all executable and they worked with Apache anyway. I then upgraded to
> the latest WWWoffle and that improved things. Instead of trying to
> download the cgi file it now finds it and tries to run it but fails with
> this error:
>
> The URL that you specified is for a local CGI program on the WWWOFFLE
> server. For one reason or another this program could not be succesfully
> executed.
[snip]
> I then upped the logging to debug and saw this:
>
> Local CGI program './local/cgi-bin/Notes/b.see.cgi' (pid=15390) exited
> with status 2
>
> What am I doing wrong now? Wwwoffled is owned by me the user
It is difficult to say what is going wrong with this CGI since it is
not a WWWOFFLE CGI program and it is exiting with an error. You need
to look for the usual methods of debugging CGIs since it might not be
a WWWOFFLE problem.
Have you tried the example CGi that comes with WWWOFFLE in the contrib
directory? This is the one that I use to test the CGI mechanism in
WWWOFFLE.
You should be able to run all CGIs from the command line to test them.
This just requires setting up a few environment variables first.
In the Bourne shell this would be the following commands run from the
directory that contains the CGI:
REQUEST_METHOD=GET
QUERY_STRING=
SCRIPT_NAME=b.see.cgi
export REQUEST_METHOD
export QUERY_STRING
export SCRIPT_NAME
./b.see.cgi
The other alternative is to write a replacement shell script that
prints out the current environment and then calls the CGI.
--
Andrew.
----------------------------------------------------------------------
Andrew M. Bishop [EMAIL PROTECTED]
http://www.gedanken.demon.co.uk/
WWWOFFLE users page:
http://www.gedanken.demon.co.uk/wwwoffle/version-2.8/user.html