Installation: "does not appear to be a valid Ruby on Rails application root. "
Added by John Fisher almost 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 almost 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 almost 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 john.fisher@znyx.com
ServerName dizzy.znyx.com
DocumentRoot /var/www/redmine/public/
<Directory "/var/www/redmine/public">
AllowOverride None
AddHandler fcgid-script .fcgi
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
....
</VirtualHost>
and my apache mods enabled contains
LoadModule fcgid_module /usr/lib/apache2/modules/mod_fcgid.so