# Instant Rails on Win XP SP2

**URL:** <https://www.ruby-forum.com/t/instant-rails-on-win-xp-sp2/57886>\
**Category:** Rails\
**Created:** [April 15, 2006, 4:51pm UTC](https://www.ruby-forum.com/t/instant-rails-on-win-xp-sp2/57886 "2006-04-15T16:51:08Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnnybutler7](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8491ac/32.png) [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Post date:** [April 15, 2006, 4:51pm UTC](https://www.ruby-forum.com/t/instant-rails-on-win-xp-sp2/57886/1 "2006-04-15T16:51:08Z")

</div>

I am trying to run instant rails on windows xp SP2. I can get the  
cookbook and typo sample sites to work with webrick but not with scgi.

When i click the start with scgi i get a blank dos window and typing  
[www.mycookbook.com](http://www.mycookbook.com) returns

Firefox can’t establish a connection to the server at  
[www.mycookbook.com](http://www.mycookbook.com).

This suggests that apache is not even running even though the green  
light is on for apache and mysql.

The apache access and error logs are also blank.

If i click the apache.exe in the apache folder inside instant rails a  
dos window is displayed saying

Apache/1.3 …mod\_scgi 1.7 running…

If i type [www.mycookbook.com](http://www.mycookbook.com) into the browser i get  
Firefox can’t establish a connection to the server at  
[www.mycookbook.com](http://www.mycookbook.com).

Ive had a look in the readme file inside instant rails and it says the  
following

Apache for Microsoft Windows 2000, NT, 98, and 95  
systems. Like the Unix version, it includes many frequently

Is instant rails with aoache/scgi supposed to run on windows xp?

Can anyone help, ive being trying this for days without success???

---

<div class="post-metadata">

**Author:** ![johnnybutler7](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8491ac/32.png) [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Post date:** [April 15, 2006, 7:01pm UTC](https://www.ruby-forum.com/t/instant-rails-on-win-xp-sp2/57886/2 "2006-04-15T19:01:03Z")

</div>

Try to access the server using its local IP address:  
[http://127.0.0.1](http://127.0.0.1)

Gael

---

<div class="post-metadata">

**Author:** ![johnnybutler7](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8491ac/32.png) [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Post date:** [April 16, 2006, 5:47am UTC](https://www.ruby-forum.com/t/instant-rails-on-win-xp-sp2/57886/3 "2006-04-16T05:47:43Z")

</div>

I run it on XP SP2.

You may not be waiting long enough for the SCGI process to get Rails  
and the web app loaded and ready to go. It takes about 30 seconds on  
my system. I usually watch my cpu-in-use cycles go up when I start the  
SCGI process, and when it drops back to zero I know its ready.

Its unfortunate that the SCGI process doesn’t display any status (like  
WEBrick) to let you know what’s happening.

Curt

PS  
I’m assuming that you added the appropriate entries to your windows  
HOSTS file.

---

<div class="post-metadata">

**Author:** ![johnnybutler7](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8491ac/32.png) [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Post date:** [April 16, 2006, 2:27pm UTC](https://www.ruby-forum.com/t/instant-rails-on-win-xp-sp2/57886/4 "2006-04-16T14:27:32Z")

</div>

i m waiting long enough for the scgi process to get rails and the web  
app loaded. I have followed the instructions at the link below and  
tried some of the common problems without success. I have had IIS  
running on this machine but i have disabled it and changed the port  
number it listens on. I have norton internet security, could it be  
something to do with the firewall?

[http://instantrails.rubyforge.org/wiki/wiki.pl?Getting\_Started](http://instantrails.rubyforge.org/wiki/wiki.pl?Getting_Started)

I am still getting the following below,

Unable to connect

Firefox can’t establish a connection to the server at  
[www.mycookbook.com](http://www.mycookbook.com).

---

<div class="post-metadata">

**Author:** ![johnnybutler7](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8491ac/32.png) [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Post date:** [April 16, 2006, 6:38pm UTC](https://www.ruby-forum.com/t/instant-rails-on-win-xp-sp2/57886/5 "2006-04-16T18:38:58Z")

</div>

Can’t hurt to try it with the firewall disabled.

Curt

---

<div class="post-metadata">

**Author:** ![johnnybutler7](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8491ac/32.png) [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Post date:** [April 17, 2006, 9:23am UTC](https://www.ruby-forum.com/t/instant-rails-on-win-xp-sp2/57886/6 "2006-04-17T09:23:05Z")

</div>

Hey John, I had the same issue with instant rails on Windows XP w/SP2  
but I  
simply switched to using Webrick for development purposes because I plan  
to  
use the setup that my hosting company has selected for running Rails  
apps.  
After that, I setup RadRails 0.6.2 and I’m good to go. However, it  
would  
have been nice to get it working but I need to generate an application  
and  
I’ll revisit this in the near future.

Peace,

-Conrad

---

<div class="post-metadata">

**Author:** ![johnnybutler7](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8491ac/32.png) [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Post date:** [April 17, 2006, 4:57pm UTC](https://www.ruby-forum.com/t/instant-rails-on-win-xp-sp2/57886/7 "2006-04-17T16:57:33Z")

</div>

I think ive tried everything. I think i will install apache/mysql etc  
separetly and go down that route. I used rad rails with eclipse using  
webrick for development without any problems. I have a spare machine  
here so i’m looking to deploy my site on this machine that is running  
windows SP2.

Is apache the best solution for ROR deployment on windows xp s2 or ive  
heard some stuff on light server or can webrick be used for ROR  
deployment?

---

<div class="post-metadata">

**Author:** ![johnnybutler7](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8491ac/32.png) [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Post date:** [April 18, 2006, 9:28pm UTC](https://www.ruby-forum.com/t/instant-rails-on-win-xp-sp2/57886/8 "2006-04-18T21:28:00Z")

</div>

I couldn’t ever get the Instant Rails install to work properly. MySQL  
came  
up fine, I couldn’t figure out all the config. Just went back to using  
webrick.

---

<div class="post-metadata">

**Author:** ![johnnybutler7](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8491ac/32.png) [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Post date:** [April 18, 2006, 10:48pm UTC](https://www.ruby-forum.com/t/instant-rails-on-win-xp-sp2/57886/9 "2006-04-18T22:48:35Z")

</div>

WEBrick is what you want to be using for most development, then move  
to Apache when you want to test/develop in an environment that is  
closer to what you’ll have in production.

Curt
