I started a new project (Rails 1.1.6, MacOSX 10.4.7) and immediately fired LightTPD by issuing ./script/server only to get this error message:
Undefined config variable: var.CWD
2006-08-21 10:35:36: (configfile.c.800) source: config/lighttpd.conf line: 10 pos: 43 parser failed somehow near here: +
Why this? Anyone?
(someone stated in TroubleShootingRails)
There is a variable in the lighttpd.config file – CWD – with no set value. I experienced this same issue and decided to set the value myself using the absolute path to the Current Working Directory. I’m developing on OSX so the path to my application is set to CWD = â€?/Users/myname/son/workordersâ€?. This isn’t a great solution but I haven’t found an alternative yet.
(from http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/197740)
Install lighttpd 1.4.10 or newer. It has the CWD variable used correctly.
Instructions
(from http://www.lakitu.de/2006/03/29/lighttpd-und-rails-11/)
Download sources from http://www.lighttpd.net/download/lighttpd-1.4.11.tar.gz
Then issue the following commands into a Terminal session:
tar xzvf lighttpd-1.4.11.tar.gz
./configure
make
sudo make install
This problem was also described in TroubleShootingRails, I clipped from there.
I started a new project (Rails 1.1.6, MacOSX 10.4.7) and immediately fired LightTPD by issuing ./script/server only to get this error message:
Undefined config variable: var.CWD
2006-08-21 10:35:36: (configfile.c.800) source: config/lighttpd.conf line: 10 pos: 43 parser failed somehow near here: +
Why this? Anyone?
(someone stated in TroubleShootingRails)
There is a variable in the lighttpd.config file – CWD – with no set value. I experienced this same issue and decided to set the value myself using the absolute path to the Current Working Directory. I’m developing on OSX so the path to my application is set to CWD = â€?/Users/myname/son/workordersâ€?. This isn’t a great solution but I haven’t found an alternative yet.
(from http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/197740)
Install lighttpd 1.4.10 or newer. It has the CWD variable used correctly.
Instructions
(from http://www.lakitu.de/2006/03/29/lighttpd-und-rails-11/)
Download sources from http://www.lighttpd.net/download/lighttpd-1.4.11.tar.gz
Then issue the following commands into a Terminal session:
tar xzvf lighttpd-1.4.11.tar.gz
./configure
make
sudo make install
This problem was also described in TroubleShootingRails, I clipped from there.