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???? -- Posted via http://www.ruby-forum.com/.
Hi, What does your scgi.yaml look like? Cheers, Eric Goodwin> 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???? > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
robbie shepherd
2006-Feb-28 04:01 UTC
[Rails] Re: scgi+lighttpd+windows - why wont it work?
Hi Eric, It looks like... --- :password: HuNuSHNtQR58w :control_url: druby://127.0.0.1:8999 :port: 9999 :config: config/scgi.yaml :logfile: log/scgi.log :env: production :host: 127.0.0.1 (ps I upgraded to the latest 1.4.10a version of lighttpd, and it seems ok, still having the error when I run scgi_service from within my rails app folder) -- Posted via http://www.ruby-forum.com/.
Hey, You''re missing :disable_signals: true from your scgi.yaml since windows doesn''t have POSIX support. If you want a example scgi.yaml file, check out this: http://blog.ericgoodwin.com/articles/2006/02/27/lighttpd-virtual-hosts-with-scgi-on-windows Cheers, Eric Goodwin> Hi Eric, > > It looks like... > > --- > :password: HuNuSHNtQR58w > :control_url: druby://127.0.0.1:8999 > :port: 9999 > :config: config/scgi.yaml > :logfile: log/scgi.log > :env: production > :host: 127.0.0.1 > > (ps I upgraded to the latest 1.4.10a version of lighttpd, and it seems > ok, still having the error when I run scgi_service from within my rails > app folder) > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Arg .... sorry for the aweful grammer. I didn''t proof read the post before I sent it. Hope this helps you out though. Cheers, Eric Goodwin> Hey, > > You''re missing > :disable_signals: true > from your scgi.yaml since windows doesn''t have POSIX support. > > If you want a example scgi.yaml file, check out this: > http://blog.ericgoodwin.com/articles/2006/02/27/lighttpd-virtual-hosts-with-scgi-on-windows > > Cheers, > Eric Goodwin > >> Hi Eric, >> >> It looks like... >> >> --- >> :password: HuNuSHNtQR58w >> :control_url: druby://127.0.0.1:8999 >> :port: 9999 >> :config: config/scgi.yaml >> :logfile: log/scgi.log >> :env: production >> :host: 127.0.0.1 >> >> (ps I upgraded to the latest 1.4.10a version of lighttpd, and it seems >> ok, still having the error when I run scgi_service from within my rails >> app folder) >> >> -- >> Posted via http://www.ruby-forum.com/. >> _______________________________________________ >> Rails mailing list >> Rails@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
robbie shepherd
2006-Feb-28 05:31 UTC
[Rails] Re: Re: scgi+lighttpd+windows - why wont it work?
you F&*cking beauty!!! Thanks Eric, can''t believe I didn''t come across this fundamental neccessity anywhere else in the gazillion other sites I went to. -- Posted via http://www.ruby-forum.com/.
Eric Goodwin
2006-Feb-28 05:50 UTC
[Rails] Re: Re: scgi+lighttpd+windows - why wont it work?
No Prob. Glad I could help out.> you F&*cking beauty!!! > > Thanks Eric, can''t believe I didn''t come across this fundamental > neccessity anywhere else in the gazillion other sites I went to. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >