httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kyle Dent <kd...@seaglass.com>
Subject Re: [users@httpd] Perl cgi problem on rh9 apache 2.0
Date Sat, 15 Nov 2003 22:38:39 GMT
On Sat, 15 Nov 2003, Brock Palen wrote:

> ok so i didnt notice the error log level i set to low,  i now get this
>
> [Sat Nov 15 16:35:33 2003] [error] [client 127.0.0.1] Premature end of script
> headers: hello.pl

If you don't have any other errors besides that one, then your
Perl interpreter is not being invoked. That means there is
something wrong with your first line

#!/usr/bin/perl

If it works for you from the command line, but not from the web
server then it has something to do with the web server's context
and the perl binary located at /usr/bin. Do the permissions allow
the web server/cgi user to execute it? Does the server user have
read access along the entire path /usr/bin? Is your web server
running in a chroot?

One thing to try is to log in as the web user (you may have to
temporarily assign the account a password and shell) and try to
execute the script. This doesn't give you exactly the same
context as the web server, but it might uncover something.

Kyle


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