Getting chroot CGI working

Journal started Nov 10, 2004


Today I installed apache from scratch, as I don't like Gentoo's spidery install of apache. I'm going to chroot it, and write C-language CGI programs using libcgi and fastcgi =n.n= That's going to be interesting to say the least.

Just to make sure I don't have to figure this out all over again, modify apachectl to do the chrooting, make /sure/ you copy /dev/null into the jail. Oh, and don't use fastcgi since it requires the entire list of headers for the standard C library in its interface. ;P I hacked around it though! Now I can (drumroll) display the variables in my script environment! Uh... yeah. c.c

Latest update, chroot sucks. I'm going to "risk" not using it. If I was really concerned, I'd be using thttpd anyway. chroot is great, until you want to mirror a large number of files on your website and another device...

How did it get to be 3:18am, and how many hours since I took a stinking keyboard break??? My fingers... hurt... :droops and skulks off to bed:


Comment
Index
Previous (glibc has a Catch-22 In It)
Next (Failing to Set a Schedule)

(cc) some rights reserved