[Nitro] Lighttpd and Fastcgi, innovative work flow

Malte Milatz malte at gmx-topmail.de
Sun Jan 7 17:53:52 EST 2007


I'm still trying to get into Nitro. Today's topic: How to set up Nitro
with lighttpd and fastcgi? I have fiddled with the following for about
half an hour.

$ gen app testme
$ cd testme
$ chmod u+x public/fcgi.rb
$ vi public/fcgi.rb
	# corrected shebang
$ vi conf/lhttpd.conf
	# deleted corrupted lines (82 following)
	# configured the paths
$ mkdir log

Quite a lot to do already. Now:

$ lighttpd -D -f conf/lhttpd.conf


/usr/lib/ruby/gems/1.8/gems/nitro-0.41.0/lib/nitro/adapter/fastcgi.rb:10: uninitialized constant Socket (NameError)

Added »require 'socket'« to fcgi.rb. Gives:

/usr/lib/ruby/gems/1.8/gems/nitro-0.41.0/lib/nitro/adapter/fastcgi.rb:38:in `start': uninitialized constant Nitro::FastCGI::FCGI (NameError)

Added »require 'fcgi'« to fcgi.rb. Works now. Hm. Is this a version issue?

$ lighttpd -v
lighttpd-1.4.11 (ssl) - a light and fast webserver
Build-Date: May 11 2006 00:31:57
$ ruby -v
ruby 1.8.4 (2005-12-24) [x86_64-linux]
$ apt-cache show libfcgi-ruby1.8 | grep ^Version
Version: 0.8.6-1

Happy coding and regards,


More information about the Nitro-general mailing list