[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] CGI Wrap on a Raq2



Im getting error when I try to run a cgi script from the cgi-bin directory
of a virtual site, I think this is a 'permissions' issue, but the cobalt
docs are pretty sketchy on this... Can someone walk me through the process?

The error message I'm getting is from cgiwrap
>CGIWrap encountered an error while attempting to execute this script:

>Error Message: No such file or directory
>Error Number: 2
>This message usually indicates there is a problem with the script itself.
The owner of the script >needs to check the #! line for correctness.

The #! line matches the output from "which perl" (/usr/bin/perl).

1) What permissions should I set on the xxxxx.pl file in the cgi-bin
directory? -rwxrwxr-x?
2) How should I run my perl scripts? using a GET/POST in an HTML page?

I see from the cgi wrap docs the following :
"Dont let any untrusted user run a cgi script from the cgi-bin directory..."
Im a bit of a newbie to all this - please forgive me if Im being a bit naive
here - I was hoping to be able to just load the .pl files and be able to
execute them from the cgi-bin for testing...

Thanks,
Shaun