{"id":161,"date":"2014-01-18T21:50:31","date_gmt":"2014-01-18T12:50:31","guid":{"rendered":"http:\/\/lovelinux.mydns.jp\/?p=161"},"modified":"2014-08-25T11:22:59","modified_gmt":"2014-08-25T02:22:59","slug":"centos-6-5-%e3%81%abredmine%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/lovelinux.mydns.jp\/?p=161","title":{"rendered":"CentOS 6.5 \u306bRedmine\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<h3>\u306f\u3058\u3081\u306b<\/h3>\n<p>CentOS 6.5\u306b Redmine\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<br \/>\n\u6700\u7d42\u76ee\u6a19\u306f\u3001\u65e2\u306b\u4f5c\u6210\u6e08\u307f\u306eGitLab\u30ea\u30dd\u30b8\u30c8\u30ea\u30fc\u3068\u306e\u9023\u643a\u3067\u3059\u3002<br \/>\n\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Redmine\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u307f\u306b\u3064\u3044\u3066\u8a18\u8f09\u3057\u3001\u6b21\u306e\u8a18\u4e8b\u3067\u3001\u9023\u643a\u306b\u3064\u3044\u3066\u306e\u8aac\u660e\u3092\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>GitLab\u74b0\u5883\u306e\u4f5c\u6210\u306b\u8208\u5473\u304c\u3042\u308b\u65b9\u306f\u3001<a href=\"http:\/\/lovelinux.mydns.jp\/?p=130\">\u524d\u306e\u8a18\u4e8b<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>\u8ffd\u8a182(CentOS7)<\/h3>\n<p>CentOS7\u3000\u3067 redmine\u3092\u5c0e\u5165\u3059\u308b\u65b9\u6cd5\u3092\u516c\u958b\u3057\u307e\u3057\u305f\u3002CentOS7\u3067redmine\u3092\u3068\u304a\u8003\u3048\u306e\u65b9\u306f\u3001<a href=\"http:\/\/lovelinux.mydns.jp\/?p=1056\">\u3053\u3061\u3089\u3078<\/a>\u3069\u3046\u305e\u3002<\/p>\n<h3>Redmine\u7528\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210<\/h3>\n<p>[bash]<br \/>\n# mysql -uroot -p<\/p>\n<p>> create database redmine default character set utf8;<br \/>\n> grant all on redmine.* to &#8216;redmine&#8217;@&#8217;localhost&#8217; identified by &#8216;xxxxxxxx&#8217;;<br \/>\n> flush privileges;<br \/>\n> exit;<\/p>\n<p>[\/bash]<\/p>\n<h3>\u30e9\u30a4\u30d6\u30e9\u30ea\u30fc\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>[bash]<br \/>\n# yum install ImageMagick ImageMagick-devel<br \/>\n# yum install ipa-pgothic-fonts<\/p>\n<p>[\/bash]<\/p>\n<h3>Redmine\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u4ee5\u4e0b\u306eURL\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001Redmine\u306e\u6700\u65b0\u7248\u3042\u305f\u308a\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u304f\u3060\u3055\u3044\u3002<br \/>\nhttp:\/\/rubyforge.org\/frs\/?group_id=1850<\/p>\n<p>[bash]<br \/>\n# tar xvzf redmine-2.4.0.tar.gz <\/p>\n<p># mv redmine-2.4.0 \/var\/lib\/redmine<br \/>\n# cd \/var\/lib\/redmine<br \/>\n# cp config\/database.yml.example config\/database.yml<\/p>\n<p># nano config\/database.yml<\/p>\n<p>[\/bash]<\/p>\n<p>Mysql\u3078\u306e\u63a5\u7d9a\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8abf\u6574\u3057\u307e\u3059\u3002<br \/>\n[diff]<br \/>\nproduction:<br \/>\n  adapter: mysql2<br \/>\n  database: redmine<br \/>\n  host: localhost<br \/>\n  username: root<br \/>\n&#8211;  password: &#8220;&#8221;<br \/>\n+  password: &#8220;xxxxxxx&#8221;<br \/>\n  encoding: utf8<\/p>\n<p>[\/diff]<\/p>\n<h3>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210<\/h3>\n<p>[bash]<br \/>\n# cp config\/configuration.yml.example config\/configuration.yml<br \/>\n# nano config\/configuration.yml<\/p>\n<p>[\/bash]<\/p>\n<p>\u4ee5\u4e0b\u306e\u90e8\u5206\u3001\u304a\u597d\u304d\u306a\u30d5\u30a9\u30f3\u30c8\u3092\u6307\u5b9a\u304f\u3060\u3055\u3044\u3002<br \/>\n[diff]<br \/>\n&#8211; rmagick_font_path:<br \/>\n+ rmagick_font_path: \/usr\/share\/fonts\/ipa-pgothic\/ipagp.ttf<\/p>\n<p>[\/diff]<\/p>\n<h3>\u30d0\u30f3\u30c9\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4f5c\u6210<\/h3>\n<p>[bash]<br \/>\n# bundle install &#8211;without development test postgresql sqlite<\/p>\n<p># bundle exec rake generate_secret_token<br \/>\n# RAILS_ENV=production bundle exec rake db:migrate<br \/>\n[\/bash]<\/p>\n<h3>Passenger\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08\u65e2\u306b\u5c0e\u5165\u6e08\u307f\u3067\u3042\u308c\u3070\u3088\u307f\u98db\u3070\u3057\u3066\u304f\u3060\u3055\u3044\uff09<\/h3>\n<p>[bash]<br \/>\n# gem install passenger<\/p>\n<p># passenger-install-apache2-module<\/p>\n<p># passenger-install-apache2-module &#8211;snippet > \/etc\/httpd\/conf.d\/passenger.conf<br \/>\n[\/bash]<\/p>\n<h3>Apache\u3068Passenger\u9023\u643a\u3092\u8abf\u6574<\/h3>\n<p>[bash]<br \/>\n# chown -R apache:apache \/var\/lib\/redmine<br \/>\n# ln -s \/var\/lib\/redmine\/public \/var\/www\/html\/redmine<br \/>\n# echo &#8220;RailsBaseURI \/redmine&#8221; >> \/etc\/httpd\/conf.d\/passenger.conf<br \/>\n# service httpd restart<\/p>\n<p>[\/bash]<\/p>\n<h3>\u52d5\u4f5c\u78ba\u8a8d<\/h3>\n<p>http:\/\/myhost.jp\/redmine \u3078\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>admin\/admin\u3000\u3067\u30ed\u30b0\u30a4\u30f3\u51fa\u6765\u308c\u3070OK\u3067\u3059\u3002<\/p>\n<h3>Redmine\u521d\u671f\u8a2d\u5b9a<\/h3>\n<p>Redmine\u672c\u5bb6\u306e\u30b5\u30a4\u30c8\u306b\u3088\u3044\u8a18\u4e8b\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u305d\u3061\u3089\u3092\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>Redmine\u3092\u4f7f\u3044\u59cb\u3081\u308b\u305f\u3081\u306e\u521d\u671f\u8a2d\u5b9a<\/p>\n<p><a href=\"http:\/\/redmine.jp\/tech_note\/first-step\/admin\/\">http:\/\/redmine.jp\/tech_note\/first-step\/admin\/<\/a><\/p>\n<p>\u4ee5\u4e0a<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b CentOS 6.5\u306b Redmine\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002 \u6700\u7d42\u76ee\u6a19\u306f\u3001\u65e2\u306b\u4f5c\u6210\u6e08\u307f\u306eGitLab\u30ea\u30dd\u30b8\u30c8\u30ea\u30fc\u3068\u306e\u9023\u643a\u3067\u3059\u3002 \u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Redmine\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u307f\u306b\u3064\u3044\u3066\u8a18\u8f09\u3057\u3001\u6b21\u306e\u8a18\u4e8b\u3067\u3001\u9023\u643a\u306b\u3064\u3044\u3066\u306e\u8aac\u660e\u3092\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 GitLab\u74b0\u5883\u306e\u4f5c\u6210\u306b\u8208\u5473\u304c\u3042\u308b\u65b9\u306f\u3001\u524d\u306e\u8a18\u4e8b\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002 \u8ffd\u8a182(CentOS7) CentOS7\u3000\u3067 redmine\u3092\u5c0e\u5165\u3059\u308b\u65b9\u6cd5\u3092\u516c\u958b\u3057\u307e\u3057\u305f\u3002CentOS7\u3067redmine\u3092\u3068\u304a\u8003\u3048\u306e\u65b9\u306f\u3001\u3053\u3061\u3089\u3078\u3069\u3046\u305e\u3002 Redmine\u7528\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210 [bash] # mysql -uroot -p > create database redmine default character set utf8; > grant all on redmine.* to &#8216;redmine&#8217;@&#8217;localhost&#8217; identified by &#8216;xxxxxxxx&#8217;; > flush privileges; > exit; [\/bash] \u30e9\u30a4\u30d6\u30e9\u30ea\u30fc\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb [bash] # yum install ImageMagick ImageMagick-devel # yum install ipa-pgothic-fonts [\/bash] Redmine\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u4ee5\u4e0b\u306eURL\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001Redmine\u306e\u6700\u65b0\u7248\u3042\u305f\u308a\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u304f\u3060\u3055\u3044\u3002 http:\/\/rubyforge.org\/frs\/?group_id=1850 [bash] # tar xvzf redmine-2.4.0.tar.gz # mv redmine-2.4.0 \/var\/lib\/redmine # cd \/var\/lib\/redmine # cp config\/database.yml.example config\/database.yml # nano config\/database.yml [\/bash] Mysql\u3078\u306e\u63a5\u7d9a\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8abf\u6574\u3057\u307e\u3059\u3002 [diff] production: adapter: mysql2 database: redmine host: localhost username: root &#8211; password: &#8220;&#8221; + password: &#8220;xxxxxxx&#8221; encoding: utf8 [\/diff] \u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210 [bash] # cp config\/configuration.yml.example config\/configuration.yml # nano config\/configuration.yml [\/bash] \u4ee5\u4e0b\u306e\u90e8\u5206\u3001\u304a\u597d\u304d\u306a\u30d5\u30a9\u30f3\u30c8\u3092\u6307\u5b9a\u304f\u3060\u3055\u3044\u3002 [diff] &#8211; rmagick_font_path: + rmagick_font_path: \/usr\/share\/fonts\/ipa-pgothic\/ipagp.ttf [\/diff] \u30d0\u30f3\u30c9\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4f5c\u6210 [bash] # bundle install &#8211;without development test postgresql sqlite # bundle exec rake generate_secret_token # RAILS_ENV=production bundle exec rake db:migrate [\/bash] Passenger\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08\u65e2\u306b\u5c0e\u5165\u6e08\u307f\u3067\u3042\u308c\u3070\u3088\u307f\u98db\u3070\u3057\u3066\u304f\u3060\u3055\u3044\uff09 [bash] # gem install passenger # passenger-install-apache2-module # passenger-install-apache2-module &#8211;snippet > \/etc\/httpd\/conf.d\/passenger.conf [\/bash] Apache\u3068Passenger\u9023\u643a\u3092\u8abf\u6574 [bash] # chown -R apache:apache \/var\/lib\/redmine # ln -s \/var\/lib\/redmine\/public \/var\/www\/html\/redmine # echo &#8220;RailsBaseURI \/redmine&#8221; >> \/etc\/httpd\/conf.d\/passenger.conf # service httpd restart [\/bash] \u52d5\u4f5c\u78ba\u8a8d http:\/\/myhost.jp\/redmine \u3078\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002 admin\/admin\u3000\u3067\u30ed\u30b0\u30a4\u30f3\u51fa\u6765\u308c\u3070OK\u3067\u3059\u3002 Redmine\u521d\u671f\u8a2d\u5b9a Redmine\u672c\u5bb6\u306e\u30b5\u30a4\u30c8\u306b\u3088\u3044\u8a18\u4e8b\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u305d\u3061\u3089\u3092\u53c2\u7167\u304f\u3060\u3055\u3044\u3002 Redmine\u3092\u4f7f\u3044\u59cb\u3081\u308b\u305f\u3081\u306e\u521d\u671f\u8a2d\u5b9a http:\/\/redmine.jp\/tech_note\/first-step\/admin\/ \u4ee5\u4e0a<\/p>\n","protected":false},"author":1,"featured_media":398,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[4],"tags":[25,12,26],"class_list":{"0":"post-161","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-4","8":"tag-centos","9":"tag-gitlab","10":"tag-redmine"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=161"}],"version-history":[{"count":7,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/161\/revisions"}],"predecessor-version":[{"id":1070,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/161\/revisions\/1070"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/media\/398"}],"wp:attachment":[{"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}