problem installing redmine
Added by Chris West about 12 years ago
Hi,
I installed for the first time a ruby based script.
I ran into problems and don't really know how to solve it.
Here's the setup:
I installed ruby using the ppa from here:
https://launchpad.net/~ondrej/+archive/ppa
Reason: Installed all required packages to run.
I then configured an vHost with this:
RailsEnv production
SetEnv X_DEBIAN_SITEID "default"
SetEnv RAILS_RELATIVE_URL_ROOT "/admin/project"
Alias /admin/project/plugin_assets /var/cache/redmine/default/plugin_assets/
Alias /admin/project /usr/share/redmine/public
<Directory /usr/share/redmine/public/>
Order deny,allow
Allow from all
RewriteEngine On
RewriteBase "/admin/project"
RewriteRule $ index.html [QSA]
RewriteRule ^([.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_FILENAME} dispatch.fcgi$
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
</Directory>
I have to use a subdirectory because we want to have it ssl protected.
Wenn I enter the page I get this note:
Forbidden
You don't have permission to access /admin/project/dispatch.fcgi on this server.
This server only has one customer so www-data is used as web server user.
Logs:
error.log
[Sat Feb 16 12:09:06 2013] [error] [client 178.27.52.13] File does not exist: /var/www/dev2/html/favicon.ico
access.log
xxx.xxx.xxx.xxx- - [16/Feb/2013:12:09:06 +0000] "GET /admin/project/ HTTP/1.1" 403 6345 "-" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17"
xxx.xxx.xxx.xxx - - [16/Feb/2013:12:09:06 +0000] "GET /favicon.ico HTTP/1.1" 404 612 "-" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17"
I only posted one entry, as the rest is identical.
I tried to set it up with apache2 and passenger
What am I doing wrong?
Replies (2)
RE: problem installing redmine
-
Added by Jan Niggemann (redmine.org team member) about 12 years ago
Read my guide for sub-uri deployment, your config looks too complicated, why the rewrites?
Although your apache may run as www-data, I assume your passenger doesn't by default:
http://www.modrails.com/documentation/Users%20guide%20Apache.html#PassengerDefaultUser
Perhaps you need to set PassengerDefaultUser?
RE: problem installing redmine
-
Added by Chris West about 12 years ago
the fix was quite simple.
I had the following lines to much:
RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_FILENAME} dispatch.fcgi$
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
they point to the fcgi script
^^