Project

General

Profile

Installation: "does not appear to be a valid Ruby on Rails application root. "

Added by John Fisher over 15 years ago

My config:
ubuntu server 9.04
apache2 for webserver
passenger 2.2.5

so far:
unpacked redmine, and run db:migrate "rake test" "rake -f Rakefile" and got no errors.

browser view:
go to public dir of redmine, get passenger page with graphics ( obviously passenger is at least aware of this app) and error quoted above.

log view:
1) nothing in syslog or apache2 error.log
Note: the passenger bin is NOT in the path, though passenger-status will run with no errors, given an absolute path.
Note: apache2 runs as root

Where should I start?

Thanks

John


Replies (2)

RE: Installation: "does not appear to be a valid Ruby on Rails application root. " - Added by John Fisher over 15 years ago

Following....
yes I am also searching through the passenger docs.

I changed the site owner as follows- everything but environment.rb is owned by root and group = rails. environment.rb is owned by rails.

I made sure rails can write to the logs.

I added the passenger bin to the system PATH.

still doesn't work, no doubt something simple, but I can't see it.

J

RE: Installation: "does not appear to be a valid Ruby on Rails application root. " - Added by John Fisher over 15 years ago

I found
http://www.redmine.org/wiki/redmine/HowTo_configure_Apache_to_run_Redmine
and tried getting rid of Passenger, but still no luck.

now though, instead of the passenger error ( its gone after all) I get an index for the redmine/public directory and a long 500 error timeout for redmine/public/dispatch.fcgi

redmine is in /var/www/redmine-8... with a soft link to /var/www/redmine

my sites-enabled file looks like this today:
<VirtualHost *:80>
ServerAdmin
ServerName dizzy.znyx.com
DocumentRoot /var/www/redmine/public/

&lt;Directory "/var/www/redmine/public"&gt;
AllowOverride None
AddHandler fcgid-script .fcgi
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
&lt;/Directory&gt;
&lt;Directory /&gt;
Options FollowSymLinks
AllowOverride None
&lt;/Directory&gt;
&lt;Directory /var/www/&gt;
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
&lt;/Directory&gt;
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
&lt;Directory "/usr/lib/cgi-bin"&gt;
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
&lt;/Directory&gt;
....
&lt;/VirtualHost&gt;

and my apache mods enabled contains
LoadModule fcgid_module /usr/lib/apache2/modules/mod_fcgid.so

    (1-2/2)