Problems making redmine work from apache on OS X
Added by Andreas Paul almost 15 years ago
Hi Forum!
I have problems to get redmine work with apache webserver.
I installed redmine 0.9 and it just works fine with webrick server.
Now I want it to run from apache. I followed the instructions as the are described in the howto-section.
But when I call public/dispatch.cgi I get the following error message:
macmini:redmine-0.9 admin$ public/dispatch.cgi /Library/Ruby/Gems/1.8/gems/activesupport-2.3.5/lib/active_support/whiny_nil.rb:52:in `method_missing': undefined method `env_table' for nil:NilClass (NoMethodError) from /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/cgi_process.rb:22:in `__send__' from /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/cgi_process.rb:22:in `dispatch_cgi' from /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:101:in `dispatch_cgi' from /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:27:in `dispatch' from public/dispatch.cgi:13 macmini:redmine-0.9 admin$
I tried to figure out what's wrong for the whole afternoon, but I can't find any hints that worked for me.
I have absolutely no clue about ruby, I just want to use redmine.
It would be great if someone could point me into the right direction.
OS X 10.6.2
Apache 2.2.13
ruby 1.8.7
rails 2.3.5
my dispatch.cgi looks like:
#!/usr/bin/env ruby require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT) require "dispatcher" # require "/Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/dispatcher.rb" ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun) Dispatcher.dispatch
many thanks in advance!
cheers,
spog
Replies (2)
RE: Problems making redmine work from apache on OS X - Added by Michael Lissner almost 15 years ago
Same problem here. Driving me nuts. Any help would be GREATLY appreciated.
RE: Problems making redmine work from apache on OS X - Added by Andreas Paul almost 15 years ago
Puhh, finally it works using Passenger-2.2.9.
Just follow the installer instructions and modify yout httpd.conf accordingly.
Redmine runs in a subdirectory on my machine, so I also had to set "PailsBaseURI".
cheers,
spog