From: Alan Chen Date: 2001-12-15T08:58:11+09:00 Subject: [ruby-talk:28558] Re: internal server errors Let's check your http.conf file. Do you have the following lines somewhere in http.conf? # for Apache::ERubyRun RubyRequire apache/eruby-run # handle *.rhtml as eruby files. SetHandler ruby-object RubyHandler Apache::ERubyRun.instance It looks like it's dying trying to open the file. I'd also check the permissions of the file. Is it owned by your apache account (www-data on Debian)? Or readable by the www-data group? Is foo.rhtml in a directory readable by apache? On Sat, Dec 15, 2001 at 08:05:23AM +0900, Jack Dempsey wrote: > HI Alan, > > thanks for the help on this...the rhtml file was the simple foo.rhtml file in the > examples of eruby..if i say: > eruby foo.rhtml > from the command line, i get the correct output of 'foo' > > the recompiling thing hasn't worked so well....any other suggestions? why woudl it > work fromthe command line, but not through apache? think its not finding includes, > etc? > > Alan Chen wrote: > > > You are, of course, free to recompile. But what what in the rhtml > > file that you were trying to access? > > > > On Sat, Dec 15, 2001 at 07:22:57AM +0900, Jack Dempsey wrote: > > > this is from the error_log > > > > > > [Fri Dec 14 17:32:28 2001] [error] mod_ruby: error in ruby > > > /usr/lib/ruby/1.6/apache/eruby-run.rb:84:in `compile': undefined method > > > `sourcefile=' for # (NameError) > > > from /usr/lib/ruby/1.6/apache/eruby-run.rb:83:in `open' > > > from /usr/lib/ruby/1.6/apache/eruby-run.rb:83:in `compile' > > > from /usr/lib/ruby/1.6/apache/eruby-run.rb:68:in `handler' > > > from ruby:0 > > > > > > going to try to compile and install fresh again... > > > > > > Alan Chen wrote: > > > > > > > I think we need more information. > > > > > > > > Look in the apache error log (or send us the appropriate entry in the log). > > > > It may also help to share your .rhtml file with us. > > > > > > > > -- alan > > > > -- > > Alan Chen > > Digikata LLC > > alan@digikata.com > > http://digikata.com > -- Alan Chen Digikata LLC alan@digikata.com http://digikata.com