跳至主要内容

redmine installation guide

 1.  Prepare all the applications.

     1) ruby. highly recommend use 1.8.6-1.8.7 http://www.ruby-lang.org/en/downloads/
           ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-linux]
         mysql 5.1.45


     2) install all required gem/ gem install *.gem
          rubygem 
      actionmailer (2.3.11)
      actionpack (2.3.11)
      activerecord (2.3.11)
      activeresource (2.3.11)
      activesupport (2.3.11)
      i18n (0.4.2)
      mysql (2.8.1)
      rack (1.1.0, 1.0.1)
      rails (2.3.11)
      rake (0.8.7)
      rubygems-update (1.4.2)
       
  • Ruby 1.9 is not supported yet. You have to use Ruby 1.8.x as stated above.
  • RubyGems 1.3.1 or higher is required (Rails 2.3.5 will fail with RubyGems 1.5.0 and later, stick to previous versions of RubyGems)
  • Rake 0.8.3 or higher is required
  • Rack 1.0.1 is required. If you don't have this exact version, database migration would fail.
  • I18n 0.4.2 is required for Redmine >= 1.0.5

     3) download redmine http://www.redmine.org/projects/redmine/wiki/Download and unpack it.
     4) Create an empty database and accompanying user named redmine for example.

For MySQL:

 create database redmine character set utf8; create user 'redmine'@'localhost' identified by 'my_password'; grant all privileges on redmine.* to 'redmine'@'localhost'; 

For versions of MySQL prior to 5.0.2 - skip the 'create user' step and instead:

 grant all privileges on redmine.* to 'redmine'@'localhost' identified by 'my_password'; 

For PostgreSQL:

 CREATE ROLE redmine LOGIN ENCRYPTED PASSWORD 'my_password' NOINHERIT VALID UNTIL 'infinity'; CREATE DATABASE redmine WITH ENCODING='UTF8' OWNER=redmine; 

3. Copy config/database.yml.example to config/database.yml and edit this file in order to configure your database settings for "production" environment.

Example for a MySQL database:

 production:   adapter: mysql   database: redmine   host: localhost   username: redmine   password: my_password 

If your server is not running on the standard port (3306), use this configuration instead:

 production:   adapter: mysql   database: redmine   host: localhost   port: 3307   username: redmine   password: my_password 

Example for a PostgreSQL database (default port):

 production:   adapter: postgresql   database: <your_database_name>   host: <postgres_host>   username: <postgres_user>   password: <postgres_user_password>   encoding: utf8   schema_search_path: <database_schema> (default - public)
    5) run " rake generate_session_store"
6) under redmine path;
vi ./config/boot.rb
add "require 'thread'" in the first line
7) run "RAILS_ENV=production rake db:migrate"
but it will have problems, although they said the issue been fixed in gem2.3.11.
The workaround :
vi vendor/rails/railties/lib/rails/gem_dependency.rb
add
if Gem::VERSION >= "1.3.6"
module Rails
class GemDependency
def requirement
r = super
(r == Gem::Requirement.default) ? nil : r
end
end
end
end
in the last line. and export LD_LIBRARY_PATH=/opt/ruby/lib:/lib/ 

then the command is running successfully.

8) the tricky thing is, my mysql didn't use the local one, but redmine will search for default I don't how to modify this, just add the soft link with my own mysql's socket. then continue.
9) then run RAILS_ENV=production rake redmine:load_default_data
10)Setting up permissions

Assuming you run Redmine with a redmine user:

 mkdir tmp public/plugin_assets sudo chown -R redmine:redmine files log tmp public/plugin_assets sudo chmod -R 755 files log tmp public/plugin_assets
11) use admin/admin to login
--
Alex Tu
-----------------------------------------------------------
ShangHai,China

评论

此博客中的热门博文

mod

apache安装后,如果想再添加模块,往往不想重新安装一次,再者,我在安装中发现,并不是安装文件中所有的modules都会被默认安装,即使在安装中使用了 ./configure --prefix=/usr/local/apache --enable-so --enable-modules=all --enable-mods-shared=all也是如此。我使用上述方法安装的apache2.2.6就没有安装proxy相关模块。这时,需要手工生成so文件,但会自动的被复制到你的apache安装目录的modules中,然后修改apache的配置文件,加载相关模块,验证apache配置并重启服务即可。以上描述的具体操作步骤如下: 操作系统:linux redhat 4.5 ES apache版本:2.2.6 可自行下载tar包 1. 拷贝安装包到/usr/local,并在目标目录下进行解压。[root@localhost local]# cd /usr/local[root@localhost local]# tar -zxvf httpd-2.2.4.tar.gz2. 配置安装参数,安装的目标目录为/usr/local/apache,建议设置enable-mods-shared=all,不用的module注释掉就行了![root@localhost local]# cd httpd-2.2.4[root@localhost httpd-2.2.4]# ./configure --prefix=/usr/local/apache --enable-so --enable-mods-shared=all3. 编译并安装。[root@localhost httpd-2.2.4]# make[root@localhost httpd-2.2.4]# make install4. 启动Apache,并测试。[root@localhost httpd-2.2.4]# cd /usr/local/apache/bin[root@localhost bin]# ./apachectl start 打开浏览器,并在地址栏中输入主机的IP地址如 http://192.168.1.254/ 如果出现以下画面则说明安装成功。It works! 注意:安装完成后检查系统服务中的HTTPD服务是否已...

繁忙的周末

回了杭州,周五跟老爹吃夜宵,周六跟一群人玩,好乐迪9折加对折,然后夜宵,长肉。 跟老妈逛街。。花了我一千大洋,买了2件外套了受不了了。 结果。。唉。。去赶火车结果没坐上,改签,跟老妈发脾气。。让我多睡了10分钟结果拉下了火车。 然后做七点四十七的车,一路出战一路狂奔赶地铁。。 终于赶上了。 真不容易,还是要提早啊

Words

给自己的嘴巴安上一把锁,不要试图讲出全部的想法。培养低调和富有感染力的言谈。说话的方式比内容更为重要。 少作承诺,并保证它们的信誉。一旦作出承诺,无论付出多大代价都要履行。 永远不要错过赞赏和鼓励别人的机会。不论是谁做的漂亮的工作,都给予称赞。如果需要提出意见,请以一种帮助的态度,而不是鄙夷的态度。关心别人的需要、工作、家庭和家人。与快乐的人一起快乐;与悲伤的人一起悲伤。 让每一个与你交往的人,不论多么卑微,都能感觉到你对他的重视。 做一个快乐的人。不要将自己不足一提的伤痛和失望传染给了周围的人。请记住,每个人都承担着某些压力。 保持开放的心态。讨论但不要争论,不同意但不愤岔,是伟大心灵的标志。 让你的美德自己来说话。拒绝谈论别人的短处,不要传播谣言。这些将浪费你宝贵的时间,并会极大地破坏你的人际关系。 谨慎地对待别人的情感。揶揄和幽默并不值得以伤害别人为代价,尤其当你认为可能性很小的时候。 无需担心关于你的流言。请记住,散播流言的人并非世界上最准确的报道员。以不变应万变。紧张不安加上坏心眼一般是背后议人是非的原因。 别太着急属于自己的信誉。将你自己做到最好,并要有耐心。忘记你自己,让别人来”记住”你。这样的成功更令人愉悦。