Project

General

Profile

Redmine with apache alias only show containing files

Added by Grunzi McNugget about 11 years ago

Hello,

I am trying to run redmine with an apache alias, but it only shows me the index files. After that I read this (http://www.redmine.org/boards/2/topics/15491) and I was confused because they said that it is wrong to put the redmine stuff in to var/www/ but I've installed my redmine with this HowTo(http://www.redmine.org/projects/redmine/wiki/How_to_Install_Redmine_on_CentOS_%28Detailed%29) and it told me to do so. So what is right what is wrong.

After the installation I've setup my redmine with a virtual host it worked perfectly fine.

NameVirtualHost 1.2.3.4:80
<VirtualHost 1.2.3.4:80>
      ServerName www.myredmine.int
      DocumentRoot /var/www/redmine231/public
</VirtualHost>

But then I wanted to user apache alias instead, but I couldn't manage to get it working. This is what I did.

First I've tryed to setup my alias with this HowTo(http://www.redmine.org/projects/redmine/wiki/HowTo_configure_Apache_to_run_Redmine) but it didn't work.

Ok then I found out the Phusion Passenger is the application server so I thought I have to put the passenger-path behind the ScriptAlias in the redmine.conf like this (ScriptAlias /usr/local/bin/passenger "/var/www/redmine231/public"). But that didn't work.

Ok then I thought maybe I have to put the Rails app behind the Script Alias like this (ScriptAlias /usr/local/bin/rails "/var/www/redmine231/public"), didn't work either

The I've put the things for CGI behind, although it seemed unlikely to me that it work but I gave it a shot(ScriptAlias /cgi-bin/ /usr/local/apache2/cgi-bin/) didn't work

I've to admit that I don't really know much about the ScriptAlias and thats why I can't find out my RailsBaseURI.

So I have 4 questions then.
1.What do I have to put behind the ScriptAlias or how do I get redmine with an apache alias to run?
2.Where can I find the documentation to redmine?
3.Where do I put my redminefiles to /var/www oder somewhere diffrenent and if that is the case where is the right somewhere different?
4. How do I find out my RailsBaseURI?

Thanks in advance for helping ;)

OS: CentOS6
Redmine version: 2.3.1
Phusion Passenger version 4.0.7

Here is my /etc/httpd/conf.d/redmine.conf

RailsBaseURI /var/www/redmine231/public
Alias /redmine /var/www/redmine231/public

# ScriptAlias I don't know what to put here
<Directory /var/www/redmine231/public>

        Options Indexes ExecCGI FollowSymLinks
        order allow,deny
        Allow from all
        AllowOverride all
</Directory>

RAILS_ENV=production script/about:

Environment:
  Redmine version                          2.3.1.stable
  Ruby version                             1.9.2 (x86_64-linux)
  Rails version                            3.2.13
  Environment                              production
  Database adapter                         SQLite
Redmine plugins:
  no plugin installed


redmine directory: /var/www/redmine231/

rails --version

usr/local/lib/ruby/1.9.1/rubygems.rb:238:in `activate': can't activate rack (~> 1.4.5, runtime) for ["actionpack-3.2.13", "railties-3.2.13"], already activated rack-1.5.2 for ["rack-ssl-1.3.3", "railties-3.2.13"] (Gem::LoadError)
    from /usr/local/lib/ruby/1.9.1/rubygems.rb:254:in `block in activate'
    from /usr/local/lib/ruby/1.9.1/rubygems.rb:253:in `each'
    from /usr/local/lib/ruby/1.9.1/rubygems.rb:253:in `activate'
    from /usr/local/lib/ruby/1.9.1/rubygems.rb:254:in `block in activate'
    from /usr/local/lib/ruby/1.9.1/rubygems.rb:253:in `each'
    from /usr/local/lib/ruby/1.9.1/rubygems.rb:253:in `activate'
    from /usr/local/lib/ruby/1.9.1/rubygems.rb:1065:in `gem'
    from /usr/local/bin/rails:18:in `<main>'