Project

General

Profile

noob question about vendor branch of rails

Added by brock denson over 15 years ago

Hi,
I have upgraded from 0.7.4 to 0.8.3 as per the instructions. When I try to open the page, I get a '500 Internal Server Error' and when I look at the logs it says that I do not have the right version of rails installed.
I am using Apache 2.2.11 with Fedora 10 which by default uses rails 2.1.1 which I would like to keep as the default. My understanding was that the 0.8.3 release came with rails 2.1.2 in the vendor directory. How can I configure it to use this newer version only for this application?

Thanks for your help,

Apache conf ----

...
#
#<Directory "/var/www/html/redmine">
#    Options ExecCGI FollowSymLinks
#    AllowOverride All
#    Order allow,deny
#    Allow from all
#</Directory>

#
#LoadModule fcgid_module modules/mod_fcgid.so
SocketPath /tmp/fcgidsock
SharememPath /tmp/fcgidshm
DefaultInitEnv RAILS_ENV production

<Directory /var/www/html/redmine>
    Options ExecCGI FollowSymLinks
    AllowOverride AuthConfig Indexes Limit
    Order allow,deny
    Allow from all

    AddHandler fcgid-script .fcgi

    # You need mod_fcgid version >= 2.1 to support arguments "xxx/dispatch.fcgi" in FCGIWrapper
    FCGIWrapper "/usr/bin/ruby /var/www/html/redmine/dispatch.fcgi" .fcgi

    RewriteEngine On
    RewriteRule ^$ index.html [QSA]
    RewriteRule ^([^.]+)$ $1.html [QSA]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
</Directory>
#
...

Apache error log ----

...
[Wed Apr 08 09:52:55 2009] [notice] Apache/2.2.11 (Unix) DAV/2 PHP/5.2.6 mod_python/3.3.1 Python/2.5.2 mod_ssl/2.2.11 OpenSSL/0.9.8g SVN/1.5.4 mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations
[Wed Apr 08 09:52:59 2009] [notice] mod_fcgid: call /var/www/html/redmine/dispatch.fcgi with wrapper /usr/bin/ruby /var/www/html/redmine/dispatch.fcgi
Missing the Rails 2.1.2 gem. Please `gem install -v=2.1.2 rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.
[Wed Apr 08 09:52:59 2009] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error.
[Wed Apr 08 09:52:59 2009] [error] [client 127.0.0.1] Premature end of script headers: dispatch.fcgi, referer: http://localhost/redmine/admin
[Wed Apr 08 09:53:02 2009] [notice] mod_fcgid: process /var/www/html/redmine/dispatch.fcgi(7607) exit(communication error), terminated by calling exit(), return code: 1
...