{"id":203,"date":"2021-08-26T16:24:22","date_gmt":"2021-08-26T07:24:22","guid":{"rendered":"https:\/\/auto.meto4d.pgw.jp\/blog\/?p=203"},"modified":"2021-12-21T20:20:01","modified_gmt":"2021-12-21T11:20:01","slug":"%e3%83%96%e3%83%ad%e3%82%b0%e3%81%ae%e7%94%bb%e5%83%8f%e3%81%8c%e6%b6%88%e3%81%88%e3%81%be%e3%81%97%e3%81%9f","status":"publish","type":"post","link":"https:\/\/auto.meto4d.pgw.jp\/blog\/?p=203","title":{"rendered":"\u30d6\u30ed\u30b0\u306e\u753b\u50cf\u304c\u6d88\u3048\u307e\u3057\u305f"},"content":{"rendered":"\n<p>\u306f\uff5e\uff08\u00b0\uff5e\u00b0\uff09\uff1f\uff1f\uff1f\uff1f\uff1f\u30ad\u30ec\u305d\u30fc\u30fcwwwwwwwwwwww<\/p>\n\n\n\n<p>SynologyNAS\u4e0a\u3067\u52d5\u4f5c\u3055\u305b\u3066\u3044\u308b\u30d6\u30ed\u30b0\u8a18\u4e8b\u304c\u3001SynologyNAS\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306b\u3088\u308a\u753b\u50cf\u304c\u6d88\u3048\u307e\u3057\u305f\u3002<br>\u5831\u544a\uff0b\u5bfe\u51e6\u306a\u3069\u306a\u3069\u306e\u5099\u5fd8\u9332<\/p>\n\n\n\n<!--more-->\n\n\n\n<p><\/p>\n\n\n\n<p>\u203b\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001\u30d6\u30ed\u30b0\u4f5c\u6210\u306b\u6709\u540d\u306aWxxxPxxxx\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u304c\u3001\u691c\u7d22\u907f\u3051\u306bWP\u3068\u3044\u3046\u7565\u79f0\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u9069\u5b9c\u8aad\u307f\u66ff\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h2>\u3053\u3068\u306e\u767a\u7aef\u306f\u3001SynologyNAS\u9bd6\uff08DSM\uff09\u306e\u30e1\u30b8\u30e3\u30fc\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/h2>\n\n\n\n<p>Synology\u306eOS\u3001DSM\u304c6\u7cfb\u304b\u30897\u7cfb\u306b\u30e1\u30b8\u30e3\u30fc\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u304c\u3042\u308a\u307e\u3057\u305f\u3002<br>6\u7cfb\u306f\u4f7f\u3048\u306a\u304f\u306a\u308b\u3088\u3063\u3066\u3053\u3068\u3067\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u307e\u3057\u305f\u3002<br>\u30d6\u30ed\u30b0\u30c7\u30fc\u30bf\u306e\u4e00\u90e8\u304c\u6d88\u3048\u307e\u3057\u305f\u3002<br>\u3042\u306a\u305f\u3055\u3042\u2026<\/p>\n\n\n\n<p>Synology\u306f\u64ec\u4f3c\u7684\u306a\u30b3\u30f3\u30c6\u30ca\u3068\u3044\u3046\u304b\u3001puppet\u3068\u3044\u3046\u304b\u3001\u306a\u3093\u3068\u3044\u3046\u304b\u3001\u76f4\u63a5\u3044\u3058\u3089\u308c\u305f\u8a2d\u5b9a\u306f\u57fa\u672c\u7684\u306b\u4fdd\u5b58\u3055\u308c\u306a\u3044\u3057\u306a\u3044\u3001\u96db\u5f62\u3068\u305d\u308c\u306b\u5bfe\u3059\u308b\u30de\u30cd\u30fc\u30b8\u30c9\u306a\u5909\u66f4\u70b9\u306e\u7ba1\u7406\u3060\u3051\u3092\u884c\u3063\u3066\u3044\u308b<br>Synology\u306eWebUI\u306e\u3088\u3046\u306a\u9593\u63a5\u7684\u306aUI\u3092\u901a\u3057\u3066\u306e\u8a2d\u5b9a\u5909\u66f4\u306f\u7dad\u6301\u3055\u308c\u308b\u304c\u3001<br>ssh\u3057\u3066\u3001vim hoge.conf\u3057\u3066\u3001\u3063\u3066\u3084\u3063\u305f\u3082\u306e\u306f\u57fa\u672c\u6d88\u3048\u308b<\/p>\n\n\n\n<p>\u6700\u305f\u308b\u4f8b\u306fnginx.conf<br>WebStation\u306b\u3066nginx.conf\u5468\u308a\u3092\u3059\u3079\u3066\u7ba1\u7406\u3055\u308c\u3066\u304a\u308a\u3001\u7d50\u69cb\u3084\u3084\u3053\u3057\u3044\u4f5c\u308a\u306b\u306a\u3063\u3066\u3044\u308b<br>\u3044\u3084\u3001\u7d10\u89e3\u3051\u3070\u3001Let&#8217;s Encrypt\u7528\u306e\u9375\u3067\u3042\u3063\u305f\u308a\u3001Synology\u306eWebUI\u81ea\u4f53\u3092nginx\u3067\u53d7\u3051\u53d6\u3063\u3066\u305f\u308a\u3001\u305d\u306e\u4e0a\u3067WebStation\u3088\u3046\u306blisten\u3057\u3066\u308b\u6587\u304c\u3042\u3063\u3066\u3001home\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306ewww\u30d5\u30a9\u30eb\u30c0\u3092WebStation\u3067\u898b\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u305f\u308a\u4e91\u3005\u30ab\u30f3\u30cc\u30f3<br>\u3084\u3063\u3066\u308b\u3053\u3068\u306f\u5358\u7d14<\/p>\n\n\n\n<p>\u524d\u306b\u5c11\u3057\u8a71\u3057\u305f\u304c\u3001(<a href=\"https:\/\/auto.meto4d.pgw.jp\/blog\/?p=52\">Let\u2019s Encrypt \u3067SSL\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\u8a3c\u660e\u66f8\u3092\u5c0e\u5165\u3059\u308b<\/a>)<br>\u30db\u30b9\u30c8\u540d\u3067\u5206\u3051\u3066\u3001\u3042\u308bWeb\u30a2\u30af\u30bb\u30b9\u306f\u5168\u90e8Synology\u9bd6\u3067\u53d7\u3051\u53d6\u308d\u3046\u3002\u3058\u3083\u3042allow,deny\u306a\u3069\u306e\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u304c\u5fc5\u8981\u3060\u306a\u3001<br>proxy_pass\u3084\u3089\u3067\u89aa\u5b50\u95a2\u4fc2\u3092\u7c21\u5358\u306b\u3057\u3088\u3046\u3001<br>WebStation\u306e\u8a2d\u5b9a\u753b\u9762\u304b\u3089\u3067\u306f\u305d\u3053\u307e\u3067nginx\u306e\u8a2d\u5b9a\u304c\u3044\u3058\u308c\u306a\u3044\u3088\u3046\u3060\u305e\u3063\u3068\u3001<br>\u3058\u3083\u3042nginx.conf\u3092ssh\u3067\u5165\u3063\u3066\u7de8\u96c6\u8ffd\u8a18\u3057\u3066\u3084\u308d\u3046\u3063\u3068\u3001<\/p>\n\n\n\n<p>\u3053\u3046\u3084\u3063\u3066\u305b\u3063\u304b\u304f\u7de8\u96c6\u3057\u305fconf\u30d5\u30a1\u30a4\u30eb\u3001\u5bb9\u8d66\u306a\u304f\u6d88\u3048\u308b<br>\u30b5\u30fc\u30d0\u306e\u518d\u8d77\u52d5\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u3082\u3001SynologyNAS\u306eWebUI\u304b\u3089\u3061\u3087\u3063\u3068\u8a2d\u5b9a\u3092\u3044\u3058\u3063\u305f\u3060\u3051\u3067\u3082\u2026\u2026<br>\u8abf\u3079\u305f\u3060\u3051\u3067\u3082\u3001\u7d50\u69cb\u306a\u4e0d\u6e80\uff1f\u3084\u3089\u3001\u7279\u6709\u306e\u30c6\u30af\u306e\u7d39\u4ecb\u304c\u51fa\u3066\u3044\u308b\u3002\u4f7f\u3044\u3084\u3059\u3044\u3093\u3060\u304c\u66f2\u8005\u3060\u3002\u60aa\u304f\u306a\u3044\u3002<\/p>\n\n\n\n<p>\u3057\u304b\u3057\u3001\u4eca\u306f\u30af\u30bd\u9762\u5012\u306a\u3084\u3064\u3060\u306a\u3042<\/p>\n\n\n\n<p>WebStation\u81ea\u4f53\u306e\u8a2d\u5b9a\u304c\u8aad\u307f\u8fbc\u307e\u308c\u3001nginx.conf\u81ea\u4f53\u304c\u3082\u3068\u306b\u623b\u3063\u3066\u3057\u307e\u3046<br>\u3044\u3084\u3001WebStation\u304c\u4fdd\u6301\u3057\u3066\u308b\u8a2d\u5b9a\u81ea\u4f53\u3092\u66f8\u304d\u63db\u3048\u3066\u3084\u308c\u3070\u3044\u3044\u3058\u3083\u3093\uff57\u3068\u3044\u3046\u8003\u3048\u65b9\u3082\u3042\u308b\u304c\u3001\u305b\u3063\u304b\u304fSynology\u69d8\u304c\u30de\u30cd\u30fc\u30b8\u30c9\u3067\u3084\u3063\u3066\u304f\u308c\u3066\u308b\u3093\u3060\u305c\uff1f\u305d\u308c\u306f\u5acc\u3060<\/p>\n\n\n\n<p>\u9591\u8a71\u4f11\u984c<\/p>\n\n\n\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\uff08\uff1f\uff09NAS\u9bd6\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u304b\u3051\u307e\u3057\u305f<br>DSM\u306e\u30e1\u30b8\u30e3\u30fc\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u5408\u308f\u305b\u3066\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u985e\u3082\u3044\u304f\u3064\u304b\u304c\u66f4\u65b0\u3055\u308c\u307e\u3057\u305f\u3002<br>WP\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u3044\u3046\u6319\u52d5\u3068\u306a\u308a\u307e\u3057\u305f\u3002<br>WP\u306e\u8a2d\u5b9a\u304c\u4e00\u90e8\u30ea\u30bb\u30c3\u30c8\u3068\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3053\u3053\u307e\u3067\u306f\u3044\u3044<br>WP\u306e\u8a2d\u5b9a\u304c\u672c\u5f53\u306b\u4e00\u90e8\u3060\u3051\u5f15\u304d\u7d99\u304c\u308c\u3001WP\u306e\u521d\u671f\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306f\u7d42\u308f\u3063\u3066\u3044\u308b\u3053\u3068\u306b\u306a\u3063\u3066\u3044\u308b\u304c\u3001SQL\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u985e\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u3001\u3053\u308c\u306b\u3088\u308aSQL\u306b\u3064\u306a\u304c\u3089\u306a\u3044\u3068\u3044\u3046\u30a8\u30e9\u30fc\u3092\u5410\u3044\u3066\u3044\u305f\u3002<br>\u3053\u308c\u306b\u3064\u3044\u3066\u306f\u5f8c\u308d\u3067\u8a9e\u308d\u3046<\/p>\n\n\n\n<h3>\u30a2\u30d7\u30c7\u306b\u3088\u308a\u753b\u50cf\u304c\u6d88\u3048\u305f\u539f\u56e0<\/h3>\n\n\n\n<p>Synology\u306f\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u3072\u306a\u5f62\u3060\u3051\u7ba1\u7406\u3057\u3001\u500b\u3005\u306e\u8a2d\u5b9a\u306f\u3042\u307e\u308a\u91cd\u8981\u8996\u3057\u3066\u3044\u306a\u3044<\/p>\n\n\n\n<p>\u3064\u307e\u308a\u3001<strong>\u300cWP\u4e0a\u3067\u8a2d\u5b9a\u3057\u305f\u5024\u300d<\/strong>\u3084\u3001<strong>\u300cWP\u306b\u76f4\u63a5\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u753b\u50cf\u300d<\/strong>\u306f\u3001<br>WP\u304c\u72ec\u81ea\u3067\u7ba1\u7406\u3057\u3066\u3044\u308b\uff11\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u5b58\u5728\u3059\u308b\u305f\u3081\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u5074\u306f\u8a8d\u8b58\u3057\u306a\u3044\u306e\u3060<\/p>\n\n\n\n<p>\u305d\u306e\u305f\u3081\u3001DSM\u81ea\u4f53\u306e\u30a2\u30d7\u30c7\u306b\u3088\u308aWP\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<br>\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u304c\u8a8d\u8b58\u3057\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u307f\u79fb\u884c\u3055\u308c\u3001\u898b\u4e8b\u3001\u76f4\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u753b\u50cf\u304c\u6d88\u3048\u3066\u3057\u307e\u3063\u305f\u3068\u3055<\/p>\n\n\n\n<p>\u3044\u3084\u3001\u300cWP\u4e0a\u3067\u8a2d\u5b9a\u3057\u305f\u5024\uff08SQL\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3068\u304b\uff09\u300d\u3082\u305d\u3046\u3060\u3051\u3069\u3001\u305d\u3046\u3044\u3046\u306e\u3082\u7ba1\u7406\u3057\u3066\u304f\u308c\u308b\u3063\u3066\u3044\u3046\u306e\u304c\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u3058\u3083\u306a\u3044\u306e\u304b\u3088<br>\u516c\u5f0f\u63d0\u4f9b\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306a\u306e\u306b<\/p>\n\n\n\n<p>\u306a\u3093\u306e\u305f\u3081\u306b\u4ed6\u306e\u9bd6\u306bWP\u3092\u3001\u305d\u308c\u3053\u305d\u30b3\u30f3\u30c6\u30ca\u3068\u304b\u4f7f\u308f\u305a\u306b\u3001<br>NAS\u4e0a\u306bWP\u3092\u7acb\u3066\u3066\u5229\u7528\u3057\u3066\u3044\u308b\u306e\u304b\u304c\u308f\u304b\u3089\u306a\u304f\u306a\u3063\u3061\u3083\u3063\u305f<\/p>\n\n\n\n<h3>\u5bfe\u7b56\u3068\u3057\u3066\u5916\u90e8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210<\/h3>\n\n\n\n<p>\u6ce3\u3044\u3066\u3082\u623b\u3089\u306a\u3044\u306e\u3067\u3001\u5bfe\u7b56<br>2(3)\u901a\u308a\u306e\u65b9\u6cd5\u304c\u3042\u308b\u304b\u306a\u3068<\/p>\n\n\n\n<ul><li>WP\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u5909\u3048\u3066\u3057\u307e\u3044\u3001WP\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u96db\u5f62\u3078\u306e\u4f9d\u5b58\u5ea6\u3092\u4e0b\u3052\u308b<br>\u5177\u4f53\u7684\u306b\u8a00\u3046\u3068\u3001\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u8cbc\u3063\u3066\u3001\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u3092\u5916\u306b\u51fa\u3059<\/li><li>\u753b\u50cf\u4fdd\u5b58\u5148\u3092\u5909\u3048\u3066\u3001WP\u7ba1\u7406\u3092\u3084\u3081\u308b<ul><li>CDN\u307f\u305f\u3044\u306a\u7ba1\u7406\u65b9\u6cd5\u306b\u3059\u308b\uff08\u30c7\u30fc\u30bf\u914d\u4fe1\u3059\u308b\u9bd6\u304cNAS\u3068\u306f\u5225\u3068\u3044\u3046\u610f\u5473\uff09<\/li><li>NAS\u306e\u5916\u90e8\u516c\u958b\u6a5f\u80fd\u3092\u5229\u7528\u3059\u308b<\/li><\/ul><\/li><\/ul>\n\n\n\n<h4>WP\u306b\u4ed6\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u8cbc\u3063\u3066\u3001\u305d\u3053\u3078\u76f4\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b<\/h4>\n\n\n\n<p>\u6700\u521d\u306f\u3053\u308c\u304c\u4e00\u756a\u624b\u3063\u53d6\u308a\u65e9\u3044\u4e0a\u306b\u3001WP\u306e\u76f4\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3092\u6c17\u306b\u305b\u305a\u4f7f\u3048\u308b<br>\u305d\u3046\u601d\u3063\u305f\u306e\u3067\u3001\u3084\u3063\u305f<br>\u7d50\u8ad6\u3068\u3057\u3066\u306fACL\u306e\u624b\u9593\u306e\u554f\u984c\u3067\u3067\u304d\u306a\u304b\u3063\u305f<\/p>\n\n\n\n<p>\u203b\u691c\u7d22\u907f\u3051\u306bWP\u3068\u3044\u3046\u7565\u8a9e\u306b\u3057\u3066\u307e\u3059<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">WP\u306e\u30d5\u30a9\u30eb\u30c0\u3078\n$ cd \/var\/service\/web_packages\/WP\/\n$ pushd wp-content\/uploads\n$ ls\n2021   wp-statistics\n\u2192\u3053\u3053\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3055\u308c\u305f\u753b\u50cf\u3084\u3089\u304c\u8a70\u3081\u8fbc\u307e\u308c\u3066\u3044\u308b\n\u2192\u4f8b\uff1a2021\/08\/{\u65e5\u4ed8}-{\u753b\u50cf\u30b5\u30a4\u30ba}.jpg \u3068\u304b\u3068\u304b\n$ mkdir web\n$ ls\n2021   web   wp-statistics\n$ pushd \/\nHDD1\u306b\u3042\u308b\u5171\u6709\u30d5\u30a9\u30eb\u30c0\u300cShare\u300d\u306b\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u8cbc\u308b\n$ cd \/volume1\/Share\n$ ln -s \/var\/service\/web_packages\/WP\/wp-content\/uploads\/web web\n$ ls -l\nlrwxr-xr-x 1 root root 9 Aug 26 12:00 web -&gt; \/var\/service\/web_packages\/WP\/wp-content\/uploads\/web<\/pre><\/div>\n\n\n\n<p>\u3053\u3053\u307e\u3067\u306f\u81f3\u3063\u3066\u3044\u3064\u3082\u3069\u304a\u308a\u306e\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u4f5c\u6210\u624b\u9806<br>\u3053\u306e\u5f8c\u304cSynology\u7279\u6709\u306e\u3082\u306e\u3067\u3001ACL\u3092\u3044\u3058\u3089\u306a\u3044\u3068\u901a\u5e38\u306e\u5171\u6709\u30d5\u30a9\u30eb\u30c0\u4e0a\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u304b\u3063\u305f<br>1\u6642\u9593\u3044\u3058\u3063\u3066\u3060\u3081\u3060\u3063\u305f\u306e\u3067\u8ae6\u3081\u305f<br>\u3061\u306a\u307f\u306b\u3001Synology\u306eACL\u306fsynoacltool\u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u3092\u5229\u7528\u3059\u308b<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">$ type synoacltool\nsynoacltool is hashed (\/usr\/syno\/bin\/synoacltool)\n$ synoacltool -get web\n(synoacltool.c, 489)It's Linux mode\n'\u2192Linux\u306e\u6a29\u9650\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u4ed8\u4e0e\u3057\u3066\u3044\u304f\u5fc5\u8981\u304c\u3042\u308b\u3063\u307d\u3044\n$ synoacltool -set-owner web ruth\n\u4ed6\u306e\u5171\u6709\u3067\u304d\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u3092synoacltool -get\u3067\u53d6\u5f97\u3057\u3066\u3001\u5fc5\u8981\u305d\u3046\u306a\u3082\u306e\u3092\u3069\u3093\u3069\u3093\u8ffd\u52a0\u3057\u3066\u3044\u304f\n$ synoacltool -add web group:administrators:allow:rwxpdDaARWc--:fd--\n<\/pre><\/div>\n\n\n\n<p>\u3068\u3044\u3046\u611f\u3058\u3067\u3001ACL\u3092\u8a2d\u5b9a<\/p>\n\n\n\n<p>\u304c\u3001Windows\u306a\u3069\u3001\u4ed6\u306e\u30de\u30b7\u30f3\u304b\u3089\u3053\u306e\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u306f\u5229\u7528\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002<br>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u3042\u308b\u3068\u3044\u3046\u3053\u3068\u306f\u898b\u3048\u308b\u3093\u3060\u304c\u3001\u305d\u308c\u4ee5\u4e0a\u304c\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f<\/p>\n\n\n\n<p>1\u6642\u9593\u8abf\u3079\u3066\u3060\u3081\u3060\u3063\u305f\u3063\u3066\u66f8\u3044\u305f\u6c17\u304c\u3059\u308b\u3051\u3069\u3001\u3082\u3063\u3068\u591a\u3044\u6642\u9593\u3092\u4f7f\u3063\u305f\u3088\u3046\u306a\u6c17\u304c\u3059\u308b<br>Synology\u7279\u6709\u306eACL\u306e\u554f\u984c\u3060\u3063\u305f\u306e\u3067\u3001\u3082\u3063\u3068\u3053\u3060\u308f\u308c\u3070\u3067\u304d\u305f\u304b\u3082\u3057\u308c\u306a\u3044\u3051\u3069\u3001\u8003\u3048\u3046\u308b\u30d5\u30e9\u30b0\u7acb\u3066\u3084\u3001\u8a2d\u5b9a\u3092\u8a66\u3057\u305f\u304c\u3001\u304a\u624b\u4e0a\u3052<br>\u4ed6\u306e\u65b9\u6cd5\u306b\u5207\u308a\u66ff\u3048\u3066\u3044\u304f<br>\u3053\u3046\u306a\u308b\u3068\u3082\u3046Docker\u7ba1\u7406\u3067\u3048\u3048\u3084\u3093\u3063\u3066\u601d\u3046\u601d\u3063\u305f<\/p>\n\n\n\n<h4>\u753b\u50cf\u4fdd\u5b58\u5148\u3092\u5909\u3048\u3066\u3001WP\u7ba1\u7406\u3092\u3084\u3081\u308b<\/h4>\n\n\n\n<p>\u7d50\u5c40\u3053\u3046\u306a\u3063\u305f<\/p>\n\n\n\n<p>CDN\u5f62\u5f0f\uff08NAS\u3068\u306f\u5225\u306e\u5834\u6240\u306b\u30c7\u30fc\u30bf\u304c\u3042\u308b\u3068\u3044\u3046\u610f\u5473\u3067\u8a00\u3063\u3066\u307e\u3059\uff09\u306f\u3084\u308a\u305f\u304f\u306a\u3044<br>\u305f\u3060\u3001\u4e00\u5fdc\u3001GCP\u306ePCA\u3092\u6301\u3063\u3066\u308b\u95a2\u4fc2\u4e0a\u3001\u3053\u308c\u304c\u6700\u3082\u30b3\u30b9\u30d1\u304c\u826f\u3044\u65b9\u6cd5\u3060\u3002\u305d\u308c\u3060\u3051\u306f\u8a00\u3048\u308b<br>\u81ea\u5b85\u9bd6\u30de\u30f3\u3092\u9664\u3044\u3066<\/p>\n\n\n\n<p>WP\u3092RasPi\u3084\u3089Win\u9bd6\u3084\u3089\u3067\u3084\u3089\u305b\u306a\u3044\u7406\u7531\u304c\u3001SQL\u3092\u52d5\u304b\u3059\u30b3\u30b9\u30c8\u3068\u3001\u305d\u306e\u7ba1\u7406\u304c\u3072\u3069\u304f\u5927\u5909\u3060\u304b\u3089\u3060<br>\u521d\u3081\u3066\u521d\u4ee3RasPi\u3092\u624b\u306b\u5165\u308c\u3001\u3053\u308c\u3092\u4f7f\u3063\u3066Web\u9bd6\u3092\u69cb\u7bc9\u3057\u3066\u3044\u305f\u6642\u3001MySQL\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u91cd\u304f\u3001SQL\u4ee5\u5916\u307e\u3068\u3082\u306bRasPi\u304c\u4f7f\u3048\u306a\u3044\u306a\u3093\u3066\u3053\u3068\u304c\u3042\u3063\u305f\u3002<br>\u305d\u308c\u304b\u3089\u3001WP\u3082\u305d\u3046\u3060\u304c\u3001MediaWiki\u3092\u6a19\u7684\u306b\u3057\u305f\u3001Bot\u306b\u3088\u308b\u904e\u5270\u30a2\u30af\u30bb\u30b9\u304c\u3084\u3063\u3066\u304d\u305f\u3002<br>\u305d\u308c\u304cRasPi\u306eSD\u30ab\u30fc\u30c9\u3092\u76f4\u6483<br>\u5927\u5b66\u751f\u304c\u4f7f\u3046\u3088\u3046\u306a\u5b89\u4fa1\u306aSD\u30ab\u30fc\u30c9\u306f\u4e00\u9031\u9593\u306e\u3046\u3061\u306b\u713c\u3051\u7126\u3052\u3066\u3001\u4f7f\u3044\u7269\u306b\u306a\u3089\u306a\u304f\u306a\u3063\u305f<\/p>\n\n\n\n<p>\u305d\u3093\u306a\u7d4c\u9a13\u3082\u3042\u308a\u3001\u300cCPU\u8ca0\u8377\u3092\u5207\u308a\u96e2\u3059\u3053\u3068\u304c\u3067\u304d\u3066\u3001HDD\u3078\u66f8\u304d\u8fbc\u3081\u308b\u3082\u306e\u300d\u305d\u3093\u306a\u8981\u4ef6\u304c\u3067\u304d\u305f\u3002SynologyNAS\u304c\u6700\u9069\u3060\u3063\u305f\u306e\u3060\u3002<br>\u518d\u3073\u50d5\u306e\u5bb6\u306bQuery\u306e\u6a29\u5a01\u304c\u632f\u308b\u308f\u308c\u308b\u3053\u3068\u3068\u306a\u3063\u305f\u306e\u3060<\/p>\n\n\n\n<p>\u9591\u8a71\u4f11\u984c<\/p>\n\n\n\n<p>\u7d50\u5c40\u3001NAS\u4e0a\u306eWebStation\u7ba1\u7406\u306e\u30d5\u30a9\u30eb\u30c0\u306bblog\u7528\u753b\u50cf\u4fdd\u5b58\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u3001LB\u307f\u305f\u3044\u306b\u306a\u3063\u3066\u308b\u89aa\u6a5f\u306enginx\u3078proxy_pass\u3092\u653e\u308a\u8fbc\u3080\u3002<\/p>\n\n\n\n<p>\u305f\u3060\u305d\u308c\u3060\u3051\u2026<\/p>\n\n\n\n<p>\u3061\u306a\u307f\u306b\u3001<br>PhotoStation\u3068\u3044\u3046Synology\u306e\u30de\u30cd\u30fc\u30b8\u30c9\u753b\u50cf\u30d3\u30e5\u30a2\u30fc\u304c\u3042\u3063\u305f\u306f\u305a\u306a\u3093\u3060\u304c\u3001DSM7\u306b\u306a\u3063\u3066\u306a\u304f\u306a\u3063\u305f\u3088\u3046\u3060\u3002<br>FileStation\u3067\u624b\u306b\u5165\u308b\u5171\u6709URL\u306fgofile.me\u7d4c\u7531\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u3001\u76f4\u63a5\u753b\u50cf\u3092\u53d7\u3051\u53d6\u308a\u304c\u884c\u3048\u306a\u3044\uff08\u5171\u6709URL\u3078\u98db\u3093\u3067\u76f4\u63a5\u305d\u3053\u304b\u3089\u898b\u306a\u3044\u3068\u898b\u308c\u306a\u3044\u306e\u3067\u3001image\u30bf\u30b0\u3067\u8868\u793a\u304c\u3067\u304d\u306a\u3044\uff09<\/p>\n\n\n\n<p>\u5d29\u308c\u308b\u3060\u308d\u3046\u3051\u3069\u3001AA\u3067\u8a00\u3046\u3068\u3053\u3093\u306a\u611f\u3058\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f<br>[Nginx@RasPi] &#8212; location \/blog\/ proxy_pass  &#8212;&gt; [WebStation(Nginx)@NAS] package:WP(Apache)\u3078\u306ealias:blog<br>\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u2514&#8211; location \/blog_images\/ proxy_pass  &#8212;&gt; [WebStation(Nginx)@NAS] \/web\/images<br>\u30dd\u30c3\u30d7\u6570\u304c\u591a\u3044\u2026<\/p>\n\n\n\n<p>\u3055\u3042\u3001\u3053\u308c\u3067\u5916\u304b\u3089\u898b\u3048\u308b\u4f4d\u7f6e\u306b\u753b\u50cf\u3092\u7f6e\u3051\u308b\u3088\u3046\u306b\u306a\u3063\u305f<br>\uff08URL\u4f5c\u6210\u3084\u57cb\u3081\u8fbc\u307f\u304c\u975e\u60c5\u306b\u9762\u5012\u304f\u3055\u3044\u306e\u3060\u304c\uff09<br>\u306a\u304f\u306a\u3063\u305f\u753b\u50cf\u3092\u63a2\u3057\u306a\u304c\u3089\u3001\u3082\u3046\u4e00\u5ea6\u53d6\u5f97\u3057\u306a\u304c\u3089\u57cb\u3081\u3066\u56de\u308a\u307e\u3057\u3087\u3046<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2>WP\u306eSQL\u985e\u306e\u8a2d\u5b9a(SynologyNAS\u306b\u304a\u3051\u308bwp-config.php\u306e\u5834\u6240)<\/h2>\n\n\n\n<p>\u6700\u521d\u3001\u3053\u308c\u3067\u7d50\u69cb\u6642\u9593\u3092\u53d6\u3089\u308c\u305f<br>\u7d50\u8ad6\u3068\u3057\u3066\u306f\u3001Synology\u306eWebStation\u3092\u4f7f\u3046\u3088\u3046\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u4ee5\u4e0b\u306e\u4f4d\u7f6e\u306b\u3059\u3079\u3066\u653e\u308a\u8fbc\u307e\u308c\u3066\u3044\u308b<\/p>\n\n\n\n<p>\u203b\u691c\u7d22\u907f\u3051\u306bWP\u3068\u3044\u3046\u7565\u8a9e\u306b\u3057\u3066\u307e\u3059<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">$ ls \/var\/services\/web_packages\/\n@eaDir   phpMyAdmin WP<\/pre><\/div>\n\n\n\n<p>\u306a\u306e\u3067\u3001Synology Package\u3067\u5165\u308c\u305f\u3082\u306e\u306ewp-config.php\u306f\u3053\u3053<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">$ find \/var\/services\/web_packages\/ -name wp-config.php -type f \n\/var\/services\/web_packages\/WP\/wp-config.php<\/pre><\/div>\n\n\n\n<p>\u81ea\u5206\u304c\u3084\u3063\u305f\u3088\u3046\u306a\u3001DSM\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u884c\u3063\u3066\u3001<br><code>&nbsp;error establishing a&nbsp;<strong>database<\/strong>&nbsp;connection<\/code><br>\u3068\u3044\u3046\u30a8\u30e9\u30fc\u6587\u304c\u8868\u793a\u3055\u308c\u3066\u3057\u307e\u3063\u305f\u5834\u5408\u3001WP\u306ewp-config.php\u304c\u304a\u304b\u3057\u304f\u306a\u3063\u3066\u3044\u308b\u3067\u3042\u308d\u3046<br>\u305d\u306e\u305f\u3081\u3001php\u2192MySQL(or MariaDB)\u306e\u8a8d\u8a3c\u306b\u5931\u6557\u3057\u3066\u3044\u308b\u3060\u3051\u306a\u306e\u3060<br>\u843d\u3061\u7740\u3044\u3066\u3001mysql\u30b3\u30de\u30f3\u30c9\u304b\u3089query\u3092\u53e9\u304f\u3068\u3001\u3061\u3083\u3093\u3068DB\u306b\u4fdd\u7ba1\u3055\u308c\u3066\u3044\u305f\u8a18\u4e8b\u306a\u3069\u306e\u30c7\u30fc\u30bf\u306f\u6b8b\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u308b\uff08\u6016\u304f\u306a\u3063\u3066phpMyAdmin\u3067\u3082\u78ba\u8a8d\u3057\u305f\uff09<\/p>\n\n\n\n<p>ssh\u3057\u3066\u3001wp-config.php\u3092\u898b\u3088\u3046<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\uff5e\uff08\u00b0\uff5e\u00b0\uff09\uff1f\uff1f\uff1f\uff1f\uff1f\u30ad\u30ec\u305d\u30fc\u30fcwwwwwwwwwwww SynologyNAS\u4e0a\u3067\u52d5\u4f5c\u3055\u305b\u3066\u3044\u308b\u30d6\u30ed\u30b0\u8a18\u4e8b\u304c\u3001SynologyNAS\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306b\u3088\u308a\u753b\u50cf\u304c\u6d88\u3048\u307e\u3057\u305f\u3002\u5831\u544a\uff0b\u5bfe\u51e6\u306a\u3069\u306a\u3069\u306e\u5099\u5fd8\u9332<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[17,6,21,13,5],"tags":[],"views":1802,"_links":{"self":[{"href":"https:\/\/auto.meto4d.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/203"}],"collection":[{"href":"https:\/\/auto.meto4d.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/auto.meto4d.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/auto.meto4d.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/auto.meto4d.pgw.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=203"}],"version-history":[{"count":10,"href":"https:\/\/auto.meto4d.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/203\/revisions"}],"predecessor-version":[{"id":233,"href":"https:\/\/auto.meto4d.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/203\/revisions\/233"}],"wp:attachment":[{"href":"https:\/\/auto.meto4d.pgw.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/auto.meto4d.pgw.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/auto.meto4d.pgw.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}