- 追加された行はこの色です。
- 削除された行はこの色です。
// 下階層用テンプレート
#topicpath
----
//ここにコンテンツを記述します。
#contents
** MySQLで文字化けしない設定 [#u195c013]
[root@centos redmine-1.0.0]# cat /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
default-character-set=utf8 <-これ
user=mysql
割愛
[root@centos redmine-1.0.0]#
** Apacheと連携する [#j303f1b5]
Redmineが、Mongrelとかでhttp://localhost:3000/redmine というコンテキストパスで起動している前提で、Apacheの設定ファイルに以下を追加します
cat /etc/httpd/conf.d/mongrel.conf
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /redmine http://localhost:3000/redmine
ProxyPassReverse /redmine http://localhost:3000/redminem
これでApacheからMongrelにproxyすることができます。
**Redmineでメール通知の機能を使う。 [#l6fde9fd]
まずは設定ファイルで基本的な設定をしておきます。
[root@www config]# cd /opt/redmine-1.0.0/
[root@www redmine-1.0.0]# cp -pfr config/email.yml.example config/email.yml
[root@www redmine-1.0.0]# /etc/init.d/redmine restart
[root@www redmine-1.0.0]# cat config/email.yml
〜 割愛 〜
production:
delivery_method: :smtp
smtp_settings:
address: 127.0.0.1
port: 25
domain: example.net
#authentication: :login
#user_name: "redmine@example.net"
#password: "redmine"
development:
delivery_method: :smtp
smtp_settings:
address: 127.0.0.1
port: 25
domain: example.net
authentication: :login
user_name: "redmine@example.net"
password: "redmine"
[root@www redmine-1.0.0]#
次にRedmineの管理画面(管理>>設定>>メール通知) で設定をすればOKです。
**Redmineのアカウントと、Redmineが参照しているSubversionのアカウントの同期を取る [#v12fcfff]
<Location "/svnhogehoge"> <-適宜。
DAV svn
SVNPath /opt/svnroot <-適宜あわせる
Require valid-user
# mod_auth_mysql
AuthName "Subversion repository"
AuthType Basic
AuthMySQLEnable on
AuthMySQLUser redmine <-適宜
AuthMySQLPassword redmine <-適宜
AuthMySQLDB redmine <-適宜
AuthMySQLNameField login
AuthMySQLPasswordField hashed_password
AuthMySQLUserTable "users,members,projects"
AuthMySQLUserCondition "users.id=members.user_id and
projects.id=members.project_id and projects.identifier='hogehoge'"
identifierだけ、各プロジェクトの識別子にあわせる ↑
AuthMySQLPwEncryption sha1
</Location>
----
この記事は
#vote(おもしろかった,そうでもない)
#comment
#topicpath
SIZE(10){現在のアクセス:&counter;}