Skip to Content.
Sympa Menu

baslinux - Re: [BL] CGI in BL 3.50?

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: baslinux AT lists.ibiblio.org
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] CGI in BL 3.50?
  • Date: Wed, 31 Oct 2007 22:21:50 +0100

baslinux AT lists.ibiblio.org skrev:
Message from Steven
===================
Mikael Bonnier wrote:
I have experimented with httpd but I can't get CGI-programs to work. Is CGI supported in BL 3.50 that has BusyBox v1.01?

The httpd in BL3 is a tiny httpd. It happily serves
webpages and files, but beyond that it's pretty dumb.
AFAIK it does not do CGI.

There are other httpd options for BL3. There's an old httpd package for BL1 (still available at BL1 site)
that should work with BL3. I don't remember the details
of that httpd, but I'm pretty sure it was more capable than the one in BL3.

I think there's a third version of httpd that Sindi and others have been using on BasicLinux. The following thread might help:
https://lists.ibiblio.org/sympa/arc/baslinux/2005-March/007079.html

Thanks! Now CGI works. On one of the BL3 add-on sites I found a tar.gz-package which I installed with pkg. I start it with:
mini_httpd -C /etc/mini_httpd.conf

My mini_httpd.conf is:
dir=/www/
cgipat=cgi-bin/**

The output of env.sh was (when I connected using another computer):
GATEWAY_INTERFACE=CGI/1.1
REMOTE_ADDR=192.168.1.101
LD_LIBRARY_PATH=/usr/local/lib:/usr/lib
QUERY_STRING=id=38&info=M%20O%20B
HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
HTTP_HOST=192.168.1.105
SERVER_SOFTWARE=mini_httpd/1.19 19dec2003
PATH=/usr/local/bin:/usr/ucb:/bin:/usr/bin
SERVER_PROTOCOL=HTTP/1.0
REQUEST_METHOD=GET
PWD=/www/cgi-bin
SERVER_PORT=80
SCRIPT_NAME=/cgi-bin/env.cgi
SERVER_NAME=BasicLinux

Using: http://192.168.1.105/cgi-bin/env.cgi?id=38&info=M%20O%20B

Great!

Now I will write some CGI shell scripts using SQLite and perhaps Yabasic (for diagram images if possible). I found I useful tutorial on <http://www.ffnn.nl/pages/articles/linux/cgi-scripting-tips-for-bash-or-sh.php> which I will adapt to BL3.

--
// Mikael Bonnier
----
// Web: http://www.df.lth.se/~mikaelb/
// E-mail/MSN: mikaelb AT df.lth.se
// ICQ # 114635318
// Mob/SMS/MMS: +46730307498
// Phone: +4646323208
// Skype: mikael4u
// PeerCall: 700-100-2180




Archive powered by MHonArc 2.6.24.

Top of Page