Hi All, has anyone ever seen it when they vist the URL in the applicaion that it just tries to download the FCGI dispatch file? Im running FC3, Lighttpd1.4.11, Rails 1.1.2 and FastCGI. i run IRB and get... irb(main):001:0> require ''fcgi.so'' => true irb(main):001:0> require ''fcgi'' => true On the default rails install page ''riding on rails''.. it should display the server details about your enviroment, but it doesnt execute the FCGI i dont think. As it doesnt display the info, but at the same time it doesnt error either. Has anyone got any ideas? im a bit stuck!! thanks tim -- Posted via http://www.ruby-forum.com/.
Show us the lighty config, and make sure dispatch.fcgi is executable. -- -- Tom Mornini On May 25, 2006, at 9:21 AM, Tim Perrett wrote:> Hi All, has anyone ever seen it when they vist the URL in the > applicaion > that it just tries to download the FCGI dispatch file? > > Im running FC3, Lighttpd1.4.11, Rails 1.1.2 and FastCGI. > > i run IRB and get... > > irb(main):001:0> require ''fcgi.so'' > => true > > irb(main):001:0> require ''fcgi'' > => true > > On the default rails install page ''riding on rails''.. it should > display > the server details about your enviroment, but it doesnt execute the > FCGI > i dont think. As it doesnt display the info, but at the same time it > doesnt error either. > > Has anyone got any ideas? im a bit stuck!! > > thanks > > tim > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
The lighty config is... var.basedir = "/var/www/sites/" $SERVER["socket"] == "101.0.0.171:80" { var.servername = "stage.butlerandtanner.com" server.document-root = basedir + servername + "/public/" # rewrite rules for rails url.rewrite = ( "^/$" => "index.html", "^([^.]+)$" => "$1.html" ) server.error-handler-404 = "/dispatch.fcgi" fastcgi.server = ( basedir + servername + "/public/dispatch.fcgi" => ( "localhost" => ( "socket" => basedir + servername + "/tmp/sockets/fcgi.socket", "min-procs" => 2, "max-procs" => 4, "max-load-per-proc" => 2, "bin-path" => basedir + servername + "/public/dispatch.fcgi", "bin-environment" => ( "RAILS_ENV" => "production" ) ) ) ) } The dispatch.fcgi is chmod to 755 Any ideas? thanks Tim Tom Mornini wrote:> Show us the lighty config, and make sure dispatch.fcgi is > executable. > > -- > -- Tom Mornini-- Posted via http://www.ruby-forum.com/.
Additionaly... if i run the fcgi file from the command line, i get an error as you would expect [root@localhost www]# ruby /var/www/sites/stage.butlerandtanner.com/public/dispatch.fcgi Status: 500 Internal Server Error Content-Type: text/html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <body> <h1>Application error</h1> <p>Change this error message for exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code) in public/500.html</p> </body> </html>[root@localhost www]# -- Posted via http://www.ruby-forum.com/.