Project

General

Profile

Can't run Redmine 2.1.0 with mod_fastcgi on CentOS 6.3, please help.

Added by Den Iskandarov over 11 years ago

[Mon Sep 17 22:20:05 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" started (pid 1721)
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require': no such file to load -- fcgi (LoadError)
        from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in `load_dependency'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require'
        from /var/www/redmine/public/dispatch.fcgi:7

Followed this tutorials:
Redmine on CentOS installation HOWTO,
HowTo install Redmine on CentOS Detailed,
Redmine 2.0.3 with Subversion and LDAP Authentication (for Redmine and Subversion through Redmine) on Centos 6, i386 - detailed,
HowTo configure Apache to run Redmine,
and generic installation instructions

webrick runs flawlessly
Installed: ruby 1.8.7, gem 1.3.7, gem fcgi 0.8.8 , mod_fastcgi, fcgi, mod_passenger 3.0.17

this thread didn't help: http://www.redmine.org/boards/2/topics/31410
nor this: http://www.redmine.org/boards/2/topics/22506?r=22947

I'm developing suburi configuration, "example.com/redmine". Same problem I had couple weeks ago with 2.0.3 when I've tried to install Redmine very first time.
Please help get it running. Will provide any additional information by request.


Replies (2)

RE: Can't run Redmine 2.1.0 with mod_fastcgi on CentOS 6.3, please help. - Added by Jean-Philippe Lang over 11 years ago

/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require': no such file to load -- fcgi (LoadError)

=> You need to explicitly require the 'fcgi' gem by creating a file named Gemfile.local in the root of your Redmine directory:

# Gemfile.local
gem "fcgi" 

Then run `bundle install`, then restart.

RE: Can't run Redmine 2.1.0 with mod_fastcgi on CentOS 6.3, please help. - Added by Den Iskandarov over 11 years ago

Great!!!
Thanks a lot! Finally some step forward.
Now seems that redmine is ready to run but webserver can't display page. "Error 404" and production.log

192.168.0.198 - - [18/Sep/2012:00:34:19 +0400] "GET /redmine/ HTTP/1.1" 404 485 "-" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)" 

Started GET "/redmine/" for 192.168.0.198 at Tue Sep 18 00:20:12 +0400 2012

ActionController::RoutingError (No route matches [GET] "/redmine"):
  actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
  actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
  railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
  railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
  actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
  rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
  rack (1.4.1) lib/rack/runtime.rb:17:in `call'
  activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
  rack (1.4.1) lib/rack/lock.rb:15:in `call'
  actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
  rack-cache (1.2) lib/rack/cache/context.rb:136:in `forward'
  rack-cache (1.2) lib/rack/cache/context.rb:245:in `fetch'
  rack-cache (1.2) lib/rack/cache/context.rb:185:in `lookup'
  rack-cache (1.2) lib/rack/cache/context.rb:66:in `call!'
  rack-cache (1.2) lib/rack/cache/context.rb:51:in `call'
  railties (3.2.8) lib/rails/engine.rb:479:in `call'
  railties (3.2.8) lib/rails/application.rb:223:in `call'
  railties (3.2.8) lib/rails/railtie/configurable.rb:30:in `send'
  railties (3.2.8) lib/rails/railtie/configurable.rb:30:in `method_missing'
  public/dispatch.fcgi:16:in `call'
  rack (1.4.1) lib/rack/handler/fastcgi.rb:66:in `serve'
  rack (1.4.1) lib/rack/handler/fastcgi.rb:28:in `run'
  fcgi (0.8.8) lib/fcgi.rb:117:in `session'
  fcgi (0.8.8) lib/fcgi.rb:104:in `each_request'
  fcgi (0.8.8) lib/fcgi.rb:36:in `each'
  rack (1.4.1) lib/rack/handler/fastcgi.rb:27:in `run'
  public/dispatch.fcgi:20

I'm trying to develop suburi application.
Nothing works from this wiki page HowTo Install Redmine in a sub-URI
My .htaccess with enabled RewriteBase and httpd redmine.conf

Alias /redmine /var/www/redmine/public
<Directory /var/www/redmine/public/>
    AllowOverride all
    Order deny,allow
    Deny from all
    Allow from 192.168
</Directory>

.htaccess
<IfModule mod_fastcgi.c>
    AddHandler fastcgi-script .fcgi
</IfModule>
Options +FollowSymLinks +ExecCGI
#Options +Indexes +FollowSymLinks +ExecCGI -MultiViews
RewriteEngine On
RewriteBase /redmine
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
<IfModule mod_fastcgi.c>
    RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
</IfModule>
ErrorDocument 500 "<h2>Application error</h2>Rails application failed to start properly" 

    (1-2/2)