{"id":2320,"date":"2019-07-29T10:41:03","date_gmt":"2019-07-29T01:41:03","guid":{"rendered":"https:\/\/www.dogrow.net\/linux\/?p=2320"},"modified":"2022-07-11T00:12:43","modified_gmt":"2022-07-10T15:12:43","slug":"blog115","status":"publish","type":"post","link":"https:\/\/www.dogrow.net\/linux\/blog115\/","title":{"rendered":"(115) SAKURA\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u4e0a\u306e CentOS7\u306b Redmine4.0\u3092\u5165\u308c\u308b\u3002"},"content":{"rendered":"<h1 class=\"my_h\">1. \u3084\u308a\u305f\u3044\u3053\u3068<\/h1>\n<p>1) <a href=\"https:\/\/vps.sakura.ad.jp\/\" target=\"_blank\" rel=\"noopener noreferrer\">SAKURA VPS<\/a> \u306b <span class=\"my_fc_deeppink\">CentOS7<\/span> \u3092\u5165\u308c\u308b\u3002<br \/>\n2) \u305d\u306e CentOS7 \u306b <span class=\"my_fc_deeppink\">Redmine 4.0.4<\/span> \u3092\u5165\u308c\u308b\u3002<\/p>\n<h1 class=\"my_h\">2. \u3084\u3063\u3066\u307f\u305f\uff01<\/h1>\n<h2 class=\"my_h\">2.1 SAKURA\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u306b CentOS7\u3092\u5165\u308c\u308b\u3002<\/h2>\n<p>SAKURA VPS\u306e\u7ba1\u7406\u753b\u9762\u306b\u3066\u7c21\u5358\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u3002<br \/>\n\u7279\u7b46\u3059\u308b\u3053\u3068\u306f\u7121\u3044\u306e\u3067\u3001\u624b\u9806\u3060\u3051\u3092\u8a18\u9332\u3057\u3066\u304a\u304f\u3002<\/p>\n<p>1) \u7ba1\u7406\u753b\u9762\u306b\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3002<br \/>\n2) \u300c\u6a19\u6e96OS\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u300d\u304b\u3089\u300cCentOS x86_64\u300d\u3092\u9078\u629e\u3059\u308b\u3002<br \/>\n3) \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u5b9f\u884c\u3059\u308b\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/linux\/wp-content\/uploads\/2019\/07\/001.png\" alt=\"\" \/><\/p>\n<h2 class=\"my_h\">2.2 CentOS7\u306b Redmine 4.0.4\u3092\u5165\u308c\u308b\u3002<\/h2>\n<p>\u4eca\u56de\u4f7f\u7528\u3057\u305f\u5404\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30d0\u30fc\u30b8\u30e7\u30f3<br \/>\n\u30fbRedmine 4.0.4<br \/>\n\u30fbRuby 2.6.3<br \/>\n\u30fbPostgreSQL 9.2.24<br \/>\n\u30fbApache 2.4.6<\/p>\n<p>\u57fa\u672c\u7684\u306b\u306f\u516c\u5f0f\u30b5\u30a4\u30c8\u306e\u60c5\u5831\u306b\u5f93\u3046\u3002<br \/>\n<a href=\"http:\/\/blog.redmine.jp\/articles\/3_4\/install\/centos\/\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/blog.redmine.jp\/articles\/3_4\/install\/centos\/<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/linux\/wp-content\/uploads\/2019\/07\/003.png\" alt=\"\" \/><\/a><\/p>\n<h3 class=\"my_h\">(1) Redmine\u5b89\u5b9a\u677f\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3002<\/h3>\n<p>\u3053\u3053\u3067\u306f\u3001\u6700\u65b0\u306e\u5b89\u5b9a\u7248 <span class=\"my_fc_deeppink\">Redmine 4.0.4<\/span> \u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3002(2019\u5e747\u670829\u65e5\u6642\u70b9)<\/p>\n<p><a href=\"http:\/\/www.redmine.org\/projects\/redmine\/wiki\/Download\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/www.redmine.org\/projects\/redmine\/wiki\/Download<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/linux\/wp-content\/uploads\/2019\/07\/002.png\" alt=\"\" \/><\/a><\/p>\n<p>SAKURA VPS\u4e0a\u306e CentOS\u4e0a\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3002<\/p>\n<pre>\r\n$ cd ~\r\n$ mkdir .\/work\r\n$ cd .\/work\r\n$ wget http:\/\/www.redmine.org\/releases\/redmine-4.0.4.tar.gz\r\n<\/pre>\n<p>\u89e3\u51cd\u3059\u308b\u3002<\/p>\n<pre>\r\n$ tar -zxvf redmine-4.0.4.tar.gz\r\n<\/pre>\n<p>\u53c2\u8003\u60c5\u5831\uff1a<br \/>\nz : gz\u5f62\u5f0f<br \/>\nx (extract) : \u5727\u7e2e\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u89e3\u51cd<br \/>\nv (verbose) : \u51e6\u7406\u5185\u5bb9\u3092\u8868\u793a<br \/>\nf (filename) : \u30d5\u30a1\u30a4\u30eb\u540d\u3092\u6307\u5b9a<\/p>\n<h3 class=\"my_h\">(2) firewall\u3067 HTTP\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u8a31\u53ef\u3059\u308b\u3002<\/h3>\n<p>\u73fe\u5728 HTTP\u304c\u901a\u904e\u3067\u304d\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3059\u308b\u3002<\/p>\n<pre>\r\n$ su -  <span class=\"my_fc_green\"># root\u306b\u306a\u308b\u3002<\/span>\r\n\r\n# firewall-cmd --zone=public --list-services\r\n<span class=\"my_fc_deeppink\">http<\/span> pop3s vnc-server smtp imaps https\r\n<\/pre>\n<p>\u3082\u3057\u7121\u3051\u308c\u3070\u8a31\u53ef\u8a2d\u5b9a\u3059\u308b\u3002<\/p>\n<pre>\r\n# firewall-cmd --zone=public --add-service=<span class=\"my_fc_deeppink\">http<\/span> --permanent\r\nsuccess\r\n# firewall-cmd --reload\r\nsuccess\r\n<\/pre>\n<h3 class=\"my_h\">(3) \u300cDevelopment Tools\u300d\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/h3>\n<p>\u307e\u305a\u306f yum\u306e grouplist\u3092\u898b\u3066\u307f\u308b\u3002<\/p>\n<pre>\r\n# yum grouplist\r\nLoaded plugins: fastestmirror, langpacks\r\nLoading mirror speeds from cached hostfile\r\n\uff1a\r\nAvailable Groups:\r\n   Cinnamon\r\n   Compatibility Libraries\r\n   Console Internet Tools\r\n   <span class=\"my_fc_deeppink\">Development Tools<\/span> <span class=\"my_fc_crimson\">\u2190\u30b3\u30ec<\/span>\r\n   Educational Software\r\n   Electronic Lab\r\n\uff1a\r\nDone\r\n<\/pre>\n<p><span class=\"my_fc_deeppink\">Development Tools<\/span> \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n<pre>\r\n# yum -y groupinstall \"<span class=\"my_fc_deeppink\">Development Tools<\/span>\"\r\n<\/pre>\n<h3 class=\"my_h\">(4) Ruby, Passenger\u306e\u30d3\u30eb\u30c9\u306b\u5fc5\u8981\u306a\u7269\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/h3>\n<p>Ruby\u3068 Passenger\u306e\u30d3\u30eb\u30c9\u306b\u5fc5\u8981\u306a\u30d8\u30c3\u30c0\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n<pre>\r\n# yum -y install openssl-devel readline-devel zlib-devel curl-devel libyaml-devel libffi-devel\r\n<\/pre>\n<h3 class=\"my_h\">(5) PostgreSQL\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/h3>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u306f PostgreSQL \u3092\u4f7f\u7528\u3059\u308b\u3002<\/p>\n<pre>\r\n# yum -y install postgresql-server postgresql-devel\r\n<\/pre>\n<h3 class=\"my_h\">(6) ImageMagick\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/h3>\n<p>\u753b\u50cf\u51e6\u7406\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u306f ImageMagick \u3092\u4f7f\u7528\u3059\u308b\u3002<\/p>\n<pre>\r\n# yum -y install ImageMagick ImageMagick-devel\r\n<\/pre>\n<h3 class=\"my_h\">(7) \u65e5\u672c\u8a9e\u30d5\u30a9\u30f3\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/h3>\n<p>IPA\u304c\u7121\u6599\u516c\u958b\u3057\u3066\u3044\u308b\u30d5\u30a9\u30f3\u30c8\u3092\u4f7f\u7528\u3059\u308b\u3002<\/p>\n<pre>\r\n# yum -y install ipa-pgothic-fonts\r\n<\/pre>\n<h3 class=\"my_h\">(8) Ruby\u3092\u30d3\u30eb\u30c9\u3059\u308b\u3002<\/h3>\n<p>Ruby\u306e\u6700\u65b0\u5b89\u5b9a\u677f 2.6.3 \u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3002(2019\u5e747\u670829\u65e5\u6642\u70b9)<\/p>\n<pre>\r\n# exit\r\n$ cd ~\/work\r\n$ curl -O https:\/\/cache.ruby-lang.org\/pub\/ruby\/2.6\/ruby-2.6.3.tar.gz\r\n<\/pre>\n<p>Ruby\u3092\u30d3\u30eb\u30c9\u3059\u308b\u3002<\/p>\n<pre>\r\n$ tar -xvf ruby-2.6.3.tar.gz\r\n$ cd .\/ruby-2.6.3\r\n$ .\/configure --disable-install-doc  <span class=\"my_fc_green\"># \u2190\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u5fc5\u8981\u306a\u60c5\u5831\u3092\u4f5c\u6210<\/span>\r\n$ make\r\n$ sudo make install  <span class=\"my_fc_green\"># \u2190sudo\u51fa\u6765\u306a\u3044\u306a\u3089\u3070 root\u306b\u306a\u308b\u3002<\/span>\r\n<\/pre>\n<p>Ruby\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3059\u308b\u3002<\/p>\n<pre>\r\n$ cd\r\n$ ruby -v\r\nruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux]\r\n<\/pre>\n<p>OK\u3060\uff01<\/p>\n<h3 class=\"my_h\">(9) bundler\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/h3>\n<p>Ruby\u7528\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30c4\u30fc\u30eb\u3067\u3042\u308bbundler\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<br \/>\nredmine\u304c\u4f7f\u7528\u3059\u308b gem\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u4f7f\u7528\u3059\u308b\u3002<\/p>\n<pre>\r\n$ su -  <span class=\"my_fc_green\"># root\u306b\u306a\u308b\u3002<\/span>\r\n# gem install bundler\r\n<\/pre>\n<h3 class=\"my_h\">(10) PostgreSQL\u306e\u8a2d\u5b9a\u3092\u3059\u308b\u3002<\/h3>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30af\u30e9\u30b9\u30bf\u3092\u65b0\u898f\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<pre>\r\n# postgresql-setup initdb\r\n<\/pre>\n<p>Redmine\u304b\u3089 PosygreSQL\u306b\u63a5\u7d9a\u3059\u308b\u305f\u3081\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3059\u308b\u3002<\/p>\n<pre>\r\n# vi \/var\/lib\/pgsql\/data\/pg_hba.conf\r\n<\/pre>\n<p>\u4ee5\u4e0b\u3092\u7de8\u96c6\u3059\u308b\u3002<br \/>\n\u3053\u3053\u3067\u306f\u540d\u524d\u3092 redmine_aa \u3068\u3057\u3066\u3044\u308b\u3002\uff08\u5f8c\u3067\u8907\u6570\u306e redmine\u3092\u540c\u5c45\u3055\u305b\u308b\u305f\u3081\u3002\uff09<\/p>\n<pre>\r\n 67 # Put your actual configuration here\r\n 68 # ----------------------------------\r\n 69 #\r\n 70 # If you want to allow non-local connections, you need to add more\r\n 71 # \"host\" records.  In that case you will also need to make PostgreSQL\r\n 72 # listen on a non-local interface via the listen_addresses\r\n 73 # configuration parameter, or via the -i or -h command line switches.\r\n<span class=\"my_fc_deeppink\"> 74 host    redmine_aa      redmine_aa      127.0.0.1\/32            md5\r\n 75 host    redmine_aa      redmine_aa      ::1\/128                 md5<\/span>\r\n<\/pre>\n<p>\u30de\u30b7\u30f3\u8d77\u52d5\u6642\u306b PoastgreSQL\u3092\u81ea\u52d5\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u304a\u304f\u3002<\/p>\n<pre>\r\n# systemctl start postgresql.service\r\n# systemctl enable postgresql.service\r\n<\/pre>\n<p>\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u3066\u304a\u304f\u3002<\/p>\n<pre>\r\n# systemctl status postgresql.service\r\n\u25cf postgresql.service - PostgreSQL database server\r\n   Loaded: loaded (\/usr\/lib\/systemd\/system\/postgresql.service; enabled; vendor preset: disabled)\r\n   Active: active (running) since Mon 2019-07-29 12:03:08 JST; 14s ago\r\n Main PID: 2560 (postgres)\r\n   CGroup: \/system.slice\/postgresql.service\r\n           \u251c\u25002560 \/usr\/bin\/postgres -D \/var\/lib\/pgsql\/data -p 5431\r\n           \u251c\u25002561 postgres: logger process\r\n           \u251c\u25002563 postgres: checkpointer process\r\n           \u251c\u25002564 postgres: writer process\r\n           \u251c\u25002565 postgres: wal writer process\r\n           \u251c\u25002566 postgres: autovacuum launcher process\r\n           \u2514\u25002567 postgres: stats collector process\r\n<\/pre>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b Redmine\u7528\u306e\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<pre>\r\n# cd \/var\/lib\/pgsql\r\n# sudo -u postgres createuser -P redmine_aa  # \u66ab\u5b9a\u30d1\u30b9\u30ef\u30fc\u30c9 qwertymnbvcxz \u3068\u3059\u308b\u3002\r\n<\/pre>\n<p>\u203b\u3082\u3057 postgres \u30e6\u30fc\u30b6\u30fc\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5fd8\u308c\u305f\u3089\uff1f<\/p>\n<p>Redmine\u7528\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<pre>\r\n# sudo -u postgres createdb -E UTF-8 -l ja_JP.UTF-8 -O redmine_aa -T template0 redmine_aa\r\n<\/pre>\n<h3 class=\"my_h\">(11) Redmine\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/h3>\n<p>\u4e0a\u8a18(1)\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\uff06\u89e3\u51cd\u3057\u305f Redmine\u6700\u65b0\u5b89\u5b9a\u677f\u3092 \/var\/lib \u914d\u4e0b\u306b\u30b3\u30d4\u30fc\u3059\u308b\u3002\uff08\u79fb\u52d5\u3067\u3082\u3088\u3044\uff09<\/p>\n<pre>\r\n# cp -r \/home\/hoge\/work\/redmine-4.0.4 \/var\/lib\/redmine_aa\r\n# cd \/var\/lib\/redmine_aa\r\n<\/pre>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306e\u63a5\u7d9a\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b\u3002<\/p>\n<pre>\r\n# cp config\/database.yml.example config\/database.yml\r\n# vi config\/database.yml\r\n<\/pre>\n<p>\u958b\u3044\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3059\u308b\u3002<\/p>\n<pre>\r\n# PostgreSQL configuration example\r\nproduction:\r\n  adapter: postgresql\r\n  database: redmine_aa  <span class=\"my_fc_green\"># \u4e0a\u3067\u4f5c\u6210\u3057\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d\u3092\u8a2d\u5b9a\u3059\u308b\u3002<\/span>\r\n  host: localhost\r\n  username: redmine_aa  <span class=\"my_fc_green\"># \u4e0a\u3067\u4f5c\u6210\u3057\u305f\u30e6\u30fc\u30b6\u30fc\u540d\u3092\u8a2d\u5b9a\u3059\u308b\u3002<\/span>\r\n  password: \"qwertymnbvcxz\"  <span class=\"my_fc_green\"># \u4e0a\u3067\u8a2d\u5b9a\u3057\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3059\u308b\u3002<\/span>\r\n<\/pre>\n<p>\u30b3\u30f3\u30d5\u30a3\u30b0\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b\u3002<\/p>\n<pre>\r\n# cp config\/configuration.yml.example config\/configuration.yml\r\n# vi config\/configuration.yml\r\n<\/pre>\n<p>\u958b\u3044\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3059\u308b\u3002<\/p>\n<pre>\r\nproduction:\r\n  email_delivery:  # \u2190\u30e1\u30fc\u30eb\u8a2d\u5b9a\r\n    delivery_method: :smtp\r\n    smtp_settings:\r\n      address: \"localhost\"\r\n      port: 25\r\n      domain: \"xxxxxxxxx.xxx\"  <span class=\"my_fc_green\"># \u2190\u81ea\u74b0\u5883\u306b\u5408\u308f\u305b\u3066 Redmine\u3067\u9001\u53d7\u4fe1\u3059\u308b\u30e1\u30fc\u30eb\u306e\u30c9\u30e1\u30a4\u30f3\u540d\u3092\u8a2d\u5b9a\u3059\u308b\u3002<\/span>\r\n\r\n  rmagick_font_path: \/usr\/share\/fonts\/ipa-pgothic\/ipagp.ttf  <span class=\"my_fc_green\"># \u2190\u30d5\u30a9\u30f3\u30c8\u8a2d\u5b9a<\/span>\r\n<\/pre>\n<p>gem\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<br \/>\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e2d\u306b\u300croot\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306a\u300d\u3068\u8b66\u544a\u304c\u8868\u793a\u3055\u308c\u308b\u304c\u3001\u5f8c\u3067 chown\u3067 apache\u306b\u30e6\u30fc\u30b6\u30fc\u5909\u66f4\u3059\u308b\u306e\u3067\u7121\u8996\u3059\u308b\u3002<\/p>\n<pre>\r\n# cd \/var\/lib\/redmine_aa\r\n# bundle install --without development test --path vendor\/bundle\r\n<\/pre>\n<h3 class=\"my_h\">(12) Redmine\u306e\u521d\u671f\u8a2d\u5b9a\u3092\u3059\u308b\u3002<\/h3>\n<p>\u30bb\u30c3\u30b7\u30e7\u30f3\u6539\u3056\u3093\u9632\u6b62\u7528\u79d8\u5bc6\u9375\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<pre>\r\n# bundle exec rake generate_secret_token\r\n<\/pre>\n<p>Redmine\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<pre>\r\n# RAILS_ENV=production bundle exec rake db:migrate\r\n<\/pre>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u30c7\u30fc\u30bf\u3092\u767b\u9332\u3059\u308b\u3002<br \/>\n\u203b\u5fc5\u9808\u3067\u306f\u306a\u3044\u3002\u30c8\u30e9\u30c3\u30ab\u30fc\u3001\u30b9\u30c6\u30fc\u30bf\u30b9\u306a\u3069\u3001\u5f8c\u3067\u30bc\u30ed\u304b\u3089\u81ea\u5206\u3067\u767b\u9332\u3057\u3066\u3082\u3088\u3044\u3002<\/p>\n<pre>\r\n# RAILS_ENV=production REDMINE_LANG=ja bundle exec rake redmine:load_default_data\r\n<\/pre>\n<h3 class=\"my_h\">(13) Passenger\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/h3>\n<p>Apache\u4e0a\u3067 Redmine\u306a\u3069\u306e Rails\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u4f7f\u308f\u308c\u308b Phusion Passenger\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n<pre>\r\n# gem install passenger\r\n<\/pre>\n<p>Apache\u7528\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n<pre>\r\n# passenger-install-apache2-module --auto --languages ruby\r\n<\/pre>\n<p>Apache\u7528\u8a2d\u5b9a\u5185\u5bb9\u3092\u8868\u793a\u3001\u5f8c\u3067\u4f7f\u3046\u306e\u3067\u30b3\u30d4\u30fc\u3057\u3066\u304a\u304f\u3002<\/p>\n<pre>\r\n# passenger-install-apache2-module --snippet\r\nLoadModule passenger_module \/usr\/local\/lib\/ruby\/gems\/2.6.0\/gems\/passenger-6.0.2\/buildout\/apache2\/mod_passenger.so\r\n<IfModule mod_passenger.c>\r\n  PassengerRoot \/usr\/local\/lib\/ruby\/gems\/2.6.0\/gems\/passenger-6.0.2\r\n  PassengerDefaultRuby \/usr\/local\/bin\/ruby\r\n<\/IfModule>\r\n<\/pre>\n<h3 class=\"my_h\">(14) Apache\u306e\u8a2d\u5b9a\u3092\u3059\u308b\u3002<\/h3>\n<p>\/etc\/httpd\/conf.d\/redmine.conf \u3092\u7de8\u96c6\u3059\u308b\u3002<\/p>\n<pre>\r\n# vi \/etc\/httpd\/conf.d\/redmine.conf\r\n<\/pre>\n<p>\u4ee5\u4e0b\u3092\u8a18\u8ff0\u3059\u308b\u3002<\/p>\n<pre>\r\n<Directory \"\/var\/lib\/redmine_nv\/public\">\r\n  AllowOverride All\r\n  Require all granted\r\n<\/Directory>\r\n\r\n# \u4ee5\u4e0b\u306f\u4e0a\u8a18(13)\u304b\u3089\u30b3\u30d4\u30fc\u3059\u308b\u3002\r\nLoadModule passenger_module \/usr\/local\/lib\/ruby\/gems\/2.6.0\/gems\/passenger-6.0.2\/buildout\/apache2\/mod_passenger.so\r\n<IfModule mod_passenger.c>\r\n  PassengerRoot \/usr\/local\/lib\/ruby\/gems\/2.6.0\/gems\/passenger-6.0.2\r\n  PassengerDefaultRuby \/usr\/local\/bin\/ruby\r\n<\/IfModule>\r\n\r\nRackBaseURI \/redmine_aa\r\n<\/pre>\n<p>\u30de\u30b7\u30f3\u8d77\u52d5\u6642\u306b Apache\u3092\u81ea\u52d5\u8d77\u52d5\u3055\u305b\u308b\u3002<\/p>\n<pre>\r\nsystemctl start httpd.service\r\nsystemctl enable httpd.service\r\n<\/pre>\n<p>Redmine\u306e\u30d5\u30a1\u30a4\u30eb\u7fa4\u306e\u30aa\u30fc\u30ca\u30fc\u3092\u30e6\u30fc\u30b6\u30fc apache \u306b\u5909\u66f4\u3059\u308b\u3002<\/p>\n<pre>\r\n# chown -R apache:apache \/var\/lib\/redmine_aa\r\n<\/pre>\n<p>\/var\/www\/html \u304b\u3089 Redmine\u3078\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u8cbc\u308b\u3002<\/p>\n<pre>\r\n# cd \/var\/www\/html\r\n# ln -s \/var\/lib\/redmine_aa\/public .\/redmine_aa\r\n<\/pre>\n<p>Apache\u3092\u518d\u8d77\u52d5\u3059\u308b\u3002<\/p>\n<pre>\r\n# service httpd configtest  <span class=\"my_fc_green\"># \u2190\u30b3\u30f3\u30d5\u30a3\u30b0\u30d5\u30a1\u30a4\u30eb\u306e\u8a2d\u5b9a\u306b\u30df\u30b9\u304c\u7121\u3044\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3002<\/span>\r\n# systemctl restart httpd.service\r\n# systemctl status httpd.service\r\n<\/pre>\n<h3 class=\"my_h\">(15) WEB\u30d6\u30e9\u30a6\u30b6\u3067 Redmine\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u308b\u3002<\/h3>\n<p>\u4eee\u306b\u8a2d\u7f6e\u5834\u6240\u304c <span class=\"my_fc_blue\">http:\/\/www.example.com\/redmine_aa<\/span> \u3068\u3057\u3066\u958b\u3044\u3066\u307f\u308b\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/linux\/wp-content\/uploads\/2019\/07\/004.png\" alt=\"\" \/><br \/>\n<span class=\"my_fc_deeppink my_fs_big3 my_fw_bold\">\u3067\u304d\u305f\uff01<\/span><\/p>\n<h2 class=\"my_h\">3) \u5fdc\u7528<\/h3>\n<h3 class=\"my_h\">(1) \u975e\u30ed\u30b0\u30a4\u30f3\u72b6\u614b\u3067\u306f\u95b2\u89a7\u7981\u6b62\u306b\u3059\u308b\u3002<\/h3>\n<p>\u307e\u305a\u306f admin \u3067\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3002<br \/>\nRedmine\u3067\u306f\u3001\u30e6\u30fc\u30b6\u30fc admin \u306e\u521d\u671f\u30d1\u30b9\u30ef\u30fc\u30c9\u306f admin \u3060\u3002<br \/>\n\u30ed\u30b0\u30a4\u30f3\u76f4\u5f8c\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u5909\u66f4\u3092\u6c42\u3081\u3089\u308c\u308b\u306e\u3067\u3001\u4efb\u610f\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3059\u308b\u3002<\/p>\n<p>\u300c\u7ba1\u7406\u300d\uff0d\u300c\u8a2d\u5b9a\u300d\uff0d\u300c\u8a8d\u8a3c\u300d\u3092\u958b\u304d\u3001\u300c\u8a8d\u8a3c\u304c\u5fc5\u8981\u300d\u9805\u76ee\u3067\u300c\u306f\u3044\u300d\u3092\u9078\u629e\u3059\u308b\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/linux\/wp-content\/uploads\/2019\/07\/0005.png\" alt=\"\" \/> \u2192 <img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/linux\/wp-content\/uploads\/2019\/07\/0006.png\" alt=\"\" \/> \u2192 <img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/linux\/wp-content\/uploads\/2019\/07\/0007.png\" alt=\"\" \/><\/p>\n<p>\u3059\u308b\u3068&#8230;<br \/>\n\u975e\u30ed\u30b0\u30a4\u30f3\u72b6\u614b\u3067\u306f\u3001\u5fc5\u305a\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/linux\/wp-content\/uploads\/2019\/07\/0010.png\" alt=\"\" \/><br \/>\n<span class=\"my_fc_crimson\">\u3053\u306e\u8a2d\u5b9a\u3092\u3057\u306a\u3044\u3068 URL\u3055\u3048\u77e5\u3063\u3066\u3044\u308c\u3070 Read only\u3067\u95b2\u89a7\u3067\u304d\u3066\u3057\u307e\u3046\u3002<\/span><\/p>\n<h3 class=\"my_h\">(2) Basic\u8a8d\u8a3c\u3092\u4ed8\u3051\u3066\u5b89\u5168\u6027\u3092\u9ad8\u3081\u308b\u3002<\/h3>\n<p><span class=\"my_fc_crimson my_fs_big2 my_fw_bold\">\u3048\u3063\uff01Basic\u8a8d\u8a3c\u306a\u3093\u3066\u5371\u306a\u3044\u3093\u3058\u3083\u306a\u3044\uff1f<\/span><br \/>\n\u3063\u3066\u601d\u308f\u308c\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u304c\u305d\u308c\u306f\u6614\u306e\u8a71\u3002<br \/>\nSSL\u3068\u7d44\u307f\u5408\u308f\u305b\u308c\u3070 ID, PW\u6f0f\u6d29\u306e\u30ea\u30b9\u30af\u304c\u683c\u6bb5\u306b\u6e1b\u308b\u306e\u3067\u4f7f\u3063\u305f\u65b9\u304c\u826f\u3044\u3002<\/p>\n<p>Apache\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b\u3002<\/p>\n<pre>\r\n# vi \/etc\/httpd\/conf.d\/redmine.conf\r\n<\/pre>\n<p>\u4ee5\u4e0b\u3092\u8ffd\u8a18\u3059\u308b\u3002<\/p>\n<pre>\r\n&lt;Location \/redmine_nv\/&gt;\r\n  &lt;IfModule mod_rewrite.c&gt;\r\n    RewriteEngine On\r\n    RewriteCond %{HTTPS} off\r\n    RewriteRule \/.*$ https:\/\/%{HTTP_HOST}%{REQUEST_URI} [R,L]\r\n  &lt;\/IfModule&gt;\r\n\r\n  AuthType Basic\r\n  AuthName \"xxxxx\"\r\n  AuthUserFile \/var\/lib\/redmine_aa\/public\/.htpasswd\r\n  Require valid-user\r\n\r\n  &lt;LimitExcept GET PROPFIND OPTIONS REPORT&gt;\r\n    SSLRequireSSL\r\n  &lt;\/LimitExcept&gt;\r\n&lt;\/Location&gt;\r\n<\/pre>\n<p>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u4e2d\u306b\u66f8\u3044\u305f\u30d1\u30b9\u306b\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u30d5\u30a1\u30a4\u30eb\u3092\u8a2d\u7f6e\u3059\u308b\u3002<br \/>\n\u8a73\u7d30\u306f <a href=\"https:\/\/www.dogrow.net\/linux\/blog49\/\" target=\"_blank\" rel=\"noopener noreferrer\">(49) htpasswd\u306e\u4f5c\u308a\u65b9<\/a> \u3092\u53c2\u7167\u3055\u308c\u305f\u3044\u3002<\/p>\n<pre>\r\n# FPATH=\/var\/lib\/redmine_aa\/public\/.htpasswd\r\n# USER=hoge\r\n# PASS=hogeA\r\n# htpasswd -cb $FPATH $USER $PASS\r\n<\/pre>\n<p>Apache\u3092\u518d\u8d77\u52d5\u3059\u308b\u3002<\/p>\n<pre>\r\n# service httpd configtest  <span class=\"my_fc_green\"># \u2190\u30b3\u30f3\u30d5\u30a3\u30b0\u30d5\u30a1\u30a4\u30eb\u306e\u8a2d\u5b9a\u306b\u30df\u30b9\u304c\u7121\u3044\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3002<\/span>\r\n# systemctl restart httpd.service\r\n# systemctl status httpd.service\r\n<\/pre>\n<p>\u518d\u5ea6 Redmine\u3092\u958b\u3044\u3066\u898b\u308b\u3068&#8230;<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/linux\/wp-content\/uploads\/2019\/07\/011.png\" alt=\"\" \/><br \/>\n<span class=\"my_fc_deeppink my_fs_big2 my_fw_bold\">\u8a8d\u8a3c\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u305f\uff01<\/span><\/p>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001<br \/>\n\u7b2c\uff11\u306e\u58c1\uff1a Redmine\u306e\u5b58\u5728\u81ea\u4f53\u3092\u96a0\u3059 Basic\u8a8d\u8a3c<br \/>\n\u7b2c\uff12\u306e\u58c1\uff1a Redmine\u306e\u30e6\u30fc\u30b6\u30fc\u8a8d\u8a3c<br \/>\n\u306e\u4e8c\u91cd\u306e\u9632\u5fa1\u58c1\u304c\u3067\u304d\u305f\u3002<\/p>\n<h3 class=\"my_h\">(3) Redmine\u3078\u306e\u6295\u7a3f\u6642\u306b\u30e1\u30fc\u30eb\u9001\u4fe1\u3059\u308b\u3002<\/h3>\n<p>\u5f8c\u65e5\u8ffd\u8a18\u3059\u308b\u3002<\/p>\n<h3 class=\"my_h\">(4) Redmine\u3078\u306e\u30e1\u30fc\u30eb\u9001\u4fe1\u306b\u3088\u308b\u6295\u7a3f\u3092\u5b9f\u73fe\u3059\u308b\u3002<\/h3>\n<p>\u5f8c\u65e5\u8ffd\u8a18\u3059\u308b\u3002<\/p>\n<h3 class=\"my_h\">(5) Subversion\u3068\u9023\u643a\u3059\u308b\u3002<\/h3>\n<p>\u5f8c\u65e5\u8ffd\u8a18\u3059\u308b\u3002<\/p>\n<h1 class=\"my_h\">4. \u6240\u611f<\/h1>\n<p>\u30fb\u3084\u3063\u3071\u308a Redmine\u306f\u4fbf\u5229\u3060\u3002<br \/>\n\u30fb\u5e74\u984d1\u4e07\u5186\u306e SAKURA VPS\u306b\u8a2d\u7f6e\u3057\u3066\u3044\u308b\u304c\u3001Redmine\u306e\u52d5\u4f5c\u304c\u91cd\u305f\u3044&#8230;<br \/>\n\u3000\u2192 \u5feb\u9069\u306b\u4f7f\u3046\u305f\u3081\u306b\u306f\u30ea\u30bd\u30fc\u30b9\u5272\u308a\u5f53\u3066\u306e\u5927\u304d\u3044\u9ad8\u984d\u306a\u30d7\u30e9\u30f3\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<br \/>\n\u3000\u203b\u81ea\u5b85N\/W\u4e0a\u3067 Intel NUC (Pentium 4core)\u306b\u8a2d\u7f6e\u3057\u3066\u3044\u308b Redmine\u306f\u5feb\u9069\u3060\u3002<\/p>\n<hr class=\"my_hr_bottom\">\n","protected":false},"excerpt":{"rendered":"<p>1. \u3084\u308a\u305f\u3044\u3053\u3068 1) SAKURA VPS \u306b CentOS7 \u3092\u5165\u308c\u308b\u3002 2) \u305d\u306e CentOS7 \u306b Redmine 4.0.4 \u3092\u5165\u308c\u308b\u3002 2. \u3084\u3063\u3066\u307f\u305f\uff01 2.1 SAKURA\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u306b Cent\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.dogrow.net\/linux\/blog115\/\">\u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[102],"tags":[],"class_list":["post-2320","post","type-post","status-publish","format-standard","hentry","category-redmine"],"views":5446,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts\/2320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/comments?post=2320"}],"version-history":[{"count":56,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts\/2320\/revisions"}],"predecessor-version":[{"id":3394,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts\/2320\/revisions\/3394"}],"wp:attachment":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/media?parent=2320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/categories?post=2320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/tags?post=2320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}