# Eruby?

**URL:** https://rubytalk.org/t/eruby/31121
**Category:** ruby-talk
**Created:** [19 September 2006 14:39 UTC](https://rubytalk.org/t/eruby/31121 "2006-09-19T14:39:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Jonathan\_Denni](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@Jonathan\_Denni](https://rubytalk.org/u/Jonathan_Denni)
#### Post date: [19 September 2006 14:39 UTC](https://rubytalk.org/t/eruby/31121/1 "2006-09-19T14:39:27Z")

</div>

"In order to use eruby with the Apache Web server, you need to perform  
the following steps.

&nbsp;&nbsp;&nbsp;&nbsp;\* Copy the eruby binary to the cgi-bin directory.

&nbsp;&nbsp;&nbsp;&nbsp;\* Add the following two lines to httpd.conf:

AddType application/x-httpd-eruby .rhtml  
Action application/x-httpd-eruby /cgi-bin/eruby"

i found this here:  
[http://www.ruby-doc.org/docs/ProgrammingRuby/html/web.html](http://www.ruby-doc.org/docs/ProgrammingRuby/html/web.html)

is this all i need to do, or do i need a ruby-enabled web-server?  
also, where do i find this eruby binary, and httpd.conf?

thanks

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

### Author: ![Aredridel1](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@Aredridel1](https://rubytalk.org/u/Aredridel1)
#### Post date: [19 September 2006 16:35 UTC](https://rubytalk.org/t/eruby/31121/2 "2006-09-19T16:35:33Z")

</div>

> "In order to use eruby with the Apache Web server, you need to perform  
> the following steps.
> 
> &nbsp;&nbsp;&nbsp;&nbsp;\* Copy the eruby binary to the cgi-bin directory.
> 
> &nbsp;&nbsp;&nbsp;&nbsp;\* Add the following two lines to httpd.conf:
> 
> AddType application/x-httpd-eruby .rhtml  
> Action application/x-httpd-eruby /cgi-bin/eruby"
> 
> i found this here:  
> [Programming Ruby: The Pragmatic Programmer's Guide](http://www.ruby-doc.org/docs/ProgrammingRuby/html/web.html)

That's one way to make ruby talk to the web -- CGI, so not the fastest,  
and ERB, but yeah.

> is this all i need to do, or do i need a ruby-enabled web-server?  
> also, where do i find this eruby binary, and httpd.conf?

There's a binary 'erb' in the stock ruby distro that does it, or 'eruby'  
from [http://modruby.net/](http://modruby.net/), which is likely a tad faster.

There's also FastCGI, proxying to Mongrel or WEBrick, or other ways to  
integrate ruby into the server, depending on what you're doing.

If you want a low-barrier-to-entry works-like-PHP method, use the above.  
I recommend FastCGI, SCGI or Mongrel for high-performance apps.

Aria

> **···**
>
> On Tue, 2006-09-19 at 23:39 +0900, Jonathan Denni wrote:
> 
> > thanks

---

<div class="post-metadata">

### Author: ![Jonathan\_Denni](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@Jonathan\_Denni](https://rubytalk.org/u/Jonathan_Denni)
#### Post date: [20 September 2006 02:15 UTC](https://rubytalk.org/t/eruby/31121/3 "2006-09-20T02:15:54Z")

</div>

Aredridel wrote:

> **···**
>
> > On Tue, 2006-09-19 at 23:39 +0900, Jonathan Denni wrote:
> > 
> > > i found this here:  
> > > [Programming Ruby: The Pragmatic Programmer's Guide](http://www.ruby-doc.org/docs/ProgrammingRuby/html/web.html)
> > 
> > That's one way to make ruby talk to the web -- CGI, so not the fastest,  
> > and ERB, but yeah.
> > 
> > > is this all i need to do, or do i need a ruby-enabled web-server?  
> > > also, where do i find this eruby binary, and httpd.conf?
> > 
> > There's a binary 'erb' in the stock ruby distro that does it, or 'eruby'  
> > from [http://modruby.net/](http://modruby.net/), which is likely a tad faster.
> > 
> > There's also FastCGI, proxying to Mongrel or WEBrick, or other ways to  
> > integrate ruby into the server, depending on what you're doing.
> > 
> > If you want a low-barrier-to-entry works-like-PHP method, use the above.  
> > I recommend FastCGI, SCGI or Mongrel for high-performance apps.
> > 
> > Aria
> 
> Thanks
> 
> I downloaded eRuby. Which file do I put in the CGI directory, or do I  
> put the whole directory?
> 
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).
