> I've been trying to get the cute CGI scripts in weblet.lrp to run under thttp on my LEAF box...but I can't get it to go. > > If you run the cgi-scripts by hand, they generate the right code to STDOUT, but if you invoke them via browser, you get a blanki page. > > The standard SSI example in thttpd works, so I think the CGI is set up right. And the permissions look correct as show on Charles' site... > > Anybody done this, or gotten bourne shell cgi scriipts to run under thttpd under LEAF?
*WARNING* thttpd is *VERY* paranoid about security...while you can run shell-scripts as CGI programs, there are several requirements to be able to do so, including (off the top of my head, perahps not all-inclusive): - The script must be flagged as a CGI program by thttpd's configuration file rules - The script must have world execute permissions - All resources required by the script must be available...since we're talking about a shell-script, this means /bin/sh, probably glibc, and all of the external utilities (sed, grep, &c) called by your script. For practical purposes, this generally means you cannot run shell-script CGI's when using thttpd in the default (and more secure) chroot mode. The SSI example is a statically linked binary, so it avoids any problems with running in a chroot jail, without access to libraries or other external binaries. Charles Steinkuehler http://lrp.steinkuehler.net http://c0wz.steinkuehler.net (lrp.c0wz.com mirror) ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ------------------------------------------------------------------------ leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
