Project

General

Profile

remine 3.0 in sub-URI via apache(2.4)+passenger(5.0.2) doesn't work

Added by Pav ata about 9 years ago

hi everybody, same old infamous subject (shame there is no updated howto for apache+passanger=sub-URI
my config the only difference (intended) is possible the fact that that virtual server in NOT only for Rails, / is some other, php in this case stuff and I'd like redmine be a subURI

# !!! Be sure to point DocumentRoot to 'public'!
Alias /trackit /var/www/redmine-3.0.0.isOn/public
<Location /trackit>
  PassengerFriendlyErrorPages On
  PassengerBaseURI /trackit
  PassengerAppRoot /var/www/redmine-3.0.0.isOn
  RailsEnv production
</Location>
<Directory /var/www/redmine-3.0.0.isOn/public>
  <IfModule mod_authz_core.c>
    Require all granted
  </IfModule>
  <IfModule !mod_authz_core.c>
    # Apache 2.2
    Order Deny,Allow
    Allow from All
 </IfModule>
    AllowOverride all
    Options Indexes ExecCGI FollowSymLinks
    Options -MultiViews
</Directory>

in my environment.rb as the last line I've put:

Redmine::Utils::relative_url_root = "/trackit"

but this setup fails with this:

Incomplete response received from application

in my browser.

All suggestions/help very much appreciated.


Replies (1)

RE: remine 3.0 in sub-URI via apache(2.4)+passenger(5.0.2) doesn't work - Added by Pav ata about 9 years ago

ok, I'm now trying 3.0.1 and redmine is trying to run bundle???
"...
Web application could not be started

It looks like Bundler could not find a gem. Maybe you didn't install all the gems that this application needs. To install your gems, please run:

bundle install

If that didn't work, then the problem is probably caused by your application being run under a different environment than it's supposed to. Please check the following:

Is this app supposed to be run as the apache user?
Is this app being run on the correct Ruby interpreter? Below you will see which Ruby interpreter Phusion Passenger attempted to use.

-------- The exception is as follows: -------
Could not find rake-10.4.2 in any of the sources (Bundler::GemNotFound)
.."

    (1-1/1)