ubuntu 13.04にredmine1.4をインストールする

redmineのバージョンアップをテストするためにredmine1.4をインストールしました。 ubuntuには、aptのredmineパッケージがありますが、1.4からのアップグレードを確認したいのでソースから入れました。



必要なパッケージをインストールします。 試行錯誤していれたので不要なものもあるかもしれません。
$ sudo apt-get install ruby-dev
$ sudo apt-get install libmysql-ruby
$ sudo apt-get install apache2
$ sudo apt-get install libapache2-mod-passenger 
$ sudo apt-get install mysql-server
$ sudo apt-get install libmysqlclient-dev
$ sudo apt-get install subversion
$ sudo apt-get install rmagic
$ sudo apt-get install librmagick-ruby
$ sudo apt-get install libmagickwand-dev
$ sudo apt-get install libpq-dev
$ sudo apt-get install sqlite3
$ sudo apt-get install libsqlite3-dev


デフォルトの文字コードをUTF-8に変更します。 innodb_file_per_tableとquery-cache-sizeは任意です。
 sudo bzr diff my.cnf 
=== modified file 'mysql/my.cnf'
--- mysql/my.cnf        2013-09-14 02:18:20 +0000
+++ mysql/my.cnf        2013-09-14 02:23:10 +0000
@@ -40,6 +40,11 @@
 datadir                = /var/lib/mysql
 tmpdir         = /tmp
 lc-messages-dir        = /usr/share/mysql
 # Instead of skip-networking the default is now to listen only on

$ sudo mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 42
Server version: 5.5.32-0ubuntu0.13.04.1 (Ubuntu)

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> create database redmine default character set utf8;
Query OK, 1 row affected (0.00 sec)

mysql> create user 'redmine'@'localhost' identified by 'password';
Query OK, 0 rows affected (0.00 sec)

mysql> grant all privileges on redmine.* to 'redmine'@'localhost';
Query OK, 0 rows affected (0.01 sec)

mysql> exit


redmineをapacheでホスティングするためにpassengerを使います。 デフォルトでは、rootで動作するのでwww-dataに変更します。
 sudo bzr diff
=== modified file 'apache2/mods-available/passenger.conf'
--- apache2/mods-available/passenger.conf       2013-09-14 01:52:14 +0000
+++ apache2/mods-available/passenger.conf       2013-09-14 01:54:50 +0000
@@ -1,4 +1,5 @@
+  PassengerDefaultUser www-data
   PassengerRoot /usr
   PassengerRuby /usr/bin/ruby


$ pwd
$ sudo svn co
$ sudo ln -s 1.4-stable redmine
$ ls -l redmine
lrwxrwxrwx 1 root root 10  9月 14 11:55 redmine -> 1.4-stable
# gem install bundler
Fetching: bundler-1.3.5.gem (100%)
Successfully installed bundler-1.3.5
1 gem installed
Installing ri documentation for bundler-1.3.5...
Installing RDoc documentation for bundler-1.3.5...
# pwd
# bundle install --without development test
The source :rubygems is deprecated because HTTP requests are insecure.
Please change your source to '' if possible, or '' if not.
Fetching gem metadata from
Fetching gem metadata from
Resolving dependencies...
Using rake (10.1.0)
Using activesupport (2.3.15)
Using rack (1.1.6)
Using actionpack (2.3.15)
Using actionmailer (2.3.15)
Using activerecord (2.3.15)
Using activeresource (2.3.15)
Using coderay (1.0.9)
Using i18n (0.4.2)
Using mysql2 (0.2.20)
Using net-ldap (0.3.1)
Using pg (0.16.0)
Using rails (2.3.15)
Using rmagick (2.13.2)
Using ruby-openid (2.1.8)
Installing sqlite3 (1.3.8)
Installing tzinfo (0.3.37)
Using bundler (1.3.5)
Your bundle is complete!
Gems in the groups development and test were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
$ pwd
$ ls database*
$ sudo cp database.yml.example database.yml
# rake generate_session_store
# RAILS_ENV=production rake db:migrate
# RAILS_ENV=production rake redmine:load_default_data

Select language: ar, bg, bs, ca, cs, da, de, el, en, en-GB, es, et, eu, fa, fi, fr, gl, he, hr, hu, id, it, ja, ko, lt, lv, mk, mn, nl, no, pl, pt, pt-BR, ro, ru, sk, sl, sq, sr, sr-YU, sv, th, tr, uk, vi, zh, zh-TW [en] ja
Default configuration data loaded.
# ruby script/server webrick -e production

0 件のコメント: