Re: CGI scripts and Busybox



On Fri, 13 Jun 2008 22:03:58 +0300
ccostin <ccostin.dmu@xxxxxxxxx> wrote:

Hello

What is the minimal configuration for httpd.conf required by busybox
httpd to run simple CGI scripts ?
For this are necessary any special environment exported variables ?

When I try to load simple bourne shell scripts, Iceweasel ask me to
save them on disk.

Command line for busybox is
busybox httpd -h /var/www/
and shell scripts are contained in /var/www/cgi-bin/, and have a+x
execution bits.


Sounds like a problem with the content-type. Make sure you set it to
text/html, like the following simple script:

#!/usr/bin/bash
echo -e "Content-type: text/html\n\n";
echo -e "Hello world.\n";

--
Nyizsa.
http://nyizsa.uni.cc

----------------------------------------------------------------------
Get a free email address with REAL anti-spam protection.
http://www.bluebottle.com/tag/1


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: CGI scripts and Busybox
    ... I believe that busybox in Etch does not support it yet. ... When I try to load simple bourne shell scripts, ... sys 0m2.036s ...
    (Debian-User)
  • Re: CGI scripts and Busybox
    ... I believe that busybox in Etch does not support it yet. ... When I try to load simple bourne shell scripts, ... shell scripts may be useful for trivial CGI scripts. ... ccostin explicitly mentioned Bourne shell scripts, ...
    (Debian-User)
  • Re: Simple Command Replacement with Busybox Binary?
    ... is there an easy method of overwriting existing commands with the ... Busybox binary on an already installed system? ... That's what I'm trying to avoid, but my guess is if I do use Busybox ... Are you sure none of the init scripts will need more than busybox? ...
    (comp.os.linux.misc)
  • Ordering init scripts & use of CONCURRENCY
    ... by changing the numbers would no longer work. ... I.e., starting scripts in parallel. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Increase space for /var/db/
    ... But you have another cleaner option w/ MySQL. ... /usr/local/etc/rc.d/ scripts so I ... To unsubscribe, ... Protect your identity with Yahoo! ...
    (freebsd-questions)