使用postgreSql和apache安装redmine 3.0.1

时间:2015-03-26 13:48:04

标签: postgresql redmine

我正在尝试在我的服务器上安装Redmine。

场景:   当我继续使用我的服务器URL时 - > http:\ domain-server.local:         我得到了Apache窗口“它的工作原理”。   如果我尝试https://domain-server.local/redmine:      错误:

Ruby on Rails application could not be started
A source file that the application requires, is missing.
It is possible that you didn't upload your application files correctly.         Please check whether all your application files are uploaded.
A required library may not installed. Please install all libraries that this   application requires.
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:
 cannot load such file -- /opt/config/environment
Exception class:
 LoadError
Application root:
 /opt

现在我尝试:domain-server.local / redmine:         我收到了这个错误:

  

乘客错误#2尝试访问'/ var / www / redmine / public / redmine'时出错:无法解析可能的符号链接'/ var / www / redmine / public / redmine':没有此类文件或目录( 2)

更奇怪的是:当我从我的URL和/ redmine中删除http:\时  我让我的redmine工作了:

Environment:
Redmine version                3.0.1.stable
Ruby version                   1.9.3-p194 (2012-04-20) [x86_64-linux]
Rails version                  4.2.0
Environment                    production
Database adapter               PostgreSQL
SCM:
 Subversion                     1.6.17
 Git                            1.7.10.4
 Filesystem                     
Redmine plugins:
 no plugin installed

但我想从http:\ domain-server.local / redmine

访问redmin

这是我的apache2.conf文件:

# Include the virtual host configurations:
Include sites-enabled/


RailsBaseURI /redmine
PassengerUserSwitching on
PassengerUser www-data
PassengerGroup www-data

<VirtualHost *:80>
   ServerName domain-server.local


  # !!! Be sure to point DocumentRoot to 'public'!
  DocumentRoot /var/www/redmine/public 

RailsEnv production
RailsBaseURI /redmine  
  <Directory /var/www/redmine>

     # This relaxes Apache security settings.
     AllowOverride all

     # MultiViews must be turned off.
     Options -MultiViews

     # Uncomment this if you're on Apache >= 2.4:
     #Require all granted
  </Directory>

我的安装有什么问题?

1 个答案:

答案 0 :(得分:0)

我解决了我的问题。

我删除了apache2.conf文件的内容。

我还有2个不同的Phusion_Passenger版本,所以我删除了最旧的和使用过的Phusion_Passenger 5.0.5。

我更改了我的符号链接/ var / www / redmine - &gt; /opt/redmine-3.0.1到/opt/redmine-3.0.1/public

我使用passenger-install-apache2-module指令在/ etc / apache2 / mods-available /中创建了文件passenger.load和passenger.conf。

然后重启apache并完成!