httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Silvino C. Ferreira" <si...@devferr.com>
Subject Re: [users@httpd] Failure running CGI script using perl
Date Sun, 06 Oct 2002 13:51:09 GMT
Zac;

Bingo! You were absolutely correct.  I created the script at the linux machine
using a Linux editor and it worked just fine.

Thanks again!

Sil

Zac Stevens wrote:

> Hi Sil,
>
> On Sat, Oct 05, 2002 at 09:01:40AM -0400, Silvino C. Ferreira wrote:
> > Zac Stevens wrote:
> > > What happens when you run the script by typing:
> > >
> > > /var/www/cgi-bin/first.pl
> >
> > I get the following
> >    : bad interpreter: No such file or directoryerl
> >
> > and yes their is a erl after the word directory.
>
> Okay, this is the cause of the problem - however it's very odd and I don't
> have a good answer for you!
>
> One possibility is that there are some bad control characters in your
> script.  For example, if you create a file under Windows and then copy it
> to your unix machine, it may have broken line endings represented as '^M'
> in the file.
>
> For Apache to run your script as a CGI, you need to be able to run it by
> hand on the command line.  Until the script works that way, it definitely
> will not run as a CGI.
>
> I hope this at least takes you a step closer to a solution.
>
> Cheers,
>
> Zac
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message