[Gllug] perl & cgi glitches
Pete Ryland
pdr at pdr.cx
Sat Dec 22 06:57:10 UTC 2001
On Sat, Dec 22, 2001 at 05:45:35AM +0000, Xander D Harkness wrote:
> I have a friend who wants to run cgi scripts on one of my boxes.
>
> The script will not run even though I am told it will run on his
> configuration.
>
> I get the following error:
>
> [Sat Dec 22 05:14:00 2001] [error] (2)No such file or directory: exec of
> /home/ukadis/htdocs/cgi-bin/test_one.pl failed
> [Sat Dec 22 05:14:01 2001] [error] [client 213.48.46.210] Premature end
> of script headers: /home/ukadis/htdocs/cgi-bin/test_one.pl
>
> The script is :
>
> #!/usr/local/bin/perl
On most systems (well at least most linux systems) these days, the perl
binary is installed at /usr/bin/perl rather than /usr/local/bin/perl.
Pete
> print "<HTML>";
> print "<HEAD>";
> print " <TITLE>test</TITLE>";
> print "</HEAD>";
> print " <BODY TEXT = BLUE BGCOLOR = WHITE>";
> print " Test perl scripts";
> print "</BODY> </HTML>";
>
>
> The apache config is:
>
> AddHandler cgi-script .cgi .pl .ida
> <Directory /home/ukadis/htdocs/cgi-bin>
> AllowOverride None
> Options ExecCGI
> Order allow,deny
> Allow from all
> </Directory>
>
>
> I would be extremely grateful if someone could point me in the correct
> direction ;-)
>
> Kind regards
> Xander
>
>
>
> --
> Gllug mailing list - Gllug at linux.co.uk
> http://list.ftech.net/mailman/listinfo/gllug
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20011222/7dbdbe28/attachment.pgp>
More information about the GLLUG
mailing list