I have an app that I’ve been developing for some time with RADRails and
WEBrick locally. I wanted to take it to Apache and following the
following steps:
-
Downloaded and extracted InstantRails.
-
Started and tested cookbook with SCGI. Works great.
-
Copied my app over to rails_apps directory.
-
Added a virtual host to Apache identical to cookbook (just using port
9999
with cookbook shutdown) and:ServerName www.myrailsapp.com
handle all requests through SCGI
SCGIMount /dispatch.fcgi 127.0.0.1:9999
DocumentRoot ${path}/rails_apps/myrailsapp/public
<Directory ${path}/rails_apps/myrailsapp/public> -
Added my URL www.myrailsapp.com to Windows hosts file.
-
Configured InstantRails copy of MySQL
-
Shutdown cookbook and my local copy of MySQL. No Apache or anything
else
should be running.
If I start the app in InstantRails with WEBrick, works fine. With SCGI,
in the
Apache error log, I see:
[Sun Mar 12 11:49:34 2006] [error] [client 127.0.0.1] couldn’t spawn
child process:
d:/instantrails-1.0/rails_apps/myrailsapp/public/dispatch.cgi
This has to be some dumb configuration error, but I cannot find it. Any
ideas
what I’ve missed?
Thanks,
Dan