View Full Version : Offering help with rails installs
ezmobius
May 26th, 2005, 11:53 PM
Hey there folks-
I've been installing the whole rails stack on OSX and multiple linux distros for that last 6 months so if anyone needs some help getting off the ground don't hesitate to ask and I'll see what I can do to help. So far I've set up apache/fastcgi and lighttpd/fcgi and both together as well. So ask away!
steve_d555
May 27th, 2005, 12:27 AM
Most systems are fairly simple.
There is a great guide on setting up Rails/Lighttpd/FCGI here (http://wiki.rubyonrails.com/rails/show/OS+X+with+lighttpd)
For just rails and no server setup most Linux systems are fairly simple esp. Gentoo (emerge rails) and Debian (great guide here (http://mentalized.net/journal/2004/12/01/putting_debian_on_ruby_rails/)).
Otherwise I can also help with lighttpd (not much experience with apache) :cool:
$cirisme
May 30th, 2005, 10:41 AM
Hey there folks-
I've been installing the whole rails stack on OSX and multiple linux distros for that last 6 months so if anyone needs some help getting off the ground don't hesitate to ask and I'll see what I can do to help. So far I've set up apache/fastcgi and lighttpd/fcgi and both together as well. So ask away!
Perhaps you can help me. I've been spending lots of time trying to get Typo to work within Apache and FastCGI. You can see the results thus far here:
http://theologyweb.com/cgi-bin/cirisme/blog/public/
It works (barely) but you can see that none of the images appear, you can't do anything with it, and you have to use the "public" in the url.
I tried copying cgi-bin/cirisme/blog/public/.htaccess to ../.htaccess changing it a bit to read:
# General Apache options
AddHandler fastcgi-script .fcgi
AddHandler cgi-script .cgi
Options +FollowSymLinks +ExecCGI
# Redirect all requests not available on the filesystem to Rails
RewriteEngine On
# try to suggest current rss subscribers that the url moved permently
RewriteRule ^xml/([a-z]+)$ /xml/$1/feed.xml [R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ public/dispatch.fcgi [QSA,L]
# In case Rails experiences terminal errors
ErrorDocument 500 /500.html
However that really doesn't work:
http://theologyweb.com/cgi-bin/cirisme/blog/
I'm sure that with everything I've been through, this is the very last step and will take not much work or thought, but I just haven't been able to get it working properly. Any help would be greatly appreciated.
Blessings,
$cirisme
$cirisme
May 30th, 2005, 11:34 AM
Well, now I feel stupid. I now realise I'm supposed to set up the virtual host to have the document root in public. Seems to make it unnecessarily difficult to set up, but Ok then.
theking89
June 5th, 2005, 04:14 PM
Hello,
I am 2 days out from discovering rails and have got it up and running using the WEBrick server. The trouble I am having is being able to configure IIS to run rails. I have seen some documentation that suggests that it can be done, however details on the actual process are sparse. Any help is appreciated.
Thanks
Shane
SpeedJet
June 11th, 2005, 01:00 AM
Hello,
I am 2 days out from discovering rails and have got it up and running using the WEBrick server. The trouble I am having is being able to configure IIS to run rails. I have seen some documentation that suggests that it can be done, however details on the actual process are sparse. Any help is appreciated.
Thanks
Shane
Found Rails with IIS 6.0:
http://www.bitslapped.nl/articles/2005/06/05/rails-on-windows-2003
Take a look
HTH
Luis
amilcarsilvestre
June 21st, 2005, 05:53 PM
Hi,
I'm trying apache+fastcgi, but i doesn't work!
My rails application works ok on apache+cgi or webrick. When i try to use fast_cgi, it keeps loading the page and end with a 500 internal server error.
I've installed ruby_fcgi 0.8.6, ruby 1.8.2, rails 0.12.1, mod_fastcgi 2.4.2, fastcgi devel 2.4.0.
Here's the log:
# fastcgi.crash.log
fcgi 29662 starting
[Fri Jun 17 03:55:28 AMT 2005] Dispatcher failed to catch: undefined method `is_ cgi?' for FCGI:Class (NoMethodError)
/usr/lib/site_ruby/1.8/fcgi.rb:593:in `each_cgi'
/var/www/app2/public/dispatch.fcgi:43
FCGI process 29662 almost killed by this error
fcgi 29662 starting
[Fri Jun 17 03:55:28 AMT 2005] Dispatcher failed to catch: undefined method `is_ cgi?' for FCGI:Class (NoMethodError)
/usr/lib/site_ruby/1.8/fcgi.rb:593:in `each_cgi'
/var/www/app2/public/dispatch.fcgi:43
FCGI process 29662 killed by this error
And in apache log, the error is:
# /var/log/httpd/error_log
[Tue Jun 21 17:49:23 2005] [warn] FastCGI: (dynamic) server "/var/www/app2/public/dispatch.fcgi" started (pid 12411)
[Tue Jun 21 17:49:27 2005] [warn] FastCGI: (dynamic) server "/var/www/app2/public/dispatch.fcgi" started (pid 12412)
[Tue Jun 21 17:49:30 2005] [warn] FastCGI: (dynamic) server "/var/www/app2/public/dispatch.fcgi" started (pid 12413)
[Tue Jun 21 17:49:32 2005] [warn] FastCGI: (dynamic) server "/var/www/app2/public/dispatch.fcgi" (pid 12411) terminated by calling exit with status '0'
Any ideas?
Thanks,
Amilcar.
rob
June 21st, 2005, 06:59 PM
How did you install fcgi? Did you use gem install fcgi or some other means? I've only gotten it to work with gem install fcgi.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.