Forum: Ruby on Rails Apache shows contents of ruby script instead of actually executing it.

Posted by Brian A. (brian_a32)
on 2012-12-22 10:13
Attachment: Screenshot-1.png (13,5 KB)
I'm trying to configure Passenger to serve a RadiantCMS. I believe I've
installed all the necessary gems and followed the configuration
instructions from here
http://library.linode.com/frameworks/ruby-on-rails...,
but am still having some issues with the static page, where it doesn't
actually look like the passenger module is running.

Radiant Directory:

/var/www/radiant/:

CHANGELOG.md     Gemfile          INSTALL.md       README.md
config/          db/              public/          vendor/
CONTRIBUTORS.md  Gemfile.lock     LICENSE.md       Rakefile
config.ru        log/             script/

Serves static dispatch.cgi in public by default.

Radiant Directive:

# have to listen on host before connecting to it
Listen 8000
NameVirtualHost *:8000
<VirtualHost *:8000>
   ServerName 127.0.0.1
   # point DocRoot to public
   DocumentRoot /var/www/radiant/public
   <Directory /var/www/radiant/public>
      # This relaxes Apache security settings.
      AllowOverride all
      # MultiViews must be turned off.
      Options -MultiViews
   </Directory>
</VirtualHost>

Let me know if there's any other information you could use and I'll post
it.

Thanks!
Posted by Frederick Cheung (Guest)
on 2012-12-22 18:29
(Received via mailing list)
On Dec 22, 9:13am, "Brian A." <li...@ruby-forum.com> wrote:
> I'm trying to configure Passenger to serve a RadiantCMS. I believe I've
> installed all the necessary gems and followed the configuration
> instructions from 
herehttp://library.linode.com/frameworks/ruby-on-rails......,
> but am still having some issues with the static page, where it doesn't
> actually look like the passenger module is running.
>

Is the passenger module being loaded ?

Fred
Posted by Brian A. (brian_a32)
on 2012-12-22 20:05
Ah, the loadmodule line was there but I had accidentally indented the
PassengerRoot and PassengerRuby directives in httpd.conf. It's working
now (well, almost, but fixing the other issues should be easy enough).
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.