two problems, pls help…I’m under big pressure at work to fix this!
I’m having trouble getting scgi and lighttpd running on windows - here’s
what I did:
On Win XP, I installed ruby, rubygems, and setup my rails app. All works
fine with webrick.
I then did: gem install cmdparse and gem install highline (as required
for the scgi_rails gem according to
http://www.zedshaw.com/projects/scgi_rails/)
Then I downloaded scgi_rails-0.4.3.gem and installed it.
I then ran scgi_ctrl config -S and entered a password (is this pwd
supposed to map to the db or something??).
When I cmd to my rails app and type scgi_service, i get the following
nasty error:
c:/ruby/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3/lib/scgi.rb:393:in
trap': unsupported signal SIGHUP (ArgumentError) from c:/ruby/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3/lib/scgi.rb:393:in
run’
from
c:/ruby/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3/bin/scgi_service:61
from c:/ruby/bin/scgi_service:18:in `load'
from c:/ruby/bin/scgi_service:18
I also followed the lighttpd tute at
http://wiki.rubyonrails.org/rails/pages/HowToDeployWithLighttpdOnWindows
and have my lighttpd.conf file as follows:
server.modules = (
“mod_rewrite”,
“mod_redirect”,
“mod_access”,
“mod_status”,
“mod_scgi”,
“mod_accesslog” )
server.document-root = “C:/rails/extranet/public”
server.errorlog = “C:/rails/extranet/log/lighttpd.error.log”
accesslog.filename =
“C:/rails/extranet/log/lighttpd-access.log”
static-file.exclude-extensions = ( “.php”, “.pl”, “.fcgi”, “.scgi” )
server.error-handler-404 = “C:/rails/extranet/public/dispatch.scgi”
scgi.server = (“dispatch.scgi” => ((
“host” => “127.0.0.1”,
“port” => “9999”,
“check-local” => “disable”
)) )
scgi.debug=0
status.status-url = “/server-status”
status.config-url = “/server-config”
and now lighttpd won’t start up or generate errors in the errorlog
either…why are these things always so damn difficult???