So close Static page is served

Hi Folks,

I am working to deploy a Ruby on Rails application on Apache. I’ve built
the mod_passenger tarball and copied it to
/usr/lib64/httpd/modules/mod_passenger. I’ve verified that ownership is
root:root, and permissions are 755, and there is an appropriate selinux
context. So that is all good.

When I goto the root URL, http://todo.tryx.org/, I don’t get the result
of
having run ruby, I get a static page of …/public/dispatch.fcgi, which
looks like this:

require File.dirname(FILE) + “/…/config/environment”
require ‘fcgi_handler’

I have apparently not configured things quite properly. Any advice?

Thanks for the help,

Chris.

On Sunday, January 4, 2015 7:04:44 PM UTC, Chris M. wrote:

Hi Folks,

I am working to deploy a Ruby on Rails application on Apache. I’ve built the
mod_passenger tarball and copied it to /usr/lib64/httpd/modules/mod_passenger.
I’ve verified that ownership is root:root, and permissions are 755, and there is
an appropriate selinux context. So that is all good.

When I goto the root URL, http://todo.tryx.org/, I don’t get the result of
having run ruby, I get a static page of …/public/dispatch.fcgi, which looks like
this:#!/usr/bin/env ruby

You don’t need a dispatch.fcgi at all with passenger - perhaps the fact
that it’s been used means that you have a .htaccess hanging around
pointing requests at it

Also did you add the directives passenger generates for you to your
Apache config?

Fred

It’s been a while since I used passenger, but did you put the correct
passenger declaration pointing to the /public folder of your Rails into
the httpd.conf file (or a site-specfic file that is included in
httpd.conf)?

You didn’t show your httpd.conf file so it leaves us to wonder.

Finally, you might get more help on the Passenger list than this list,
because it looks like the issue is in your Apache/Passenger config not
your Rails config.

-Jason

exceptions which forced the FastCGI instance to exit, great for debugging)

# Default log path, 50 requests between GC.

Thanks for the help,

Chris.


You received this message because you are subscribed to the Google G. “Ruby
on Rails: Talk” group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected]
mailto:[email protected].
To post to this group, send email to [email protected]
mailto:[email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/90983bb3-0c4d-4ada-b62d-953a6e9ca5f0%40googlegroups.com
https://groups.google.com/d/msgid/rubyonrails-talk/90983bb3-0c4d-4ada-b62d-953a6e9ca5f0%40googlegroups.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout
https://groups.google.com/d/optout.


Jason Fleetwood-Boldt
[email protected]

All material © Jason Fleetwood-Boldt 2014. Public conversations may be
turned into blog posts (original poster information will be made
anonymous). Email [email protected] with questions/concerns about
this.

I think your config is wrong.

The Passenger list is the best place for you to get help as your problem
is in your Apache/Passenger config.

Hi Jason,

Please forgive the oversights. I’m still feeling my way around in the
dark…

On Monday, January 5, 2015 7:34:37 AM UTC-8, Jason FB wrote:

It’s been a while since I used passenger, but did you put the correct
passenger declaration pointing to the /public folder of your Rails into the
httpd.conf file (or a site-specfic file that is included in httpd.conf)?

I think you mean this:

DocumentRoot /var/www/vhost/todo.tryx.org/tracks/public
<Directory “/var/www/vhost/todo.tryx.org/tracks/public”>
Options +FollowSymLinks -MultiViews
AllowOverride none

and this:

LoadModule passenger_module modules/mod_passenger.so

PassengerRoot
/var/www/vhost/todo.tryx.org/passenger-4.0.56
PassengerDefaultRuby /usr/bin/ruby

Finally, you might get more help on the Passenger list than this list,
because it looks like the issue is in your Apache/Passenger config not your
Rails config.

I’m covering my bets, because I don’t understand enough of the problem
to
know exactly where it is, so I’ve posted to the Passenger folks, and
I’ve
chatted with some folks on IRC. I’ve read my horoscope, but it is silent
on
the issue. (-:

Thanks for the help,

Chris.