Redmineをインストールしたときのメモ。
Ubuntu12にも同じ手順でインストールできるかも。
MySQLの設定を追加
$ sudo vi /etc/mysql/my.cnf
下記の2行を、該当するセクションに追記した
セクション ⇒ [mysqld]
character-set-server = utf8 ← 追加
セクション ⇒ [mysql]
default-character-set = utf8 ← 追加
MySQLの設定反映と確認
$ sudo /etc/init.d/mysql restart
$ mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 37
Server version: 5.5.29-0ubuntu0.12.10.1 (Ubuntu)
Copyright (c) 2000, 2012, 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
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show variables like "char%";
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- +
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Variable_name | Value |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- +
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
character_set_client | utf8 |
character_set_connection | utf8 |
character_set_database | utf8 |
character_set_filesystem | binary |
character_set_results | utf8 |
character_set_server | utf8 |
character_set_system | utf8 |
character_sets_dir | /usr/share/mysql/charsets/ |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- +
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
8 rows in set (0.00 sec)
mysql> quit
Bye
Apache2のインストール
$ sudo apt-get install apache2
passengerのインストール
$ sudo apt-get install libapache2-mod-passenger
Redmineのインストール
$ sudo apt-get install redmine-mysql
$ sudo apt-get install redmine
途中で、データベースの選択を促される。
今回はMySQLをインストールしたのでそれを選択。
ブラウザのドキュメントルートに設定してしまおう
$ sudo vi /etc/apache2/sites-enabled/000-default
もともとの行をコメントアウトし、新たにDocumentRootを設定
#DocumentRoot /var/www
DocumentRoot /usr/share/redmine/public
apache2を再起動する。
$ sudo /etc/init.d/apache2 restart