Project

General

Profile

Redmine does not load

Added by Jaime Stuardo over 1 year ago

Hello, I have followed these instructions to install Redmine: https://www.redmine.org/projects/redmine/wiki/RedmineInstall

Then these instructions to use Apache: https://www.redmine.org/projects/redmine/wiki/HowTo_configure_Apache_to_run_Redmine

When I point the browser to https://myserver.com, this error appears:

Not Found
The requested URL was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

This is the content of dispatch.fcgi file:

#!/opt/rh/rh-ruby25/root/usr/bin/ruby

require File.dirname(FILE) + '/../config/boot'
require File.dirname(FILE) + '/../config/environment'

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)

and this is the content of config/environment.rb file:

GNU nano 2.3.1                                                        File: environment.rb
  1. frozen_string_literal: true
  1. Load the Rails application
    require File.expand_path('../application', FILE)
  1. Make sure there's no plugin in vendor/plugin before starting
    vendor_plugins_dir = File.join(Rails.root, "vendor", "plugins")
    if Dir.glob(File.join(vendor_plugins_dir, "*")).any?
    $stderr.puts "Plugins in vendor/plugins (#{vendor_plugins_dir}) are no longer allowed. " \
    "Please, put your Redmine plugins in the `plugins` directory at the root of your " \
    "Redmine directory (#{File.join(Rails.root, "plugins")})"
    exit 1
    end
  1. Initialize the Rails application
    Rails.application.initialize!

by the way. It seems Renmine installation instructions are not for version 5. Environment file does not have anything similar to "ENV['RAILS_ENV'] ||= 'production'"

Any help, please?

Regards
Jaime