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

Re: executing CGI under apache

Stewart James -Stootles- <stootles@linuxfreak.com> wrote:
>I am having an issue with the apache package and can't seem to find any
>reference to it any where, I am hoping someone here can help. This is
>occuring under woody and sid, and occurs with and without suexec.
>When trying to run any cgi sccript (even a simple "sh echo content, echo,
>env" script) I get the error
>[error] (8)Exec format error: exec of /usr/lib/cgi-bin/test.sh failed

Shell scripts must start with a #! line; something like '#! /bin/sh -e'
will do.

CGI shell scripts are evil, mind you :)


Colin Watson                                     [cjw44@flatline.org.uk]

Reply to: