{"id":5351,"date":"2016-05-28T15:54:10","date_gmt":"2016-05-28T06:54:10","guid":{"rendered":"https:\/\/polaire.org\/r-top\/2016\/05\/dockerphpfpm.html"},"modified":"2018-01-07T20:59:39","modified_gmt":"2018-01-07T11:59:39","slug":"dockerphpfpm","status":"publish","type":"post","link":"https:\/\/polaire.org\/r-top\/2016\/05\/dockerphpfpm.html","title":{"rendered":"\u5099\u5fd8\u9332\uff1aDocker\u306ePHP\u516c\u5f0f\u306efpm\u30a4\u30e1\u30fc\u30b8\u3067\u3069\u30cf\u30de\u308a\u3057\u305f\u3053\u3068"},"content":{"rendered":"<p>\u3046\u3061\u306e\u4f1a\u793e\u3067\u3072\u3068\u3064\u30b5\u30fc\u30d0\u3092\u7acb\u3066\u3066\u3001WordPress\u306e\u30b5\u30a4\u30c8\u3092\u7acb\u3061\u4e0a\u3052\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002OS\u306fCentOS7\u3001Web\u30b5\u30fc\u30d0\u306fNginx\u3067\u3001php-fpm\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<br \/>\u307e\u3042\u3001\u6628\u4ecaWordPress\u3092\u52d5\u304b\u3059\u3060\u3051\u3067\u3088\u3051\u308c\u3070\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30ac\u30f3\u30ac\u30f3\u30ac\u30f3\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u9069\u5f53\u306b\u8a2d\u5b9a\u3059\u308c\u3070\u30cf\u30a4\u51fa\u6765\u4e0a\u304c\u308a\u3001\u306a\u306e\u3067\u3059\u304c\u3002\u4eca\u56de\u306f\u3061\u3087\u3063\u3068\u91ce\u671b\u3092\u62b1\u3044\u3066\u3001php-fpm\u3092Docker\u3067\u52d5\u304b\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<\/p>\n<p><!--more--><\/p>\n<p>Docker\u3092\u4f7f\u3046\u7406\u7531\u306f\u3001\u8106\u5f31\u6027\u304c\u6b21\u3005\u3068\u767a\u898b\u3055\u308c\u308bPHP\u3092\u624b\u8efd\u306b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u304b\u3063\u305f\u304b\u3089\u3067\u3059\u3002\u30db\u30b9\u30c8\u306b\u30d9\u30bf\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3001\u4ed6\u306e\u30a2\u30d7\u30ea\u30b1\u30fc \u30b7\u30e7\u30f3\u3068\u306e\u4f9d\u5b58\u6027\u304c\u3042\u3063\u305f\u308a\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u304c\u9045\u304b\u3063\u305f\u308a\u3057\u305f\u308a\u3067\u3001\u306a\u304b\u306a\u304b\u304a\u3044\u305d\u308c\u3068\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4e0a\u3052\u308b\u308f\u3051\u306b\u306f\u3044\u304d\u307e\u305b\u3093\u3002\u3067\u3059\u304c\u3001 Docker\u3067\u52d5\u304b\u3057\u3066\u3044\u308c\u3070php-fpm\u306e\u307f\u3092\u72ec\u7acb\u3057\u3066\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3067\u304d\u308b\u306e\u3067\u3001\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3082\u624b\u8efd\u306b\u884c\u306a\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u306f\u3001\u7406\u7531\u306f\u3082 \u3046\u3072\u3068\u3064\u3042\u3063\u3066\u3001WordPress\u3092PHP7\u3067\u52d5\u304b\u3057\u305f\u3089\u3069\u3046\u306a\u308b\u304b\u3001\u3068\u3044\u3046\u306e\u3092\u691c\u8a3c\u3057\u3066\u307f\u305f\u304b\u3063\u305f\u306e\u3067\u3059\u3002WordPress\u516c\u5f0f\u3067\u306fPHP5.6\u4ee5 \u4e0a\u3092\u63a8\u5968\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u624b\u5805\u304f\u884c\u304f\u306a\u30895.6\u53f0\u3067\u52d5\u304b\u3059\u306e\u304c\u307e\u305a\u3088\u304b\u308d\u3046\u3068\u3002\u3067\u3059\u304c\u3001\u5df7\u3067\u306f\u300cPHP7\u3067WordPress\u304c\u901f\u304f\u306a\u3063\u305f\u300d\u3068\u3044\u3046\u60c5\u5831\u304c\u591a \u6570\u898b\u3089\u308c\u308b\u306e\u3067\u3001PHP7\u3067\u3082\u52d5\u304b\u3057\u3066\u307f\u305f\u3044\u3002\u3060\u3063\u305f\u3089\u3001PHP5.6\u306efpm\u3068PHP7\u306efpm\u3092\u7528\u610f\u3057\u3066\u4f7f\u3044\u6bd4\u3079\u3066\u307f\u308c\u3070\u3044\u3044\u3067\u306f\u306a\u3044\u304b\u3001\u3068\u3002\u305d\u3046\u3044 \u3046\u308f\u3051\u3067\u3001\u3075\u305f\u3064\u306ephp-fpm\u3092\u72ec\u7acb\u3057\u3066\u5c0e\u5165\u3059\u308b\u305f\u3081\u306b\u3001Docker\u3067\u52d5\u304b\u3059\u3053\u3068\u306b\u3057\u305f\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>\u3068\u3044\u3063\u305f\u6b21\u7b2c\u3067\u3001Docker Engine\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001PHP\u516c\u5f0f\u306efpm\u30a4\u30e1\u30fc\u30b8\uff08php:5.6-fpm \u3001php:7.0-fpm\uff09\u3092pull\u3057\u3066\u3001\u3055\u3066\u52d5\u304b\u3057\u3066\u307f\u308b\u304b&#8230;&#8230;\u3068\u3001\u6c17\u8efd\u306b\u8a2d\u5b9a\u3092\u59cb\u3081\u305f\u308f\u3051\u306a\u306e\u3067\u3059\u304c\u3002\u3053\u308c\u304c\u307e\u3042\u3001\u898b\u4e8b\u306a\u6ce5\u6cbc\u3067\u3057\u3066\u3002\u307e\u3068\u3082\u306b\u52d5\u304b\u305b\u308b\u3088\u3046\u306b\u306a\u308b\u307e\u3067\u3001\u7b46\u820c\u306b\u5c3d\u304f\u3057\u304c\u305f\u3044\u52b4\u82e6\u3092\u91cd\u306d\u308b\u3053\u3068\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002\u4ee5\u4e0b\u3001\u305d\u306e\u6ce5\u6cbc\u3063\u3077\u308a\u306b\u3064\u3044\u3066\u8a18\u9332\u3057\u3066\u304a\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><strong>\uff11\uff0e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u6271\u3044\u304c\u3084\u3084\u3053\u3057\u3044<\/strong><\/p>\n<p>\u307e\u305a\u305d\u3082\u305d\u3082\u3001\u30b3\u30f3\u30c6\u30ca\u306e\u4e2d\u306bphp.ini\u304c\u898b\u5f53\u305f\u308a\u307e\u305b\u3093\u3002<a target=\"_blank\" href=\"https:\/\/github.com\/docker-library\/php\/blob\/81ceba13187f9488f1ab25683575ac1b62fea772\/5.6\/fpm\/Dockerfile\">Dockerfile<\/a>\u3092\u898b\u308b\u3068\u3001\u7f6e\u304d\u5834\u6240\u3068\u3057\u3066\/usr\/local\/etc\/php \u306a\u3093\u3064\u3046\u3068\u3053\u308d\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u305d\u3053\u306b\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u63a2\u3057\u3066\u307f\u308b\u3068\u3001configure\u3092\u884c\u306a\u3063\u305f\/usr\/src\/php\u306e\u4e0b\u306b\u300cphp.ini-production\u300d\u3068\u3044\u3046\u306e\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u3053\u308c\u3092docker cp\u3067\u30db\u30b9\u30c8\u5074\u306b\u30b3\u30d4\u30fc\u3057\u3066\u3001\u3057\u304b\u308b\u3079\u304d\/etc\/php.ini\u3068\u3057\u3066\u4f7f\u3046\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002\u3044\u3084\u306f\u3084\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u308c\u3070\u5f53\u305f\u308a\u524d\u306b\u3064\u3044\u3066\u304f\u308b\u3082\u306e\u306a\u306e\u306b&#8230;&#8230;\u305d\u306e\u3042\u308a\u304c\u305f\u307f\u3092\u75db\u611f\u3057\u307e\u3057\u305f\uff08\u5927\u8888\u88df\uff1f\uff09\u3002<\/p>\n<p>\u305d\u308c\u3068\u3001php-fpm\u81ea\u4f53\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u6240\u3082\/usr\/local\/etc\/\u4ee5\u4e0b\u306b\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u3053\u308c\u3092\u30db\u30b9\u30c8\u304b\u3089\u30de\u30a6\u30f3\u30c8\u3059\u308b\u306e\u304c\u3081\u3093\u3069\u304f\u3055\u3044\u3002\u5177\u4f53\u7684\u306b\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u30de\u30a6\u30f3\u30c8\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"line-numbers\"><code class=\"language-bash\">-v \/etc\/php.ini:\/usr\/local\/etc\/php\/php.ini\r\n-v \/etc\/php-fpm.conf:\/usr\/local\/etc\/php-fpm.conf\r\n-v \/etc\/php-fpm.d\/www.conf:\/usr\/local\/etc\/php-fpm.d\/www.conf<\/code><\/pre>\n<p><strong>\uff12\uff0e\u30ed\u30b0\u63a1\u308a\u306f\u5927\u4e8b\u3067\u3059<\/strong><\/p>\n<p>Docker\u30b3\u30f3\u30c6\u30ca\u304b\u3089\u306e\u30ed\u30b0\u306e\u63a1\u53d6\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u3088\u3063\u3066\u306f\u5b9f\u306b\u60a9\u307e\u3057\u3044\u554f\u984c\u306a\u306e\u3067\u3059\u304c\u3001\u5e78\u3044\uff08\uff1f\uff09php-fpm\u306froot\u3067\u52d5\u3044\u3066\u3044\u308b\u306e\u3067\u3001\u9069\u5f53\u306a\u5834\u6240\uff08\u4eca\u56de\u306f\u306a\u305c\u304b\/home\uff09\u306b\u30ed\u30b0\u3092\u66f8\u304f\u3088\u3046\u306b\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u6307\u5b9a\u3057\u3066\u3001\u305d\u3053\u3092\u30db\u30b9\u30c8\u304b\u3089\u30de\u30a6\u30f3\u30c8\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002\u30db\u30b9\u30c8\u5074\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3082root\u6240\u6709\u306a\u306e\u3067\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306e\u3053\u3058\u308c\u304c\u8d77\u304d\u306a\u3044\u306e\u304c\u3042\u308a\u304c\u305f\u3044\u3067\u3059\uff08MySQL\u3068\u304b\u3060\u3068\u3053\u3046\u306f\u3044\u304b\u306a\u3044\uff09\u3002\u3061\u306a\u307f\u306b\u3001\u4f55\u3082\u8a2d\u5b9a\u3057\u306a\u3044\u3068\u30ed\u30b0\u306f\u6a19\u6e96\u51fa\u529b\uff06\u6a19\u6e96\u30a8\u30e9\u30fc\u51fa\u529b\u306b\u66f8\u304d\u51fa\u3055\u308c\u308b\u306e\u3067\u3001docker logs\u3068\u304b\u3067\u898b\u308b\u3088\u3046\u306b\u306a\u308b\u306e\u3067\u3057\u3087\u3046\u3002\u6b63\u76f4\u3001docker logs\u306f\u904b\u7528\u7684\u306b\u306f\u6271\u3044\u3065\u3089\u3044\u4ed5\u7d44\u307f\u3067\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u30ed\u30b0\u3092\u63a1\u308b\u5834\u5408\u306f\u6642\u9593\u306e\u540c\u671f\u304c\u5927\u4e8b\u3067\u3059\u3002Docker\u5185\u90e8\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3060\u3068UTC\u3067\u52d5\u3044\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u306e\u6642\u523b\u3067\u30ed\u30b0\u3092\u66f8\u304b\u308c\u308b\u3068\u30db\u30b9\u30c8\u5074\u304b\u3089\u898b\u305f\u6642\u306b\u6df7\u4e71\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u89e3\u6c7a\u7b56\u3068\u3057\u3066\u306f\u3001\u30db\u30b9\u30c8\u306e\/etc\/localtime\u3092\u30b3\u30f3\u30c6\u30ca\u5074\u306b\u30de\u30a6\u30f3\u30c8\u3059\u308b\u3068\u3044\u3046\u65b9\u6cd5\u304c\u624b\u8efd\u306a\u306e\u3067\u3001\u305d\u306e\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u7d50\u679c\u3001\u3053\u3093\u306a\u611f\u3058\u306b\u30de\u30a6\u30f3\u30c8\u3092\u8ffd\u52a0\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"line-numbers\"><code class=\"language-bash\">-v \/var\/log\/php-fpm:\/home\r\n-v \/etc\/localtime:\/etc\/localtime:ro<\/code><\/pre>\n<p><strong>\uff13\uff0eWeb\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3082\u30de\u30a6\u30f3\u30c8\u3057\u307e\u3057\u3087\u3046<\/strong><\/p>\n<p>Web\u30b5\u30fc\u30d0\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u306b\u306a\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3082\u30b3\u30f3\u30c6\u30ca\u5074\u306b\u30de\u30a6\u30f3\u30c8\u3057\u307e\u3059\u3002\u3067\u306a\u3044\u3068\u3001php-fpm\u304c\u3069\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u51e6\u7406\u3057\u3066\u3044\u3044\u306e\u304b\u308f\u304b\u3089\u306a\u3044\u307e\u307e\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u306e\u3067\u3002\u7406\u5c48\u3068\u3057\u3066\u306f\u5f53\u305f\u308a\u524d\u306a\u3093\u3067\u3059\u304c\u3001\u3053\u308c\u306b\u6c17\u3065\u304f\u307e\u3067\u3001\u3051\u3063\u3053\u3046\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3057\u305f\uff08\u6065\uff09\u3002<\/p>\n<pre class=\"line-numbers\"><code class=\"language-bash\">-v \/usr\/share\/nginx\/html:\/usr\/share\/nginx\/html<\/code><\/pre>\n<p><strong>\uff14\uff0e\u30bd\u30b1\u30c3\u30c8\u3082\u5927\u4e8b\u3067\u3059<\/strong><\/p>\n<p>Nginx\u304b\u3089fastcgi_pass\u3059\u308b\u5148\u3068\u3057\u3066\u3001php-fpm\u306e\u30bd\u30b1\u30c3\u30c8\u3092\u30db\u30b9\u30c8\u5074\u304b\u3089\u53c2\u7167\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304b\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\uff08TCP\u30dd\u30fc\u30c8\u7d4c\u7531\u3067\u3082\u3044\u3044\u306e\u3067\u3059\u304c\u3001\u591a\u5c11\u306a\u308a\u3068\u901f\u5ea6\u3092\u7a3c\u3050\u305f\u3081\uff09\u3002\u307e\u3042\u3001\u3053\u308c\u306f\u30b3\u30f3\u30c6\u30ca\u5074\u306e\u30bd\u30b1\u30c3\u30c8\u306e\u7f6e\u304d\u5834\u6240\u3092\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u6307\u5b9a\u3057\u3066\u3001\u305d\u308c\u3092\u30de\u30a6\u30f3\u30c8\u3059\u308b\u3068\u3044\u3046\u5f62\u3067\u554f\u984c\u306a\u304f\u52d5\u304d\u307e\u3059\u3002<\/p>\n<p>\u304c\u3001\u3082\u3046\u3072\u3068\u3064\u3002MySQL\u3092\u300clocalhost\u300d\u3068\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u63a5\u7d9a\u3092\u884c\u306a\u3046\u5834\u5408\uff08wp-config.php\u3067DB_HOST\u3092\u300clocalhost\u300d\u3068\u3059\u308b\u5834\u5408\uff09\u306f\u3001MySQL\u306e\u30bd\u30b1\u30c3\u30c8\u3082\u30b3\u30f3\u30c6\u30ca\u304b\u3089\u898b\u3048\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304b\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002MySQL\u306f\u81ea\u8eab\u3092\u300clocalhost\u300d\u3068\u3059\u308b\u63a5\u7d9a\u306b\u5bfe\u3057\u3066\u306f\u3001\u30bd\u30b1\u30c3\u30c8\u306b\u3088\u308b\u63a5\u7d9a\u3092\u884c\u306a\u3046\u304b\u3089\u3067\u3059\uff08\u3061\u306a\u307f\u306b\u300c127.0.0.1\u300d\u3068\u6307\u5b9a\u3057\u3066\u304d\u305f\u63a5\u7d9a\u306b\u5bfe\u3057\u3066\u306f\u3001TCP\u30dd\u30fc\u30c8\u3067\u306e\u63a5\u7d9a\u3092\u884c\u306a\u3044\u307e\u3059\uff09\u3002\u3053\u306e\u70b9\u306b\u3064\u3044\u3066\u306fMySQL\u306e\u30af\u30bb\u3068\u3044\u3046\u3057\u304b\u306a\u304f\u3066\u3001\u3053\u308c\u3092\u7406\u89e3\u3059\u308b\u307e\u3067\u3053\u308c\u307e\u305f\u76f8\u5f53\u306e\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u3046\u3044\u3046\u308f\u3051\u3067\u3001\u3055\u3089\u306b\u30de\u30a6\u30f3\u30c8\u304c\u5897\u3048\u307e\u3059\u3002<\/p>\n<pre class=\"line-numbers\"><code class=\"language-bash\">-v \/var\/run\/php-fpm:\/var\/run\r\n-v \/var\/lib\/mysql:\/var\/lib\/mysql<\/code><\/pre>\n<p><strong>\uff15\uff0e\u305d\u306e\u307e\u307e\u3067\u306fMySQL\u306b\u63a5\u7d9a\u3067\u304d\u307e\u305b\u3093<\/strong><\/p>\n<p>&#8230;&#8230;\u3053\u308c\u304c\u3001\u4e00\u756a\u306e\u6ce5\u6cbc\u3067\u3057\u305f\u3002phpinfo()\u306f\u3061\u3083\u3093\u3068\u52d5\u304f\u306e\u306b\u3001\u306a\u305c\u304bWordPress\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u52d5\u304b\u306a\u3044\u3002\u30d6\u30e9\u30a6\u30b6\u306f\u771f\u3063\u767d\u3001Web\u30b5\u30fc\u30d0\u306e\u30ed\u30b0\u3067\u306f200\u3067\u51e6\u7406\u3055\u308c\u3066\u3044\u308b\u306e\u306b\u3001\u306a\u305c&#8230;&#8230;\uff1f\uff1f\uff1f<\/p>\n<p>\u3053\u308c\u3082\u3069\u3046\u3057\u3066\u3044\u3044\u306e\u304b\u6563\u3005\u8abf\u3079\u305f\u308a\u3057\u3066\u304b\u306a\u308a\u306e\u6642\u9593\u3092\u304b\u3051\u305f\u306e\u3067\u3059\u304c\u3001\u89e3\u6c7a\u306e\u7cf8\u53e3\u306f\uff12\u3064\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u30fbphp-fpm\u306e\u30d7\u30fc\u30eb\u8a2d\u5b9a\u3067\u300ccatch_workers_output\u300d\u3092\u300cyes\u300d\u306b\u3057\u3066\u3001\u30a8\u30e9\u30fc\u30ed\u30b0\u306bPHP\u306e\u30a8\u30e9\u30fc\u3092\u5410\u304b\u305b\u308b<br \/>\u30fbWordPress\u3092\u30c7\u30d0\u30c3\u30b0\u30e2\u30fc\u30c9\u3067\u52d5\u304b\u3059\uff08wp-config.php\u3067\u300cdefine(&#8216;WP_DEBUG&#8217;, true);\u300d\u3068\u3059\u308b\uff09<\/p>\n<p>\u3059\u308b\u3068\u3001\u3053\u3093\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u3002<\/p>\n<pre class=\"line-numbers\"><code class=\"language-html\">Fatal error: Call to undefined function mysql_connect() in \/usr\/share\/nginx\/html\/wordpress\/wp-includes\/wp-db.php on line 1520<\/code><\/pre>\n<p>mysql_connect()\u304c\u3001\u7121\u3044\uff01\uff1f<\/p>\n<p>\u307e\u3055\u304b\u3001\u305d\u3093\u306a\u3053\u3068\u304c&#8230;&#8230;\u3068\u601d\u3063\u3066\u518d\u5ea6<a target=\"_blank\" href=\"https:\/\/github.com\/docker-library\/php\/blob\/81ceba13187f9488f1ab25683575ac1b62fea772\/5.6\/fpm\/Dockerfile\">Dockerfile<\/a>\u3092\u78ba\u8a8d\u3057\u305f\u3068\u3053\u308d\u3001configure\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u306b\u300c&#8211;enable-mysqlnd\u300d\u304c\u3042\u308b\u3082\u306e\u306e\u3001\u300c&#8211;with-mysqli\u300d\u304c\u3042\u308a\u307e\u305b\u3093\u3002\u3064\u307e\u308a\u3001MySQL\u62e1\u5f35\u304c\u4f7f\u3048\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u305d\u3001\u305d\u3093\u306a&#8230;&#8230;orz&#8230;&#8230;\u3042\u307e\u308a\u306b\u4e88\u60f3\u5916\u306a\u4e8b\u614b\u306b\u3001\u982d\u3092\u62b1\u3048\u307e\u3057\u305f\u3002<\/p>\n<p>\u3067\u3059\u304c\u3001Dockerfile\u3092\u3088\u304f\u8aad\u3093\u3067\u307f\u308b\u3068\u3001\/usr\/local\/bin\u306b\u300cdocker-php-ext-install\u300d\u3068\u3044\u3046\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u7f6e\u3044\u3066\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002\u5236\u4f5c\u8005\u306e\u610f\u56f3\u3068\u3057\u3066\u306f\u3001\u3069\u3046\u3084\u3089\u3053\u308c\u3092\u4f7f\u3063\u3066\u5fc5\u8981\u306a\u62e1\u5f35\u3092\u9069\u5b9c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u308c\u305f\u307e\u3048\u3001\u3068\u3044\u3046\u3053\u3068\u3089\u3057\u3044\u3067\u3059\u3002\u3068\u3044\u3046\u308f\u3051\u3067\u3001php-fpm\u306e\u30b3\u30f3\u30c6\u30ca\u3092\u8d77\u52d5\u3057\u3066\u304b\u3089<\/p>\n<pre class=\"line-numbers\"><code class=\"language-html\">docker exec php-fpm \/usr\/local\/bin\/docker-php-ext-install mysqli<\/code><\/pre>\n<p>\u3068\u5b9f\u884c\u3057\u3066\u3001WordPress\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u518d\u5ea6\u6311\u6226&#8230;&#8230;\u52d5\u304d\u307e\u3057\u305f&#8230;&#8230;\uff08\u6ce3\uff09<\/p>\n<p>\u5168\u304f\u3001\u3046\u308c\u3057\u3044\u3084\u3089\u8179\u304c\u7acb\u3064\u3084\u3089\u6094\u3057\u3044\u3084\u3089\u3002\u3053\u3093\u306a\u3093\u3060\u3063\u305f\u3089\u3001\u516c\u5f0f\u30a4\u30e1\u30fc\u30b8\u306a\u3093\u304b\u4f7f\u308f\u305a\u306b\u81ea\u5206\u3067Dockerfile\u66f8\u3044\u3066build\u3059\u308b\u3093\u3060\u3063\u305f\u3001\u6563\u3005\u60a9\u3093\u3060\u6642\u9593\u3092\u8fd4\u3057\u3066\u304f\u308c&#8230;&#8230;\u3068\u53eb\u3073\u305f\u304f\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u4ee5\u4e0a\u306e\u3088\u3046\u306a\u884c\u7a0b\u3092\u7d4c\u3066\u3001\u3072\u3068\u3068\u304a\u308aWordPress\u306f\u52d5\u304f\u3088\u3046\u306b\u306f\u306a\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u554f\u984c\u306f\u307e\u3060\u3082\u3046\u3072\u3068\u3064\u3042\u308b\u306e\u3067\u3059\u3002<\/p>\n<p><strong>\uff16\uff0enginx\u540d\u7fa9\u3067\u52d5\u304b\u3059\u306b\u306f<\/strong><\/p>\n<p>WordPress\u672c\u4f53\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u6240\u6709\u306fWeb\u30b5\u30fc\u30d0\u306e\u5b9f\u884c\u30a2\u30ab\u30a6\u30f3\u30c8\uff08Nginx\u3067\u3042\u308c\u3070\u300cnginx:nginx\u300d\uff09\u306b\u3059\u308b\u306e\u304c\u901a\u4f8b\u3067\u3059\u3002\u3053\u308c\u306b\u5f93\u3063\u3066\u3001php-fpm\u306fnginx\u306e\u6a29\u9650\u3067\u52d5\u304b\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u3046\u3067\u306a\u3044\u3068\u3001\u4f8b\u3048\u3070\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u66f4\u65b0\u306a\u3069\u3092\u884c\u306a\u3046\u5834\u5408\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u66f4\u65b0\u3059\u308b\u6a29\u9650\u304c\u7121\u3044\u306e\u3067\u3001\u66f4\u65b0\u304c\u5931\u6557\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u30db\u30b9\u30c8\u306b\u76f4\u63a5\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fphp-fpm\u3067\u3042\u308c\u3070\u30e6\u30fc\u30b6\u60c5\u5831\u304c\u5171\u901a\u3057\u3066\u3044\u307e\u3059\u304b\u3089\u3001\u30d7\u30fc\u30eb\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067user\u3068group\u3092nginx\u306b\u8a2d\u5b9a\u3059\u308b\u3060\u3051\u3067\u6e08\u3080\u306e\u3067\u3059\u304c\u3001Docker\u306e\u30b3\u30f3\u30c6\u30ca\u306e\u5834\u5408\u306f\u305d\u3046\u7c21\u5358\u306b\u306f\u3044\u304d\u307e\u305b\u3093\u3002\u30b3\u30f3\u30c6\u30ca\u306e\u4e2d\u3067\u30db\u30b9\u30c8\u5074\u306enginx\u30e6\u30fc\u30b6\u3068\u540c\u3058UID\u3001GID\u3092\u6301\u3063\u305fnginx\u30e6\u30fc\u30b6\u3092\u4f5c\u6210\u3057\u3066\u3001\u305d\u306e\u6a29\u9650\u3067php-fpm\u3092\u52d5\u4f5c\u3055\u305b\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u304b\u3089\u3067\u3059\u3002\u3057\u304b\u3057\u3001\u305d\u306e\u30e6\u30fc\u30b6\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u307e\u305a\u30b3\u30f3\u30c6\u30ca\u3092\u8d77\u52d5\u3055\u305b\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u305d\u306e\u305f\u3081\u306b\u306f\u30d7\u30fc\u30eb\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306euser\u3068group\u306e\u8a2d\u5b9a\u3092\u4e00\u65e6\u30b3\u30f3\u30c6\u30ca\u306e\u65e2\u5b58\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\uff08\u521d\u671f\u8a2d\u5b9a\u3067\u306fwww-data\u306b\u306a\u3063\u3066\u3044\u308b\uff09\u306b\u3057\u3066\u304a\u3044\u3066\u3001\u30b3\u30f3\u30c6\u30ca\u3092\u8d77\u52d5\u2192nginx\u30e6\u30fc\u30b6\u3092\u30b3\u30f3\u30c6\u30ca\u5185\u306b\u4f5c\u6210\u2192\u30d7\u30fc\u30eb\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u66f8\u304d\u63db\u3048\u308b\u2192\u30b3\u30f3\u30c6\u30ca\u3092\u518d\u8d77\u52d5\u3059\u308b\u3001\u3068\u3044\u3046\u5b9f\u306b\u9762\u5012\u304f\u3055\u3044\u624b\u7d9a\u304d\u3092\u8e0f\u307e\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u3053\u3093\u306a\u9762\u5012\u306a\u3053\u3068\u306f\u3044\u3061\u3044\u3061\u4eba\u624b\u3067\u3084\u308b\u306e\u306f\u5927\u5909\u3067\u3059\u304b\u3089\u3001\uff08\u5148\u306emysqli\u62e1\u5f35\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u90e8\u5206\u3082\u542b\u3081\u3066\uff09\u4e00\u9023\u306e\u52d5\u4f5c\u3092\u81ea\u52d5\u7684\u306b\u884c\u306a\u3063\u3066php-fpm\u306e\u30b3\u30f3\u30c6\u30ca\u3092\u8d77\u52d5\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002\u5927\u91cf\u306e\u30de\u30a6\u30f3\u30c8\u30aa\u30d7\u30b7\u30e7\u30f3\u3082\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"line-numbers\"><code class=\"language-bash\">#!\/bin\/bash\r\ndocker run --name php-fpm \\\r\n-v \/etc\/php.ini:\/usr\/local\/etc\/php\/php.ini \\\r\n-v \/etc\/php-fpm.conf:\/usr\/local\/etc\/php-fpm.conf \\\r\n-v \/etc\/php-fpm.d\/www.conf:\/usr\/local\/etc\/php-fpm.d\/www.conf \\\r\n-v \/var\/log\/php-fpm:\/home \\\r\n-v \/etc\/localtime:\/etc\/localtime:ro \\\r\n-v \/usr\/share\/nginx\/html:\/usr\/share\/nginx\/html \\\r\n-v \/var\/run\/php-fpm:\/var\/run \\\r\n-v \/var\/lib\/mysql:\/var\/lib\/mysql \\\r\n-d php:5.6.21-fpm\r\ndocker exec php-fpm \/usr\/local\/bin\/docker-php-ext-install mysqli\r\nDATA=`id nginx`\r\nif [[ $DATA =~ ^uid=([0-9]*).*gid=([0-9]*).*$ ]]; then\r\nUSER=${BASH_REMATCH[1]}\r\nGROUP=${BASH_REMATCH[2]}\r\nfi\r\ndocker exec php-fpm groupadd -g $GROUP nginx\r\ndocker exec php-fpm useradd -u $USER -g $GROUP nginx\r\nsed -i -e 's\/www-data\/nginx\/g' \/etc\/php-fpm.d\/www.conf\r\ndocker restart php-fpm<\/code><\/pre>\n<p>\u3053\u308c\u3067\u3001\u516c\u5f0f\u306efpm\u30a4\u30e1\u30fc\u30b8\u3092\u300c\u4f7f\u3048\u308b\u300d\u72b6\u614b\u3067\u52d5\u304b\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u3084\u308c\u3084\u308c\u3002\u307e\u3063\u305f\u304f\u3082\u3063\u3066\u3001\u3084\u308c\u3084\u308c\u3067\u3059\u3002<\/p>\n<p>\u6b63\u76f4\u3001\u516c\u5f0f\u306b\u306f\u983c\u3089\u305a\u306b\u72ec\u81ea\u306bDockerfile\u3092\u4f5c\u3063\u3066\u30d3\u30eb\u30c9\u3057\u305f\u65b9\u304c\u3044\u308d\u3044\u308d\u3068\u30b9\u30de\u30fc\u30c8\u3060\u3068\u601d\u3046\u306e\u3067\u3059\u304c&#8230;&#8230;\u307e\u3042\u3001\u305d\u308c\u306f\u3082\u3046\u5c11\u3057\u77e5\u8b58\u3092\u7a4d\u3093\u3060\u4e0a\u3067\u3001\u6642\u9593\u304c\u3067\u304d\u3066\u304b\u3089\u3084\u3063\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u306f\u3042\u3001\u75b2\u308c\u305f&#8230;&#8230;\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3046\u3061\u306e\u4f1a\u793e\u3067\u3072\u3068\u3064\u30b5\u30fc\u30d0\u3092\u7acb\u3066\u3066\u3001WordPress\u306e\u30b5\u30a4\u30c8\u3092\u7acb\u3061\u4e0a\u3052\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002OS\u306fCentOS7\u3001Web\u30b5\u30fc\u30d0\u306fNginx\u3067\u3001php-fpm\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u307e\u3042\u3001\u6628\u4ecaWordPress\u3092\u52d5\u304b\u3059\u3060\u3051\u3067\u3088\u3051\u308c\u3070\u3001 <a class=\"read-more\" href=\"https:\/\/polaire.org\/r-top\/2016\/05\/dockerphpfpm.html\">\u7d9a\u304d\u3092\u8aad\u3080&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-5351","post","type-post","status-publish","format-standard","hentry","category-14"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5099\u5fd8\u9332\uff1aDocker\u306ePHP\u516c\u5f0f\u306efpm\u30a4\u30e1\u30fc\u30b8\u3067\u3069\u30cf\u30de\u308a\u3057\u305f\u3053\u3068 - \u306e\u3081\u3057\u3053\u304d\u306e\u65e5\u3005<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/polaire.org\/r-top\/2016\/05\/dockerphpfpm.html\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5099\u5fd8\u9332\uff1aDocker\u306ePHP\u516c\u5f0f\u306efpm\u30a4\u30e1\u30fc\u30b8\u3067\u3069\u30cf\u30de\u308a\u3057\u305f\u3053\u3068 - \u306e\u3081\u3057\u3053\u304d\u306e\u65e5\u3005\" \/>\n<meta property=\"og:description\" content=\"\u3046\u3061\u306e\u4f1a\u793e\u3067\u3072\u3068\u3064\u30b5\u30fc\u30d0\u3092\u7acb\u3066\u3066\u3001WordPress\u306e\u30b5\u30a4\u30c8\u3092\u7acb\u3061\u4e0a\u3052\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002OS\u306fCentOS7\u3001Web\u30b5\u30fc\u30d0\u306fNginx\u3067\u3001php-fpm\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u307e\u3042\u3001\u6628\u4ecaWordPress\u3092\u52d5\u304b\u3059\u3060\u3051\u3067\u3088\u3051\u308c\u3070\u3001 \u7d9a\u304d\u3092\u8aad\u3080...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/polaire.org\/r-top\/2016\/05\/dockerphpfpm.html\" \/>\n<meta property=\"og:site_name\" content=\"\u306e\u3081\u3057\u3053\u304d\u306e\u65e5\u3005\" \/>\n<meta property=\"article:published_time\" content=\"2016-05-28T06:54:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-01-07T11:59:39+00:00\" \/>\n<meta name=\"author\" content=\"\u3075\u3047\u308b\u304b\u3069\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u3075\u3047\u308b\u304b\u3069\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/polaire.org\/r-top\/2016\/05\/dockerphpfpm.html\",\"url\":\"https:\/\/polaire.org\/r-top\/2016\/05\/dockerphpfpm.html\",\"name\":\"\u5099\u5fd8\u9332\uff1aDocker\u306ePHP\u516c\u5f0f\u306efpm\u30a4\u30e1\u30fc\u30b8\u3067\u3069\u30cf\u30de\u308a\u3057\u305f\u3053\u3068 - \u306e\u3081\u3057\u3053\u304d\u306e\u65e5\u3005\",\"isPartOf\":{\"@id\":\"https:\/\/polaire.org\/r-top\/#website\"},\"datePublished\":\"2016-05-28T06:54:10+00:00\",\"dateModified\":\"2018-01-07T11:59:39+00:00\",\"author\":{\"@id\":\"https:\/\/polaire.org\/r-top\/#\/schema\/person\/2c4a6222c5daa974b4260109efe45682\"},\"breadcrumb\":{\"@id\":\"https:\/\/polaire.org\/r-top\/2016\/05\/dockerphpfpm.html#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/polaire.org\/r-top\/2016\/05\/dockerphpfpm.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/polaire.org\/r-top\/2016\/05\/dockerphpfpm.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\/\/polaire.org\/r-top\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5099\u5fd8\u9332\uff1aDocker\u306ePHP\u516c\u5f0f\u306efpm\u30a4\u30e1\u30fc\u30b8\u3067\u3069\u30cf\u30de\u308a\u3057\u305f\u3053\u3068\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/polaire.org\/r-top\/#website\",\"url\":\"https:\/\/polaire.org\/r-top\/\",\"name\":\"\u306e\u3081\u3057\u3053\u304d\u306e\u65e5\u3005\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/polaire.org\/r-top\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/polaire.org\/r-top\/#\/schema\/person\/2c4a6222c5daa974b4260109efe45682\",\"name\":\"\u3075\u3047\u308b\u304b\u3069\",\"url\":\"https:\/\/polaire.org\/r-top\/author\/r-top\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5099\u5fd8\u9332\uff1aDocker\u306ePHP\u516c\u5f0f\u306efpm\u30a4\u30e1\u30fc\u30b8\u3067\u3069\u30cf\u30de\u308a\u3057\u305f\u3053\u3068 - \u306e\u3081\u3057\u3053\u304d\u306e\u65e5\u3005","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/polaire.org\/r-top\/2016\/05\/dockerphpfpm.html","og_locale":"ja_JP","og_type":"article","og_title":"\u5099\u5fd8\u9332\uff1aDocker\u306ePHP\u516c\u5f0f\u306efpm\u30a4\u30e1\u30fc\u30b8\u3067\u3069\u30cf\u30de\u308a\u3057\u305f\u3053\u3068 - \u306e\u3081\u3057\u3053\u304d\u306e\u65e5\u3005","og_description":"\u3046\u3061\u306e\u4f1a\u793e\u3067\u3072\u3068\u3064\u30b5\u30fc\u30d0\u3092\u7acb\u3066\u3066\u3001WordPress\u306e\u30b5\u30a4\u30c8\u3092\u7acb\u3061\u4e0a\u3052\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002OS\u306fCentOS7\u3001Web\u30b5\u30fc\u30d0\u306fNginx\u3067\u3001php-fpm\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u307e\u3042\u3001\u6628\u4ecaWordPress\u3092\u52d5\u304b\u3059\u3060\u3051\u3067\u3088\u3051\u308c\u3070\u3001 \u7d9a\u304d\u3092\u8aad\u3080...","og_url":"https:\/\/polaire.org\/r-top\/2016\/05\/dockerphpfpm.html","og_site_name":"\u306e\u3081\u3057\u3053\u304d\u306e\u65e5\u3005","article_published_time":"2016-05-28T06:54:10+00:00","article_modified_time":"2018-01-07T11:59:39+00:00","author":"\u3075\u3047\u308b\u304b\u3069","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u3075\u3047\u308b\u304b\u3069","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"2\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/polaire.org\/r-top\/2016\/05\/dockerphpfpm.html","url":"https:\/\/polaire.org\/r-top\/2016\/05\/dockerphpfpm.html","name":"\u5099\u5fd8\u9332\uff1aDocker\u306ePHP\u516c\u5f0f\u306efpm\u30a4\u30e1\u30fc\u30b8\u3067\u3069\u30cf\u30de\u308a\u3057\u305f\u3053\u3068 - \u306e\u3081\u3057\u3053\u304d\u306e\u65e5\u3005","isPartOf":{"@id":"https:\/\/polaire.org\/r-top\/#website"},"datePublished":"2016-05-28T06:54:10+00:00","dateModified":"2018-01-07T11:59:39+00:00","author":{"@id":"https:\/\/polaire.org\/r-top\/#\/schema\/person\/2c4a6222c5daa974b4260109efe45682"},"breadcrumb":{"@id":"https:\/\/polaire.org\/r-top\/2016\/05\/dockerphpfpm.html#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/polaire.org\/r-top\/2016\/05\/dockerphpfpm.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/polaire.org\/r-top\/2016\/05\/dockerphpfpm.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/polaire.org\/r-top"},{"@type":"ListItem","position":2,"name":"\u5099\u5fd8\u9332\uff1aDocker\u306ePHP\u516c\u5f0f\u306efpm\u30a4\u30e1\u30fc\u30b8\u3067\u3069\u30cf\u30de\u308a\u3057\u305f\u3053\u3068"}]},{"@type":"WebSite","@id":"https:\/\/polaire.org\/r-top\/#website","url":"https:\/\/polaire.org\/r-top\/","name":"\u306e\u3081\u3057\u3053\u304d\u306e\u65e5\u3005","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/polaire.org\/r-top\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/polaire.org\/r-top\/#\/schema\/person\/2c4a6222c5daa974b4260109efe45682","name":"\u3075\u3047\u308b\u304b\u3069","url":"https:\/\/polaire.org\/r-top\/author\/r-top"}]}},"_links":{"self":[{"href":"https:\/\/polaire.org\/r-top\/wp-json\/wp\/v2\/posts\/5351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/polaire.org\/r-top\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/polaire.org\/r-top\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/polaire.org\/r-top\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/polaire.org\/r-top\/wp-json\/wp\/v2\/comments?post=5351"}],"version-history":[{"count":2,"href":"https:\/\/polaire.org\/r-top\/wp-json\/wp\/v2\/posts\/5351\/revisions"}],"predecessor-version":[{"id":5413,"href":"https:\/\/polaire.org\/r-top\/wp-json\/wp\/v2\/posts\/5351\/revisions\/5413"}],"wp:attachment":[{"href":"https:\/\/polaire.org\/r-top\/wp-json\/wp\/v2\/media?parent=5351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/polaire.org\/r-top\/wp-json\/wp\/v2\/categories?post=5351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/polaire.org\/r-top\/wp-json\/wp\/v2\/tags?post=5351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}