# Eruby?

**URL:** <https://www.ruby-forum.com/t/eruby/69240>\
**Category:** Ruby\
**Created:** [September 19, 2006, 4:39pm UTC](https://www.ruby-forum.com/t/eruby/69240 "2006-09-19T16:39:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonathan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/aeb1de/32.png) [@jonathan](https://www.ruby-forum.com/u/jonathan)\
**Post date:** [September 19, 2006, 4:39pm UTC](https://www.ruby-forum.com/t/eruby/69240/1 "2006-09-19T16:39:22Z")

</div>

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

```
* Copy the eruby binary to the cgi-bin directory.

* 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

---

<div class="post-metadata">

**Author:** ![jonathan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/aeb1de/32.png) [@jonathan](https://www.ruby-forum.com/u/jonathan)\
**Post date:** [September 19, 2006, 6:36pm UTC](https://www.ruby-forum.com/t/eruby/69240/2 "2006-09-19T18:36:28Z")

</div>

On Tue, 2006-09-19 at 23:39 +0900, Jonathan D. 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

---

<div class="post-metadata">

**Author:** ![jonathan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/aeb1de/32.png) [@jonathan](https://www.ruby-forum.com/u/jonathan)\
**Post date:** [September 20, 2006, 4:15am UTC](https://www.ruby-forum.com/t/eruby/69240/3 "2006-09-20T04:15:51Z")

</div>

Aredridel wrote:

> On Tue, 2006-09-19 at 23:39 +0900, Jonathan D. 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?
