Project

General

Profile

Can't get Redmine to work under Apache2

Added by Catharina Sprick about 9 years ago

Hello,

I have installed Redmine along this HowTo (http://www.redmine.org/projects/redmine/wiki/InstallRedmineOnDebianStableApacheMysqlPassenger) on my server (Debian Sqeeze with Apache2) - and under Webrick with localhost it works without problems.
Now I want to run it under Apache2 - and there is the Problem. Whatever I do, I get the following Message:

Forbidden

You don't have permission to access / on this server.

I feel like I have tested every hint and help suggestion that is available here and in other Forums, but nothing helped.

Heres my config:

<VirtualHost *:80>
  ServerName redmine.myserver.com
  DocumentRoot /var/www/web2/html/public
  SuexecUserGroup web2 web2
  ScriptAlias /cgi-bin/ /var/www/web2/html/cgi-bin/
  CustomLog /var/www/web2/log/access_log confixx2
  suPHP_ConfigPath /etc/apache2/confixx_phpini/web2/4
  ErrorLog /var/www/web2/redmineErrorLog
<Directory /var/www/web2/html/public >
    Options -MultiViews +FollowSymLinks
    Order allow,deny
    Allow from all
    AllowOverride all
</Directory>
</VirtualHost>

The ErrorLog shows the following hint:

Symbolic link not allowed or link target not accessible: /var/www/web2/html/public

Redmine is installed on /opt/redmine and there is a symbolic link to from /var/www/web2/html
Both Folders /opt/redmine/public and /var/www/web2/html/public are owned by www-data

My Passenger.conf and .load:

Passenger.conf:
<IfModule mod_passenger.c>
     PassengerRoot /usr/local/lib/ruby/gems/1.9.1/gems/passenger-5.0.2
     PassengerDefaultRuby /usr/local/bin/ruby
     PassengerDefaultUser www-data
</IfModule>

Passenger.load:
LoadModule passenger_module /usr/local/lib/ruby/gems/1.9.1/gems/passenger-5.0.2/buildout/apache2/mod_passenger.so

Can anybody help me with this issue? I haven't got ideas anymore.
Many thanks!


Replies (3)

RE: Can't get Redmine to work under Apache2 - Added by Leonel Iturralde about 9 years ago

Last time I worked with symbolic links and apache on debian.
I had to set executable directory that the symbolic link points to. In addition to giving the directory all permission.

RE: Can't get Redmine to work under Apache2 - Added by James H about 9 years ago

i use
"Require all granted" &
"Options -MultiViews"...
but im still pretty noob to Apache

RE: Can't get Redmine to work under Apache2 - Added by Leonel Iturralde about 9 years ago

James H wrote:

i use
"Require all granted" &
"Options -MultiViews"...
but im still pretty noob to Apache

your apache config is not the issue.
I was talking about permissions on the directory.
Try executing this command.

chmod a+x -R /opt/redmine

    (1-3/3)