ruby-on-rails - 在 Centos 上安装 Redmine

标签 ruby-on-rails apache centos redmine

我正在按照本指南在 CentOS 上安装 Redmine。我已经跟进了每一步。 Redmine 目前在 WebBrick 上运行,但不在 Apache 上运行。

我已经成功安装了 passenger。我收到这条消息:

Please edit your Apache configuration file, and add these lines:

LoadModule passenger_module /usr/lib64/ruby/gems/1.8/gems/passenger-4.0.0.rc4/libout/apache2/mod_passenger.so
PassengerRoot /usr/lib64/ruby/gems/1.8/gems/passenger-4.0.0.rc4
PassengerRuby /usr/bin/ruby

After you restart Apache, you are ready to deploy any number of Ruby on Rails
applications on Apache, without any further Ruby on Rails-specific
configuration!

当我重新启动 Apache 服务器时,我收到此消息。

[root@localhost httpd]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName
[Mon Mar 25 08:02:58 2013] [warn] NameVirtualHost *:80 has no VirtualHosts
                                                           [  OK  ]

也许这与它不起作用的原因有关。

这是配置文件:

[root@localhost conf.d]# cat redmine.conf 
# Loading Passenger
LoadModule passenger_module /usr/lib64/ruby/gems/1.8/gems/passenger-4.0.0.rc4/libout/apache2/mod_passenger.so
PassengerRoot /usr/lib64/ruby/gems/1.8/gems/passenger-4.0.0.rc4
PassengerRuby /usr/bin/ruby

<VirtualHost *:80>
   ServerName localhost.localdomain
   DocumentRoot /var/www/html/redmine/public
   <Directory /var/www/html/redmine/public>
      # This relaxes Apache security settings.
      AllowOverride all
      # MultiViews must be turned off.
      Options -MultiViews
      allow from all
   </Directory>

   ErrorLog "|/usr/sbin/rotatelogs /etc/httpd/logs/redmine-error.%Y-%m-%d.log 86400"
   CustomLog "|/usr/sbin/rotatelogs /etc/httpd/logs/redmine-access.%Y-%m-%d.log 86400" "%h %l %u %t %D \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""

</VirtualHost>

如有任何帮助,我们将不胜感激。

谢谢。

最佳答案

您的 apache 网络服务器是什么版本? 我猜这个问题可能来自 apache 版本。

关于ruby-on-rails - 在 Centos 上安装 Redmine,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15618201/

相关文章:

centos - 主机重启后立即在容器中循环设备设置(losetup、mount 等)失败

javascript - devise token auth - 如何使用javascript访问响应头信息?

ruby-on-rails - 在Rails应用程序中记录内部线程

ruby-on-rails - Postgres + Rails - 将所有表从一个模式迁移到另一个模式的正确方法

php - apache 提供的空白 php 页面

c++ - 错误:没有匹配函数来调用‘PSTUNClient::PSTUNClient

javascript - VPS 上的 Nodejs 仅在我的网络上运行

ruby-on-rails - 当我不断收到此 zlib 错误时,如何使用 gem 进行安装?

wordpress - 如何设置允许我通过 FTP 更新 WordPress 和修改文件的 EC2 所有权权限?

apache - firefox url 重写神秘,但不是其他浏览器