CGI Fiction Search Example

Dave Cragg dcragg at lacscentre.co.uk
Thu Sep 2 19:04:42 EDT 2004


On 2 Sep 2004, at 15:22, Gregory Lypny wrote:

> Hello everyone,
>
> I'm trying to run Jacqueline Landman Gay's Fiction Search CGI example 
> on my iBook.  I think I've set the correct file permissions for the 
> files in the CGI bin; everything is read-write.  But when I try to do 
> a search in my browser, it loads for a very long time and then I get 
> the following internal server error (no. 500):
>
Assuming the scripts are typed in correctly, I'd check the following:

Permissions: You need Execute permission set on the script files, not 
just Read-Write. I'm not sure if you can do this from the Finder, but 
you can do it from the Terminal by typing the ollowing:

    chmod 755 <filename>

Failing that, you should check that you have Unix style line endings in 
the script file. One way to ensure this is to put the script contents 
in a Rev field, and then export the contents to a file using the 
"binfile" url type. Something like this:

   put field "cgi" into url ("binfile:" & <filename>)

These are the two things that usually catch me out.

Cheers
Dave



More information about the use-livecode mailing list