# InstantRails works with WEBrick, fails with SCGI

**URL:** <https://www.ruby-forum.com/t/instantrails-works-with-webrick-fails-with-scgi/80124>\
**Category:** Rails\
**Created:** [March 12, 2006, 6:06pm UTC](https://www.ruby-forum.com/t/instantrails-works-with-webrick-fails-with-scgi/80124 "2006-03-12T18:06:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan\_Reeves](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/96bed5/32.png) [@Dan\_Reeves](https://www.ruby-forum.com/u/Dan_Reeves)\
**Post date:** [March 12, 2006, 6:06pm UTC](https://www.ruby-forum.com/t/instantrails-works-with-webrick-fails-with-scgi/80124/1 "2006-03-12T18:06:29Z")

</div>

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:

1. Downloaded and extracted InstantRails.

2. Started and tested cookbook with SCGI. Works great.

3. Copied my app over to rails\_apps directory.

4. Added a virtual host to Apache identical to cookbook (just using port  
9999  
with cookbook shutdown) and:

5. Added my URL [www.myrailsapp.com](http://www.myrailsapp.com) to Windows hosts file.

6. Configured InstantRails copy of MySQL

7. 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

---

<div class="post-metadata">

**Author:** ![Dan\_Reeves](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/96bed5/32.png) [@Dan\_Reeves](https://www.ruby-forum.com/u/Dan_Reeves)\
**Post date:** [March 12, 2006, 7:25pm UTC](https://www.ruby-forum.com/t/instantrails-works-with-webrick-fails-with-scgi/80124/2 "2006-03-12T19:25:43Z")

</div>

- Try giving it a separate SCGI number (like 9998).
- change the number in the Apache virtual host section to the same one

\_Kevin

---

<div class="post-metadata">

**Author:** ![Dan\_Reeves](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/96bed5/32.png) [@Dan\_Reeves](https://www.ruby-forum.com/u/Dan_Reeves)\
**Post date:** [March 13, 2006, 3:35am UTC](https://www.ruby-forum.com/t/instantrails-works-with-webrick-fails-with-scgi/80124/3 "2006-03-13T03:35:02Z")

</div>

Kevin O. wrote:

> - Try giving it a separate SCGI number (like 9998).
> - change the number in the Apache virtual host section to the same one
> 
> \_Kevin

I see, in the SCGI configuration. I was starting my app on a port that  
did not match the virtual host.

Unfortunately, I still get the same error after the change. Apologies,  
is  
there anything else that might cause this?

Thanks,  
Dan
