SitePoint Sponsor |
|
User Tag List
Results 1 to 10 of 10
-
Feb 10, 2006, 12:30 #1
- Join Date
- Dec 2003
- Location
- Paducah, KY
- Posts
- 174
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Running Ruby with Apache 2 and FastCGI
I have everything working great and I am really excited about learning Ruby and Rails. But whenever I access my different defs in my controller it takes about 5 seconds before they are returned. I am working locally so I don't know what the issue is.
Windows XP
Apache 2.0.55
Ruby 1.8.2
Rails 1.0
Anyone else had this issue?--
sethtrain
-
Feb 11, 2006, 09:15 #2
- Join Date
- Jun 2004
- Location
- France
- Posts
- 129
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I've already seen a message like yours but have no clue to help you except to update to Ruby 1.8.4 and check that you're using fastcgi
Code:AddHandler fastcgi-script .fcgi
-
Feb 11, 2006, 09:19 #3
I wouldn't bother with an Apache setup for local development anyway. Just use Webrick.
-
Feb 13, 2006, 04:36 #4
- Join Date
- Jun 2004
- Location
- France
- Posts
- 129
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
sethtrain, did you fix your performance problem?
-
Feb 14, 2006, 12:44 #5
- Join Date
- Dec 2003
- Location
- Paducah, KY
- Posts
- 174
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Yeah I got it fixed. I found "Ruby for Apache" and that FastCGI module is better than the one you get on the FastCGI site. I had to tune down my process with the FastCGIServer directive but after that was done it works like a charm.
--
sethtrain
-
Feb 21, 2006, 04:37 #6
- Join Date
- Jul 2003
- Location
- Newcastle upon Tyne
- Posts
- 909
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Have they made installing Ruby on Rails on Windows easier, or is it the same process?
I had Apache/PHP/MySQL running and setup the .http configuration file for Apache in the way I like to work for WAMP but whenever I tried RoR it just didn't work at all.
I followed hints, tips, tutorials, ideas, concepts on using the FastCGI module, using this, that and the other and none of them worked and I gave up trying. RoR shouldn't be hard to install but for some reason it is.
I did try Instant Rails which bundles PHP, MySQL, RoR, Apache2.0 all together, which is fine - except, what happens if you've already got Apache installed and running the way you want it, now you have to change your whole way of working just to get RoR working.
Until somebody comes up with an ironclad way of making RoR work with Windows without all this messing around then I will move to Ruby -- until then I'll stick to PHP/MySQL.
-
Feb 21, 2006, 09:56 #7
- Join Date
- Nov 2001
- Location
- Atlanta, GA, USA
- Posts
- 5,011
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by worchyld
The canned suggestion for anyone using Rails is to just:
ruby script/server
http://localhost:3000/
... and I think after a while of working with Rails you decide whether the effort required to advance the environment is necessary/worthwhile. That doesn't work for you?Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?
-
Feb 21, 2006, 10:40 #8
- Join Date
- Jul 2003
- Location
- Newcastle upon Tyne
- Posts
- 909
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I think, if memory serves me right, it did work... it just didn't wasn't intutitive what you were meant to do, I did get Ruby to work, and Rails... and made a simple hello world, but when it came to database's it had some kind of error (I can't remember now) about connection with mysql.
But I did get it working with Instant Rails, but that is a whole package with PHP/Mysql, etc -- but it means having to use instant rails, and it seems to be a bit much to change the whole setup just to use RoR.
I might try once more once I get the time.
-
Feb 21, 2006, 22:15 #9
- Join Date
- Dec 2003
- Location
- Paducah, KY
- Posts
- 174
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I think it would be worth the shot. I switched from PHP to Coldfusion and now to RoR. It defintely was worth the hassle of trying to figure it out, but now I know and I could do it over again if need be.
--
sethtrain
-
Feb 28, 2006, 11:43 #10
- Join Date
- Feb 2006
- Location
- Worcs. UK
- Posts
- 404
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by sethtrain
This guide details how to get it to work:
Fast CGI and Apache2 for Windows XP
I had a problem for a while until I realised that the line:
Code:AddModule mod_fastcgi.c
It's definitely worth the effort!!!!!
Bookmarks