Project

General

Profile

How to activate passenger?

Added by Klaus Friese over 14 years ago

Hello,

I installed redmine using the installation guide, everything works fine with webrick. And now I like to use apache for redmine. Our provider (pair networks) told me that passenger is activated but as a Ruby on Rails newbee I have no idea how passenger is working and how I can use redmine with passenger.

I installed redmine in a /redmine folder on our server. Using apache with the dispatcher doesn't work - I get errors. Do I have to modify the .htaccess file in /redmine/public to use passenger? Are there changes in the httpd.conf to do?

thanks for any help
Klaus


Replies (3)

RE: How to activate passenger? - Added by Felix Schäfer over 14 years ago

See the passenger guide, it's quite complete http://www.modrails.com/documentation/Users%20guide%20Apache.html. In a nutshell: passenger has to be active in apache and you need to point whatever URL/dir you want redmine served under to point to the public dir of redmine.

RE: How to activate passenger? - Added by Klaus Friese over 14 years ago

passenger should be active in apache, that's what our provider told me.

If I call www.ourdomain.de/redmine/public the apache finds the original .htaccess file there and tries to execute the dispatch.cgi which doesn't work - the error
"... /whiny_nil.rb:52:in `method_missing': undefined method `env_table' for nil:NilClass (NoMethodError)"
occurs.

Removing the .htaccess file just shows a directory. How can I tell apache, that the /redmine/public directory is used with passenger?

RE: How to activate passenger? - Added by Felix Schäfer over 14 years ago

http://www.modrails.com/documentation/Users%20guide%20Apache.html#_deploying_a_ruby_on_rails_application

I won't do the work for you, sorry. IIRC the .htaccess did cause some problems with a passenger setup, so just ditch it. Regarding the apache configuration, the passenger help has it all.

    (1-3/3)