# Problems with Debian, Apache and eRuby

**URL:** <https://rubytalk.org/t/problems-with-debian-apache-and-eruby/2064>\
**Category:** ruby-talk\
**Created:** [29 September 2002 21:59 UTC](https://rubytalk.org/t/problems-with-debian-apache-and-eruby/2064 "2002-09-29T21:59:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vincent\_Foley2](https://avatars.discourse-cdn.com/v4/letter/v/f07891/32.png) [@Vincent\_Foley2](https://rubytalk.org/u/Vincent_Foley2)\
**Post date:** [29 September 2002 21:59 UTC](https://rubytalk.org/t/problems-with-debian-apache-and-eruby/2064/1 "2002-09-29T21:59:06Z")

</div>

Hi ruby-talk,

I am trying to configure my Apache web server (Server version:  
Apache/1.3.26 (Unix) Debian GNU/Linux) on Debian to be able to use  
eRuby. I followed the instructions in Michael Neumann’s “Ruby  
Developer’s Guide” (pp.384-386). Here’s what I added to  
/etc/apache/conf/httpd.conf:

> [@](#):
>
> ```
> AddModule mod_ruby.c
> <IfModule mod_ruby.c>
> RubyRequire apache/ruby-run
> 
> <Location /ruby>
> SetHandler ruby-object
> RubyHandler Apache::RubyRun.instance
> Options ExecCGI
> </Location>
> 
> <Files *.rbx>
> SetHandler ruby-object
> RubyHandler Apache::RubyRun.instance
> </Files>
> 
> # eRuby
> <Location /eruby>
> SetHandler ruby-object
> RubyHandler Apache::ERubyRun.instance
> Options ExecCGI
> </Location>
> 
> <Files *.rhtml>
> SetHandler ruby-object
> RubyHandler Apache::ERubyRun.instance
> </Files>
> </IfModule>
> 
> ```

Then, I restart Apache, and when I list the loaded modules, here’s the  
output:

> [@](#):
>
> ```
> [root@vincent: /etc/apache/conf]# apache -l
> Compiled-in modules:
> http_core.c
> mod_so.c
> mod_macro.c
> suexec: enabled; valid wrapper /usr/lib/apache/suexec
> 
> ```

And when I try to view a .rhtml file, I get the following message:

> [@](#):
>
> ```
> Internal Server Error
> 
> The server encountered an internal error or misconfiguration and was
> unable to complete your request.
> 
> Please contact the server administrator, webmaster@vincent and
> inform them of the time the error occurred, and anything you might
> have done that may have caused the error.
> 
> More information about this error may be available in the server
> error log.
> 
> ```

Does anyone know how to fix that problem? Is it Debian related? Thanks.

Vincent

> **···**
>
> –
> 
> Vincent Foley-Bourgon  
> Email: [vinfoley@iquebec.com](mailto:vinfoley@iquebec.com)  
> Homepage: [http://darkhost.mine.nu:81](http://darkhost.mine.nu:81)

---

<div class="post-metadata">

**Author:** ![Kent\_Dahl2](https://avatars.discourse-cdn.com/v4/letter/k/a87d85/32.png) [@Kent\_Dahl2](https://rubytalk.org/u/Kent_Dahl2)\
**Post date:** [29 September 2002 21:59 UTC](https://rubytalk.org/t/problems-with-debian-apache-and-eruby/2064/2 "2002-09-29T21:59:05Z")

</div>

Vincent Foley wrote:

> ```
> AddModule mod_ruby.c
> 
> ```

I think you need a LoadModule directive also, before the AddModule.  
I have:  
LoadModule ruby\_module /usr/lib/apache/mod\_ruby.so  
but the location of your .so may vary.

> **···**
>
> –  
> ([Kent Dahl]/)\_ _~_**[[http://www.stud.ntnu.no/~kentda/](http://www.stud.ntnu.no/~kentda/) ]**_/~  
> ))\_student_/(( \__d L b_\_/ NTNU - graduate engineering - 5. year )  
> ( \__\_õ|õ_/**/ ) _)Industrial economics and technological management(  
> \__**/_ö_\_\_\_\_/ (\_**_engineering.discipline_=_Computer::Technology_**)
