Ubuntu Server 12.10 安装Redmine

人越成长,学习越来越成为不耐烦的事,很多时候人们就是在”知其然不知其所以然”的情况下受挫的。

在Ubuntu上装Redmine,搞了好几个小时才搞定,挺受伤的,赶紧记录下:

  1. 安装Apache2、Mysql;
  2. 安装passenger:
  • apt-get install libapache2-mod-passenger
  • a2enmod passenger
  • service apache2 restart
  1. 关闭apparmor
  • service apparmor stop
  1. 安装Redmine
  • apt-get install redmine redmine-mysql

    输入正确的mysql root密码

  1. 配置Apache
  • cd /etc/apache2/mods-available
  • nano passenger.conf

    修改为:

    <IfModule mod_passenger.c>

    PassengerDefaultUser www-data

    PassengerRoot /usr

    PassengerRuby /usr/bin/ruby

    </IfModule>

  1. 配置域名:

    参考:

    http://wiki.neal365.com/2013/02/22/ubuntu-apache2-%E9%85%8D%E7%BD%AE%E5%A4%9A%E5%9F%9F%E5%90%8D/

    注意:

    DocumentRoot 需要配置为
    /usr/share/redmine/public,比如:

    DocumentRoot /usr/share/redmine/public

    <Directory />

    Options FollowSymLinks

    RailsBaseURI /

    PassengerResolveSymlinksinDocumentRoot on

    AllowOverride None

    </Directory>

  2. 创建链接:
  • ln -s /usr/share/redmine/public /var/www/redmine
  1. 最后重启应该就可以了:
  • service apache2 restart

参考:

  1. 在ubuntu 12.04上安裝Redminehttp://my.oschina.net/leonzmq/blog/148565
  2. 错误:Passenger error: No such file or directory – config/environment.rb

http://serverfault.com/questions/394783/passenger-error-no-such-file-or-directory-config-environment-rb

Submit a comment

Allowed HTML tags: <a href="http://google.com">google</a> <strong>bold</strong> <em>emphasized</em> <code>code</code> <blockquote>
quote
</blockquote>
example: http://google.com