0

I've have followed all the steps to install Redmine on CentOS 5, except for the Apache part:

http://www.redmine.org/projects/redmine/wiki/HowTo_install_Redmine_on_CentOS_5

I do not want to configure a virtualhost as we are not using virtual hosts.

Can I configure Redmine to run with http://hostname/redmine?

Apparently it doesn't work for my case.

Redmine was extracted in to the webserver document root /var/www/html/ called /var/www/html/redmine

What I did was added a redmine.conf to /etc/httpd/conf.d/ with the following configuration and restarted the server:

<Location "/redmine">
    Options Indexes ExecCGI FollowSymLinks -MultiViews
    Order allow,deny
    Allow from all
    AllowOverride all

    PassengerEnabled On
    RailsBaseURI /var/www/html/redmine
    RailsEnv production
</Location>

now i got this error

Further information about the error may have been written to the application's log file. Please check it in order to analyse the problem.

Error message: No such file or directory - config/environment.rb Exception class: Errno::ENOENT Application root: /var/www/html

Where have I gone wrong?

flyclassic
  • 173
  • 3
  • 7

3 Answers3

0

To suppress directory listings remove the Indexes option from your Options list.

Kev
  • 7,777
  • 17
  • 78
  • 108
0

RailsBaseURI is wrong, It should be this

RailsBaseURI /var/www/html/redmine/public
kaji
  • 2,510
  • 16
  • 17
0

Here is mine. I use a symlink for redmine at /var/www/html/redmine .

PassengerResolveSymlinksInDocumentRoot on
RailsBaseURI /redmine
<Directory /var/www/html/redmine>
    Allow from all
    Options -MultiViews
    PassengerUser redmine
    PassengerGroup redmine
</Directory>

<Location /redmine/sys>
    Order deny,allow
    Allow from 127.0.0.1
    Deny from all
</Location>
Spenser
  • 11
  • 1