[pkg-lighttpd] Bug#571559: lighttpd: fastcgi bin-environment variable not set

Jeremy Lal kapouer at melix.org
Fri Feb 26 00:21:38 UTC 2010


Package: lighttpd
Version: 1.4.26-1
Severity: normal

I want to get an environment variable MY_VAR in a small c program (attached),
and it used to work with a previous version of lighttpd. With this version it does not. Some variables are properly set, e.g. QUERY_STRING is ok.
I also attached the lighttpd config file.



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-3-686 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lighttpd depends on:
ii  libattr1                1:2.4.44-1       Extended attribute shared library
ii  libbz2-1.0              1.0.5-4          high-quality block-sorting file co
ii  libc6                   2.10.2-5         Embedded GNU C Library: Shared lib
ii  libgamin0 [libfam0]     0.1.10-2+b1      Client library for the gamin file 
ii  libldap-2.4-2           2.4.17-2.1       OpenLDAP libraries
ii  libpcre3                7.8-3            Perl 5 Compatible Regular Expressi
ii  libssl0.9.8             0.9.8k-8         SSL shared libraries
ii  libterm-readline-perl-p 1.0303-1         Perl implementation of Readline li
ii  lsb-base                3.2-23           Linux Standard Base 3.2 init scrip
ii  mime-support            3.48-1           MIME files 'mime.types' & 'mailcap
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

Versions of packages lighttpd recommends:
ii  spawn-fcgi                    1.6.3-1    A fastcgi process spawner

Versions of packages lighttpd suggests:
ii  apache2-utils                 2.2.14-7   utility programs for webservers
ii  openssl                       0.9.8k-8   Secure Socket Layer (SSL) binary a
pn  rrdtool                       <none>     (no description available)

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testbinenv.c
Type: text/x-c
Size: 451 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-lighttpd-maintainers/attachments/20100226/04b7e18f/attachment.bin>
-------------- next part --------------
server.modules   += ( "mod_fastcgi" )

$HTTP["remoteip"] =~ "127.0.0.1" {
	fastcgi.server    += ( "testbinenv.fcgi" =>
	((
		"bin-path" => "/home/toto/testbinenv",
		"socket" => "/var/run/lighttpd/testbinenv.socket",
		"max-procs" => 1,
		"idle-timeout" => 5,
		"check-local"   => "disable",
		"bin-environment" => (
			"MY_VAR" => "test_my_var"
		),
		"bin-copy-environment" => (
			"PATH", "SHELL", "USER"
		)
	))
	)
}


More information about the pkg-lighttpd-maintainers mailing list