---- Original message ----
>Date: Tue, 30 May 2006 15:34:00 -0700
>From: prad <[EMAIL PROTECTED]>  
>Subject: cgi with chroot  
>To: misc@openbsd.org
>
>i'm using php right now and things are fine. 
>however, after reading various threads on the (recommended by several people 
>here) MARC (http://marc.theaimsgroup.com/?l=openbsd-misc) list, i was curious 
>about learning some new things like:
>
>cgi
>fastcgi
>lighttpd
>ruby
>
>which came up in the discussions.
>
>i tried to got a ksh script to work after i copied the ksh into /var/www/bin
>my understanding is that the chrooted environment doesn't give access to 
>the /bin/ksh program.

this seems like it could be a security worry, but i'm not qualified to say that
with certainty.

>
>i tried the same thing with python, but kept getting 
>Internal Server Error on the browser 
>
>and the following in the error_log:
>No such file or directory: exec of /htdocs/z/jonpy1.cgi failed
>Premature end of script headers: /htdocs/z/jonpy1.cgi
>
>i tried the same thing with ruby (copied both ruby and erb into /var/www/bin) 
>and got the same thing again.
>
>so is there something else i need to do to get cgi working in openbsd's  
>chrooted environment?
>

man ldd. it will tell you which, if any, dynamic libraries you need in your 
chroot.

>(also, lighttpd looks really neat and clean, but i don't think it runs 
>chrooted by default, right? (it's .conf file is in /etc) so to get it to do 
>that would require understanding just what the chrooted process involves, 
>which i can find from the web.)
>
>-- 
>In friendship,
>prad
>
>                                      ... with you on your journey
>Towards Freedom
>http://www.towardsfreedom.com (website)
>Information, Inspiration, Imagination - truly a site for soaring I's

Reply via email to