[Gllug] perl & cgi glitches

Pete Ryland pdr at pdr.cx
Sat Dec 22 09:36:09 UTC 2001


chmod a+x FormMail.pl ??

Pete

On Sat, Dec 22, 2001 at 09:27:25AM +0000, Xander D Harkness wrote:
> I have tried both /usr/bin/perl and /usr/local/bin/perl
> 
> the script works if I run it on ethe command line..
> 
> I also have FormMail.pl on the same system which works.
> 
> I have tried the same scripts on another system here with the same
> error.
> 
> Cheers
> Xander
> 
> On Sat, 2001-12-22 at 06:57, Pete Ryland wrote:
> > 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
> > > 
> 
> 
> 
> -- 
> 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/b37f01ce/attachment.pgp>


More information about the GLLUG mailing list