我正在尝试在apache2上运行我的redmine,与此同时,我已经好几年没有接触apache了,所有文档似乎都已经过时了。
无论如何,我已经设置了所有配置文件,但是当我尝试打开Redmine时,我的apache下载了fcgi。
这是我的redmine.conf
Alias /redmine /path/redmine/public
<Directory /path/redmine/public>
AddHandler fastcgi-script fcgi
Order allow,deny
Allow from all
AllowOverride all
Options +FollowSymLinks +ExecCGI
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi
</Directory>
我想念什么?
尝试打开的网址是http://localhost/redmine
答案 0 :(得分:0)
请检查是否在配置中启用了AllowOverride All。 如果您不知道那是什么,请在此处检查,然后重试。 Enabling use of Apache .htaccess files
<Directory /your/path>
AllowOverride All
</Directory>
重新启动您的网络服务器:
sudo /etc/init.d/apache2 restart
如果启用了此功能,请尝试以下操作:
首先更改sources.list并创建文件首选项,以便我 可以从测试分支安装固定版本。
# /etc/apt/sources.list
deb http://ftp.de.debian.org/debian/ stable main contrib non-free
deb http://security.debian.org/ stable/updates main contrib non-free
deb http://ftp.de.debian.org/debian/ testing main contrib non-free
创建此文件
# /etc/apt/preferences
Package: *
Pin: release o=Debian,a=testing
Pin-Priority: 850
Package: *
Pin: release o=Debian,a=stable
Pin-Priority: 990
Package: *
Pin: release o=Debian
Pin-Priority: -1
已经可以从测试分支开始安装Redmine
apt-get update
apt-get install redmine redmine-mysql libsvn-ruby ruby-rmagick libfcgi-ruby1.8 -t=testing
这就是配置文件!
<VirtualHost *:80>
ServerName redmine.DOMAIN
DocumentRoot /usr/share/redmine/public/
AddHandler fcgid-script fcgi
LogLevel warn
ErrorLog /var/www/DOMAIN/logs/error.log
CustomLog /var/www/DOMAIN/access.log combined
<Directory /usr/share/redmine/public/>
Options -Indexes FollowSymLinks MultiViews +ExecCGI
AllowOverride All
Order allow,deny
allow from all
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi
</Directory>
</VirtualHost>