I want to run my Rails' apps with Apache using FCGI.
Rails Wiki Howto
install fcgi packages: libfcgi0, libfcgi-dev
install fcgi apache module: libapache2-mod-fcgid
install fcgi ruby gem: gem install fcgi
modify your apache conf file (/etc/apache2/sites-enabled/000-default)
optionally enable mod_rewrite: a2enmod rewrite
modify the fcgid.conf file (/etc/apache2/modules-enabled/fcgid.conf)
AddHandler fcgid-script .fcgi
DefaultInitEnv RAILS_ENV development
create folder in web document root for rails apps
mkdir /var/www/rails
chgrp www-data /var/www/rails
chmod g+s /var/www/rails
set up a rails app
configure rails app to use fcgi (app_home/public/.htaccess)
comment out fastcgi stuff (cause we're using fcgid!)
use dispatch.fcgi instead of dispatch.cgi
This topic: Main
>
TWikiUsers
>
ColeBeck
>
ApacheWithRails
Topic revision:
16 May 2008,
ColeBeck
Copyright © 2013-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Vanderbilt Biostatistics Wiki?
Send feedback