Project

General

Profile

Installation issue configuring Apache

Added by Mitchell Schaff almost 11 years ago

Hello. I'm working on installing Redmine on a CentOS 6.4 box, using the "How to Install Redmine on CentOS (Detailed)" HowTo. I'm to the point of configuring Apache, so I jumped to the "HowTo configure Apache to run RedMine" document.

The Apache directions next state that there should be a "ENV" line in config/environment.rb, but again, I don't see this line, so I'm not sure whether this applies or not.

When I try testing the public/dispatch.cgi script, I get a message that says:
/var/www/redmine/config/boot.rb:6: in 'require': cannot load such file -- bundler/setup (LoadError)
from /var/www/redmine/config/boot.rb:6:in '<top (required>'
from ./dispatch.cgi:3:in 'require'
from ./dispatch.cgi:3:in '<main>'

My dispatch.cgi file looks like this:

#!/usr/local/bin/ruby

require File.dirname(FILE) + '/../config/boot'
require File.dirname(FILE) + '/../config/environment'
require "/usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.5/test/stub/vendor_rails/minimal/railties/lib/dispatcher.rb"

class Rack::PathInfoRewriter
def initialize(app)
@app = app
end

def call(env)
env.delete('SCRIPT_NAME')
parts = env['REQUEST_URI'].split('?')
env['PATH_INFO'] = parts[0]
env['QUERY_STRING'] = parts[1].to_s
@app.call(env)
end
end

Rack::Handler::FastCGI.run Rack::PathInfoRewriter.new(RedmineApp::Application)


Moving on to the next set of directions, after I downloaded the mod_fastcgi source, when I execute the "make top_dir=/usr/lib/httpd" command, I get an error that says:
makefile:12: /usr/lib/httpd/build/special.mk: No such file or directory
make: *** No rule to make target `/usr/lib/httpd/build/special.mk'. Stop.

I get a similar message when I try to do the make install command.

Any help on this would be most appreciated. I realize the HowTo documents are for previous versions of CentOS and Redmine, and would be very grateful for any instructions on how to move past these issues, and continue on with the installation. Thanks in advance for any assistance you can provide!

Mitchell