I tried to install raa on my computer. But it didn’t work properly.
Can you please give me some suggestion?
Here is what I have done:
-
Download the raa package and unzip it in my home directory.
-
/home/Frodo/raa/tool/install_www.rb /home/Frodo/public_html/eruby/
install succeed!
When I type http://localhost/~Frodo/eruby/entry.rhtml
in my browser, there was an Internal Server Error.
However, if I tried a simpler rhtml file, that is:
http://localhost/~Frodo/eruby/test.rhtml
It worked!
Here is the content of test.rhtml:
eruby exampleEnumeration
-
<%(1..10).each do|i|%>
- number <%=i%> <%end%>
Environment variables
<%=key%> | <%=ENV[key]%> |
---|
Here is my apache-2.0.43 configuration for ruby:
If the ruby module is installed, this will be enabled.
# for Apache::RubyRun RubyRequire apache/ruby-runexec files under /ruby as ruby scripts.
<Location /ruby-cgi>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
Options ExecCGI
exec *.rbx as ruby scripts.
<Files *.rbx>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
for Apache::ERubyRun
RubyRequire apache/eruby-run
handle files under /eruby as eRuby files by eruby.
<Location /eruby>
SetHandler ruby-object
RubyHandler Apache::ERubyRun.instance
Options ExecCGI
handle *.rhtml as eruby files.
<Files *.rhtml>
SetHandler ruby-object
RubyHandler Apache::ERubyRun.instance
for Apache::ERbRun
RubyRequire apache/erb-run
for debug
RubyRequire auto-reload
Thanks a lot!