[Ruby on Rails] CGI works, FCGI doesn't, no error
Posted by: Joostbov
Posted on: 2005-12-09 08:06:00
Hi,
I've got a problem with a very basic Rails application.
Everything works just fine when i use dispatch.cgi in the .htaccess file.
But when i use dispatch.fcgi the application just keep loading and nothing appears.
This is the .htaccess i uploaded in /public:
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/stats/(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^/failed_auth.html$
RewriteRule .* - [L]
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.] )$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
I checked this page:http://convergentarts.com/pages/fastcgi and uploaded the fcgi_handler to the /lib folder.
The shebang line i use in dispatch.cgi and dispatch.fcgi is: #!/usr/bin/ruby1.8 because that's the only one that works.
I tried: "killall -9 dispatch.fcgi" and "killall -9 dispatch.cgi" but it returns: "no process killed"
Everything is set up correctly in the config and everything is correctly chmodded (also did: dos2unix dispatch.*).
I followed these guidelines: http://wiki.rubyonrails.com/rails/pages/TutorialStepOne
You can see it at http://test.joostbovee.com/friends/view/
Can someone help me please?
Thanks!
Edited by joostbov on 12/09/05 10:41 AM (server time).