# Instant Rails on XP sp1 setup issue

**URL:** <https://www.ruby-forum.com/t/instant-rails-on-xp-sp1-setup-issue/79021>\
**Category:** Rails\
**Created:** [December 11, 2006, 5:11pm UTC](https://www.ruby-forum.com/t/instant-rails-on-xp-sp1-setup-issue/79021 "2006-12-11T17:11:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [December 11, 2006, 5:11pm UTC](https://www.ruby-forum.com/t/instant-rails-on-xp-sp1-setup-issue/79021/1 "2006-12-11T17:11:44Z")

</div>

I recently downloaded and extracted Instant Rails v1.4 on my Win XP sp1  
machine. After changing and saving the windows host file and starting  
the cookbook app with Mongrel, browsing to [www.mycookbook.com](http://www.mycookbook.com) does not  
work. With Mozilla it displays ‘redirecting to cookbook…’ but never  
loads. It is finding the index.html in the cookbook/public dir, but the  
redirect to ‘recipe/list’ never returns. IE did not work either. I  
tried the run → ‘netsh winsock reset’ solution but no luck. Anyone  
have any ideas? I’m sure I’m missing something simple but after a day  
of debugging I’m out of ideas. Thanks in advance!

-Joe

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [December 11, 2006, 5:45pm UTC](https://www.ruby-forum.com/t/instant-rails-on-xp-sp1-setup-issue/79021/2 "2006-12-11T17:45:55Z")

</div>

Hi Joe,

Joe wrote:

> After changing and saving the windows host file  
> and starting the cookbook app with Mongrel,  
> \< browsing to [www.mycookbook.com](http://www.mycookbook.com) does not  
> work.

For starters, let’s try something a little more direct in order to  
narrow  
down the problem. Don’t start mongrel from the IR manager. Open a  
command  
window from IR manager, cd into the cookbook directory, and then start  
mongrel manually. Make note of what ip address and port it starts on.  
I’m  
still working on the 1.3 release and starting mongrel manually brings it  
up  
on 3000. I think it starts on 3001 now (by default) through IR manager.  
At  
any rate, once it starts, open your browser using [http://127.0.0.1:3000](http://127.0.0.1:3000)  
(or  
whatever combination mongrel tells you it’s using). Let us know what  
happens.

Best regards,  
Bill

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [December 11, 2006, 6:09pm UTC](https://www.ruby-forum.com/t/instant-rails-on-xp-sp1-setup-issue/79021/3 "2006-12-11T18:09:50Z")

</div>

Hi Bill,

After starting mongrel from the command line I get:

C:\InstantRails\rails\_apps\cookbook\>mongrel\_rails start  
\*\* Starting Mongrel listening at 0.0.0.0:3000  
\*\* Starting Rails with development environment …  
\*\* Rails loaded.  
\*\* Loading any Rails specific GemPlugins  
\*\* Signals ready. INT =\> stop (no restart).  
\*\* Mongrel available at 0.0.0.0:3000  
\*\* Use CTRL-C to stop.

Browsing to [http://127.0.0.1:3000](http://127.0.0.1:3000) leads to the same redirect hang. In  
the console I see:

127.0.0.1 - [Mon, 11 Dec 2006 17:00:12 GMT] “GET /recipe/list HTTP/1.1”

One thing that looks suspicious to me is that these files in my  
/cookbook/public/ dir don’t have the correct path on the first line of  
the file:

dispatch.cgi  
dispatch.fcgi  
dispatch.rb

I did try setting the correct path and restarting IR but nothing  
changed.

Thanks,  
Joe

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [December 11, 2006, 6:23pm UTC](https://www.ruby-forum.com/t/instant-rails-on-xp-sp1-setup-issue/79021/4 "2006-12-11T18:23:09Z")

</div>

Hi Joe,

Joe wrote:

> One thing that looks suspicious to me is that  
> these files in my /cookbook/public/ dir don’t  
> have the correct path on the first line of the file:

When you unzipped IR did you, from the File Manager, start  
InstantRails.exe  
and get a dialog saying IR had moved and was going to be configured for  
its  
new location? That’s where the paths should get set.

Bill

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [December 11, 2006, 7:03pm UTC](https://www.ruby-forum.com/t/instant-rails-on-xp-sp1-setup-issue/79021/5 "2006-12-11T19:03:19Z")

</div>

Joe wrote:

> Could it be that not all my paths were set  
> correctly?

It is possible. Best next step would be to delete the IR directory and  
unzip again.

> Do you know which files get  
> updated when you first launch IR?

If you still have a problem after redoing your install, you’d be better  
off  
asking about this is on the IR list (  
[http://rubyforge.org/mailman/listinfo/instantrails-users](http://rubyforge.org/mailman/listinfo/instantrails-users) )

Bill

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [December 11, 2006, 6:38pm UTC](https://www.ruby-forum.com/t/instant-rails-on-xp-sp1-setup-issue/79021/6 "2006-12-11T18:38:10Z")

</div>

I did get that dialog and I clicked ‘yes’. When I look at say  
spache/conf/httpd.conf I see the correct path was inserted. Could it be  
that not all my paths were set correctly? Do you know which files get  
updated when you first launch IR?

Thanks,  
Joe
