Redmine install help needed!
Added by Russell Robinson over 16 years ago
Configuration issues, errors listed below. Thanks for your help.
Server Setup:
Apache/2.2.4 (Ubuntu) PHP/5.2.3-1ubuntu6.3 mod_ruby/1.2.6 Ruby/1.8.6(2007-06-07)
Error Message:
Application error
Rails application failed to start properly
Apache Configuration for Redmin:
- redmine default Apache configuration
Alias /redmine /usr/local/redmine/public
<Directory /usr/local/redmine/public>
Options ExecCGI FollowSymLinks
<IfModule mod_ruby.c>
RubyRequire apache/ruby-run
RubySafeLevel 0
<Files *.rb>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
</IfModule>
AllowOverride all
Order allow,deny
Allow from all
</Directory>
Apache error log shows:
[Thu Mar 20 09:52:30 2008] [notice] Apache/2.2.4 (Ubuntu) PHP/5.2.3-1ubuntu6.3 mod_ruby/1.2.6 Ruby/1.8.6(2007-06-07) configured -- resuming normal operations
[Thu Mar 20 09:58:31 2008] [error] mod_ruby: error in ruby
[Thu Mar 20 09:58:31 2008] [error] mod_ruby: /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:157:in `file?': Insecure operation - file? (SecurityError)
[Thu Mar 20 09:58:31 2008] [error] mod_ruby: from /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:157:in `search_for_file'
[Thu Mar 20 09:58:31 2008] [error] mod_ruby: from /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:155:in `each'
[Thu Mar 20 09:58:31 2008] [error] mod_ruby: from /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:155:in `search_for_file'
[Thu Mar 20 09:58:31 2008] [error] mod_ruby: from /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:246:in `load_missing_constant'
[Thu Mar 20 09:58:31 2008] [error] mod_ruby: from /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:453:in `const_missing'
[Thu Mar 20 09:58:31 2008] [error] mod_ruby: from /usr/local/redmine/public/dispatch.rb:9
[Thu Mar 20 09:58:31 2008] [error] mod_ruby: from /usr/lib/ruby/1.8/apache/ruby-run.rb:53:in `load'
[Thu Mar 20 09:58:31 2008] [error] mod_ruby: from /usr/lib/ruby/1.8/apache/ruby-run.rb:53:in `handler'
Contents of dispatch.rb:
root@hgo-etalablnx04:/usr/local/redmine/public# cat dispatch.rb
#!/usr/bin/ruby
require File.dirname(FILE) + "/../config/environment" unless defined?(RAILS_ROOT)
- If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like:
- "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impaired
require "/usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/dispatcher"
ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun)
Dispatcher.dispatch
Replies (1)
RE: Redmine install help needed! - Added by Eric Davis over 16 years ago
I have no experience with mod_ruby so I can't help you much there. Does Redmine run ok with the built in web server?
# script/server -e production