You are here:
Foswiki
>
Main Web
>
TWikiUsers
>
ColeBeck
>
ApacheWithRails
(16 May 2008,
ColeBeck
)
E
dit
A
ttach
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
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
R
aw View
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r1 - 16 May 2008 - 11:38:54 -
ColeBeck
Main
Home page
The Department
People
Projects
Education
Employment
Contact Us
Main Web
Main Web Home
Search
Changes
Topic list
Biostatistics Webs
HDDAC
Main
Sandbox
System
Register
|
Log In
Copyright © 2009 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki?
Send feedback