From: Jan Svitok Date: 2006-12-22T01:04:52+09:00 Subject: Re: apache2 + eruby problem On 12/21/06, Sam Waller wrote: > > > >Try searching the archive for eruby apache ;-) For me, it found ~13 > >threads (not of them useful, though) > > > >Most probably you'll need to set the mime type and handler for rhtml > > > >http://www.hiveminds.co.uk/node/3094 is a howto for windows. > > I've done that, but can't get it to work. Many of these links say add an 'Action' line to httpd.conf > but I think that you are not supposed to touch httpd.conf in apache2. I tried adding this line to at the very and there is a line include /etc/.../* that includes anything from i-dont-remember-its-name directory found in the /etc/apache2 So just create a new file, or edit the 'default' file which is the default server's configuration. > /etc/apache2/apache2.conf but I get this when I try to reload apache2: > $ /etc/init.d/apache2 reload > * Reloading apache 2.0 configuration... Syntax error on line > 343 of /etc/apache2/apache2.conf: > Invalid command 'Action', perhaps mis-spelled or defined by a module not included in the server > configuration. http://httpd.apache.org/docs/2.2/mod/mod_actions.html#action says you need to have the mod_actions module enabled. you can enable it by symlinking from /etc/apache2/mods.available to /etc/.../mods.enabled (or something similar, it's pretty obvious, you'll figure it out yourself) > Eg, the above howto says: > > 1. in httpd.conf add: > AddType application/x-httpd-eruby .rhtml > > #use your own path to eruby > Action application/x-httpd-eruby "e:/usr/local/bin/eruby.exe" > > (I used /usr/bin/eruby) > > I'm using Ubuntu edgy linux. Does anyone know how to get eruby working with this OS? > > thanks, > Sam