# Help needed getting started with Mod\_ruby

**URL:** <https://www.ruby-forum.com/t/help-needed-getting-started-with-mod-ruby/146185>\
**Category:** Ruby\
**Created:** [August 18, 2008, 8:56pm UTC](https://www.ruby-forum.com/t/help-needed-getting-started-with-mod-ruby/146185 "2008-08-18T20:56:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lynchnco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c77e96/32.png) [@lynchnco](https://www.ruby-forum.com/u/lynchnco)\
**Post date:** [August 18, 2008, 8:56pm UTC](https://www.ruby-forum.com/t/help-needed-getting-started-with-mod-ruby/146185/1 "2008-08-18T20:56:41Z")

</div>

Hi,  
I just installed mod\_ruby under Windows XP, and I need some help getting  
started with it.

I’m trying to run a simple script that goes like this:  
\<TEMP.RB\>  
require “TEMP2”  
include TEMP2  
myMethod

\<TEMP2.RB\>  
module TEMP2  
def myMethod  
puts “it’s working!”  
end  
end

But I can’t seem to get the require working. It always gives me an  
\<undefined local variable or method ‘myMethod’\> error.

Does anyone have experience with mod\_ruby in windows? I read somewhere  
that I need to restart Apache. But that didn’t seem to help.  
Thanks very much  
-Patrick

---

<div class="post-metadata">

**Author:** ![lynchnco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c77e96/32.png) [@lynchnco](https://www.ruby-forum.com/u/lynchnco)\
**Post date:** [August 19, 2008, 3:25am UTC](https://www.ruby-forum.com/t/help-needed-getting-started-with-mod-ruby/146185/2 "2008-08-19T03:25:05Z")

</div>

Patrick Li wrote:

> Hi,  
> I just installed mod\_ruby under Windows XP, and I need some help getting  
> started with it.

mod\_ruby doesn’t seem to have been touched in over 2 years. If you want  
Ruby in a website, your best bet is either Camping, Rails, or Merb/Rack  
(in increasing order of complexity) with mod\_rails, a.k.a. Phusion  
Passenger ([http://modrails.com/](http://modrails.com/)).
