httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brock Palen <bro...@umich.edu>
Subject Re: [users@httpd] Perl cgi problem on rh9 apache 2.0
Date Sat, 15 Nov 2003 23:18:57 GMT
That was a great idea i didn't think of and will be very helpfull in the past
but still worked as teh webserers user,  not running chroot'ed

bash-2.05b$ ./hello.pl
Content-type: text/html
 
Hello, World.bash-2.05b$

So any more ideas?  so running in the cgi directory as teh webservers user lets
me know if the webserver can ex the binary.
__________________________________________________
www.palen.serveftp.net
www.umsolar.com
brockp@umich.edu


Quoting Kyle Dent <kdent@seaglass.com>:

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

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