SitePoint Sponsor |
|
User Tag List
Results 1 to 10 of 10
Thread: mod_ruby on windows...
-
Oct 21, 2005, 17:36 #1
- Join Date
- Aug 2004
- Location
- Chicago
- Posts
- 296
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
mod_ruby on windows...
I'll admit it, I couldn't compile a program if my life depended on it, so I used the windows installer on the ruby home page. I installed the mod_ruby package here, and it doesn't seem to be working.
I copied the htaccess files directly from the the install folder, but only the fastcgi works. This is what appears in the Apache error log:
Code:[Fri Oct 21 19:16:03 2005] [notice] Parent: Received restart signal -- Restarting the server. [Fri Oct 21 19:16:03 2005] [notice] Child 1524: Exit event signaled. Child process is ending. [Fri Oct 21 19:16:03 2005] [warn] (OS 995)The I/O operation has been aborted because of either a thread exit or an application request. : winnt_accept: Asynchronous AcceptEx failed. [Fri Oct 21 19:16:04 2005] [notice] Child 1524: Released the start mutex [Fri Oct 21 19:16:05 2005] [notice] Child 1524: Waiting for 250 worker threads to exit. [Fri Oct 21 19:16:05 2005] [notice] Child 1524: All worker threads have exited. [Fri Oct 21 19:16:06 2005] [notice] Child 1524: Child process is exiting
Code:LoadModule fastcgi_module modules/mod_fastcgi.so LoadModule ruby_module modules/mod_ruby.so <IfModule mod_fastcgi.c> AddHandler fastcgi-script .fcgi </IfModule> <IfModule mod_ruby.c> <Files *.rbx> SetHandler ruby-object RubyHandler Apache::RubyRun.instance </Files> </IfModule>
Thanks...Why's (Poignant) Guide to Ruby
learn ruby with foxes, wizards, and chunky bacon
-
Oct 21, 2005, 19:17 #2
- Join Date
- Jun 2003
- Location
- Iowa, USA
- Posts
- 3,749
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I don't use ruby on windows, but perhaps instantrails might help.
Jason Sweat ZCE - jsweat_php@yahoo.com
Book: PHP Patterns
Good Stuff: SimpleTest PHPUnit FireFox ADOdb YUI
Detestable (adjective): software that isn't testable.
-
Oct 22, 2005, 08:12 #3
Is there a reason you are using mod_ruby? Its not the recommended way of doing things.
-
Oct 22, 2005, 17:59 #4
- Join Date
- Aug 2004
- Location
- Chicago
- Posts
- 296
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
It's the only way I've seen it done. How else would you connect ruby and apache?
Why's (Poignant) Guide to Ruby
learn ruby with foxes, wizards, and chunky bacon
-
Oct 22, 2005, 23:08 #5
- Join Date
- Nov 2004
- Location
- Yakima WA.
- Posts
- 100
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
apache/mod_fastcgi
gem install fcgi
-
Oct 23, 2005, 01:35 #6
- Join Date
- Jul 2004
- Location
- Central Coast, CA
- Posts
- 321
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
yep. Don't bother with mod_ruby, it's not useful (especially for development since you can only have one app at a time!)
Try SCGI or FastCGI.Studio Rockstar's Blog - A journey to quitting the dayjob.
-
Oct 23, 2005, 12:41 #7
- Join Date
- Nov 2004
- Location
- Yakima WA.
- Posts
- 100
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
The only reason you might want to use mod_ruby is if you want to de ruby cgi programs with eruby templates without using rails. If you just want to write scripts that apache can serve that are just pure ruby without the rails framework then mod_ruby is actually pretty nice. If you do go this route the make sure to install mod_eruby as well for a nice ruby tamplating language that lets you write pages in ruby just like you would in php. Like so:
<%= ruby code here %>
<p> html text here </p>
<% block
of ruby
code
here %>
<div> more html code here</div>
-
Oct 23, 2005, 20:54 #8
- Join Date
- Aug 2004
- Location
- Chicago
- Posts
- 296
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by ezmobius1
(sorry for the pink)Why's (Poignant) Guide to Ruby
learn ruby with foxes, wizards, and chunky bacon
-
Oct 23, 2005, 23:31 #9
- Join Date
- Nov 2004
- Location
- Yakima WA.
- Posts
- 100
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Ahhh thats right, you're on windows. fcgi is a native package in C that must be compiled. This will help you then:
http://rubyforge.org/projects/rubyforapache/
A self-contained installer that includes mod_fastcgi and mod_ruby for Apache 2.0 and corresponding Ruby extensions for Windows platform.
-
Oct 24, 2005, 03:11 #10
- Join Date
- Jul 2004
- Location
- Gerodieville Central, UK
- Posts
- 446
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
If this is a development machine, just stick to webrick, and use FCGI / Lighttpd on linux/unix for a production box
Bookmarks