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 Sat, 05 Oct 2002 13:01:40 GMT
Hi Zac,

Zac Stevens wrote:

> Hi Silvino,
>
> On Sat, Oct 05, 2002 at 12:07:11AM -0400, Silvino C. Ferreira wrote:
> > I have checked the script by running it through the command
> >     /etc/bin/perl  first.pl
> > and it creates valid html.
> >
> > I have verified that /usr/bin/perl does exist and that it has
> > permissions of 755.
>
> I presume that's a typo above where you say /etc/bin/perl ?

Yes.

>
> Anyway, that part is immaterial as Apache does not invoke the CGI script
> in that way.
>
> What happens when you run the script by typing:
>
> /var/www/cgi-bin/first.pl
>
> at your command prompt?

I get the following
   : bad interpreter: No such file or directoryerl

and yes their is a erl after the word directory.

> My first guess would be that you do not have
> execute permissions on the script.  If that's the case,
>
> chmod 755 /var/www/cgi-bin/first.pl

I checked. Both  /var/www/cgi-bin/first.pls and /usr/bin/perl are set to 755

Any other suggestions?

Thanks

Sil





---------------------------------------------------------------------
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