Re: Mod_ruby apache install problems
"Nick Black" <[email protected]> Wed, 27 Sep 2006 19:00:01 +0100
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_35068_11891351.1159380001106 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Same problem after adding that line. After restarting apache2 I get this message: * Starting apache 2.0 web server... [Wed Sep 27 18:58:38 2006] [warn] module ruby_module is already loaded, skipping Nick On 9/27/06, Ben Gutierrez <[email protected]> wrote: > > Nick, > > How about adding a file type to the httpd.conf: > > AddType text/html .rhtml > > I didn't have to do that on my installation, but I think it might help. > > Ben > > On 9/27/06, Nick Black <[email protected]> wrote: > > Hello, > > > > This is my first post to thet list, so hello everyone, my name is Nick. > > Today is the first time I have ever tried to install and configure both > > apache and mod_ruby/eruby, so my problem might be a bit silly. > > > > I am trying to configure Apache with mod_ruby. My system is as follows: > > > > Apache/2.0.55 (Ubuntu) > > PHP/5.1.2 > > mod_ruby/1.2.6 > > Ruby/1.8.4(2005-12-24) Server at localhost Port 80 > > > > after following instructions here: > > http://www.modruby.net/en/index.rbx/mod_ruby/ml.html > > > > my httpd.conf file looks like: > > > > LoadModule ruby_module /usr/lib/apache2/modules/mod_ruby.so > > > > ## On Linux (FC3) this becomes > > # LoadModule ruby_module /usr/lib/httpd/modules/mod_ruby.so > > > > # ClearModuleList > > # AddModule mod_ruby.c > > > > <IfModule mod_ruby.c> > > RubyRequire apache/ruby-run > > > > # Execute files under /ruby as Ruby scripts > > <Location /ruby> > > SetHandler ruby-object > > RubyHandler Apache:: RubyRun.instance > > </Location> > > > > # Execute *.rbx files as Ruby scripts > > <Files *.rbx> > > SetHandler ruby-object > > RubyHandler Apache::RubyRun.instance > > </Files> > > </IfModule> > > > > #Eruby stuff: > > > > <IfModule mod_ruby.c> > > RubyRequire apache/eruby-run > > > > # Handle files under /eruby as eRuby files > > <Location /eruby> > > SetHandler ruby-object > > RubyHandler Apache:: ERubyRun.instance > > </Location> > > > > # Handle *.rhtml files as eRuby files > > <Files *.rhtml> > > SetHandler ruby-object > > RubyHandler Apache::ERubyRun.instance > > </Files> > > </IfModule> > > > > <Directory /var/www/eruby> > > Options ExecCGI > > </Directory> > > > > When I try to start apache, I get > > > > [Wed Sep 27 16:55:08 2006] [warn] module ruby_module is already loaded > > > > PHP and HTML are running fine, but when I try to view an RHTML page, I > my > > browswer asks me if I want to download or save - so I guess the file is > not > > being parsed. > > > > I think the prob might be with: > > > > <Directory /var/www/eruby> > > Options ExecCGI > > </Directory> > > > > As that is not the address of an eruby folder. Problem is, what should > be > > contained within /var/www/eruby? > > > > I have the same problems when accessing via localhost or via the > internal > > network ip address. > > > > Thanks in advance for the help. > > > > Nick > > > > > > ------=_Part_35068_11891351.1159380001106--