{"id":2174,"date":"2019-12-22T23:38:44","date_gmt":"2019-12-22T14:38:44","guid":{"rendered":"http:\/\/blue-bear.jp\/kb\/?p=2174"},"modified":"2019-12-22T23:38:44","modified_gmt":"2019-12-22T14:38:44","slug":"php-allow_url_fopen%e3%81%8con%e3%81%ab%e3%81%aa%e3%81%a3%e3%81%a6%e3%81%84%e3%82%8b%e3%81%ae%e3%81%abfile_get_contents%e3%82%84simplexml_load_file%e3%81%8cfalse%e3%81%ab%e3%81%aa%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blue-bear.jp\/kb\/php-allow_url_fopen%e3%81%8con%e3%81%ab%e3%81%aa%e3%81%a3%e3%81%a6%e3%81%84%e3%82%8b%e3%81%ae%e3%81%abfile_get_contents%e3%82%84simplexml_load_file%e3%81%8cfalse%e3%81%ab%e3%81%aa%e3%82%8b\/","title":{"rendered":"[php] allow_url_fopen\u304cON\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u306bfile_get_contents\u3084simplexml_load_file\u304cFalse\u306b\u306a\u308b"},"content":{"rendered":"<p>Docker\u4e0a\u306ealpine linux\u3067\u7a3c\u50cd\u3057\u3066\u3044\u308bH2O\uff0bPHP\u74b0\u5883\u306b\u3066file_get_contents\u3084simplexml_load_file\u304cFalse\u3067\u8fd4\u3063\u3066\u304f\u308b\u554f\u984c\u306b\u76f4\u9762\u3057\u305f<\/p>\n<p>php.ini\u306eallow_url_fopen \u306fOn\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u306fCLI\u4e0a\u3068phpinfo()\u4e0a\u4e21\u65b9\u3067\u78ba\u8a8d\u6e08\u307f\u306a\u306e\u306b\u306a\u305c\u304bFalse\u306b\u306a\u308b\u3002<\/p>\n<p>\u7d50\u5c40\u554f\u984c\u306f\u89e3\u6c7a\u3057\u305f\u304c\u3001\u539f\u56e0\u306f\u300cphp\u306eOpenSSL module\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u304a\u3089\u305aHTTPS\u3078\u306e\u30b5\u30a4\u30c8\u3078\u306e\u63a5\u7d9a\u304c\u3067\u304d\u306a\u304b\u3063\u305f\u305f\u3081\u300d\u3068\u5224\u660e\u3057\u305f\u3002<\/p>\n<p>\u4e00\u5ea6PHP\u306e\u30a8\u30e9\u30fc\u30ed\u30b0\u3092\u3059\u3079\u3066\u5410\u304f\u8a2d\u5b9a\u306b\u3057\u305f\u3068\u3053\u308d<\/p>\n<pre class=\"lang:default decode:true\">Warning: simplexml_load_file() [function.simplexml-load-file]: Unable to find the wrapper \u201chttps\u201d \u2013 did you forget to enable it when you configured PHP? in<\/pre>\n<p>\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3066\u3044\u305f<\/p>\n<p>\u30a8\u30e9\u30fc\u306e\u5185\u5bb9\u306f\u300cOpenSSL\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u306a\u3044\u300d\u3068\u306e\u3053\u3068\u3067<\/p>\n<p>alpine linux\u3067\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057PHP\u3068php-openssl\u3092Update\u3059\u308b\u3068file_get_contents\u3084simplexml_load_file\u304c\u52d5\u3044\u305f\u3002<\/p>\n<pre class=\"lang:default decode:true\">apk add --update --no-cache php7 php7-openssl<\/pre>\n<p>\u78ba\u304b\u306bphpinfo()\u3067OpenSSL\u306e\u9805\u76ee\u304c\u305a\u3063\u307d\u308a\u629c\u3051\u3066\u3044\u305f\u304c\u3001\u4e0a\u8a18\u30b3\u30de\u30f3\u30c9\u3067phpinfo()\u3067OpenSSL\u306e\u6b04\u304c\u51fa\u73fe\u3057\u3066\u3044\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Docker\u4e0a\u306ealpine linux<\/p>\n","protected":false},"author":1,"featured_media":47,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[206,6],"tags":[200,208,209],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/2174"}],"collection":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/comments?post=2174"}],"version-history":[{"count":3,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/2174\/revisions"}],"predecessor-version":[{"id":2177,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/2174\/revisions\/2177"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/media\/47"}],"wp:attachment":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/media?parent=2174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/categories?post=2174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/tags?post=2174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}