You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Cody Harris <hc...@ns.sympatico.ca> on 2003/05/06 22:52:01 UTC

[users@httpd] CGI Error

Server 500 on a .pl file in /~user/cgi-bin. This is the error_log.

[Tue May  6 17:51:06 2003] [notice] Apache-AdvancedExtranetServer/1.3.20 
(Mandrake Linux/3mdk) mod_ssl/2.8.4 OpenSSL/0.9.6b PHP/4.0.6 configured -- 
resuming normal operations
[Tue May  6 17:51:06 2003] [notice] suEXEC mechanism enabled (wrapper: 
/usr/sbin/suexec)
[Tue May  6 17:51:06 2003] [warn] long lost child came home! (pid 15029)
[Tue May  6 17:51:06 2003] [error] (13)Permission denied: exec of 
/home/nsla/public_html/cgi-bin/setup.pl failed
[Tue May  6 17:51:06 2003] [error] (13)Permission denied: exec of 
/home/nsla/public_html/cgi-bin/setup.pl failed
[Tue May  6 17:51:07 2003] [error] [client 156.34.84.190] Premature end of 
script headers: /home/nsla/public_html/cgi-bin/setup.pl
[Tue May  6 17:51:07 2003] [error] [client 192.168.0.1] Premature end of 
script headers: /home/nsla/public_html/cgi-bin/setup.pl
[Tue May  6 17:51:08 2003] [error] (13)Permission denied: exec of 
/home/nsla/public_html/cgi-bin/setup.pl failed
[Tue May  6 17:51:08 2003] [error] [client 156.34.84.190] Premature end of 
script headers: /home/nsla/public_html/cgi-bin/setup.pl

The file is set to 777. What uh, is wrong here?



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


Re: [users@httpd] CGI Error

Posted by Joshua Slive <jo...@slive.ca>.
On Tue, 6 May 2003, Cody Harris wrote:

> #!/usr/bin/perl
>
> What should it be?

> >Look at the first line of the script.  It needs to have the correct path
> >to the script interpreter (most likely, perl).

As I said, it should be the correct path to perl.  I have no idea where
perl is installed on your system (if, indeed, it is installed on your
system at all).  You can try "which perl" or "locate perl", but those
commands may or may not be available.  "find / -name perl -print" will
probably work, but it may take a while.

Joshua.

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


Re: [users@httpd] CGI Error

Posted by Nathan Eror <na...@baremetal.com>.
Hi Cody,

> #!/usr/bin/perl
>
> What should it be?

Type 'which perl' on the command line. That should give you the path to
perl.

Cheers!
Nathan

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

-- 
-- support@baremetal.com -- http://baremetal.com/support.html --


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


Re: [users@httpd] CGI Error

Posted by Cody Harris <hc...@ns.sympatico.ca>.
#!/usr/bin/perl

What should it be?

At 05:22 PM 5/6/2003 -0400, you wrote:

>On Tue, 6 May 2003, Cody Harris wrote:
>
> > [root@vectec cgi-bin]# ./setup.cgi
> > bash: ./setup.cgi: bad interpreter: No such file or directory
> > [root@vectec cgi-bin]#
> >
> > Now what?
>
>Look at the first line of the script.  It needs to have the correct path
>to the script interpreter (most likely, perl).
>
>Joshua.
>
>---------------------------------------------------------------------
>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


Re: [users@httpd] CGI Error

Posted by Joshua Slive <jo...@slive.ca>.
On Tue, 6 May 2003, Cody Harris wrote:

> [root@vectec cgi-bin]# ./setup.cgi
> bash: ./setup.cgi: bad interpreter: No such file or directory
> [root@vectec cgi-bin]#
>
> Now what?

Look at the first line of the script.  It needs to have the correct path
to the script interpreter (most likely, perl).

Joshua.

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


Re: [users@httpd] CGI Error

Posted by Cody Harris <hc...@ns.sympatico.ca>.
[root@vectec cgi-bin]# ./setup.cgi
bash: ./setup.cgi: bad interpreter: No such file or directory
[root@vectec cgi-bin]#

Now what?

At 04:57 PM 5/6/2003 -0400, you wrote:

>On Tue, 6 May 2003, Cody Harris wrote:
>
> > Server 500 on a .pl file in /~user/cgi-bin. This is the error_log.
>
> > [Tue May  6 17:51:06 2003] [error] (13)Permission denied: exec of
> > /home/nsla/public_html/cgi-bin/setup.pl failed
> > [Tue May  6 17:51:07 2003] [error] [client 156.34.84.190] Premature end of
> > script headers: /home/nsla/public_html/cgi-bin/setup.pl
>
>Do this:
>cd /home/nsla/public_html/cgi-bin/
>./setup.pl
>
>Make sure that the response starts with one or more HTTP headers.  Most
>likely, the response is instead an error message involving an inability to
>run the script interpreter specified on the first line of setup.pl.
>
>Joshua.
>
>---------------------------------------------------------------------
>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


Re: [users@httpd] CGI Error

Posted by Joshua Slive <jo...@slive.ca>.
On Tue, 6 May 2003, Cody Harris wrote:

> Server 500 on a .pl file in /~user/cgi-bin. This is the error_log.

> [Tue May  6 17:51:06 2003] [error] (13)Permission denied: exec of
> /home/nsla/public_html/cgi-bin/setup.pl failed
> [Tue May  6 17:51:07 2003] [error] [client 156.34.84.190] Premature end of
> script headers: /home/nsla/public_html/cgi-bin/setup.pl

Do this:
cd /home/nsla/public_html/cgi-bin/
./setup.pl

Make sure that the response starts with one or more HTTP headers.  Most
likely, the response is instead an error message involving an inability to
run the script interpreter specified on the first line of setup.pl.

Joshua.

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