{"id":6551,"date":"2017-10-28T09:57:34","date_gmt":"2017-10-28T00:57:34","guid":{"rendered":"https:\/\/160.16.84.155\/wordpress\/?p=6551"},"modified":"2017-10-28T09:57:34","modified_gmt":"2017-10-28T00:57:34","slug":"php-7-1%e3%81%ab%e3%81%97%e3%81%a6%e3%81%bf%e3%81%be%e3%81%97%e3%81%9f","status":"publish","type":"post","link":"https:\/\/ephemeral-arcadia.jp\/passo_wp\/2017\/10\/php-7-1%e3%81%ab%e3%81%97%e3%81%a6%e3%81%bf%e3%81%be%e3%81%97%e3%81%9f.html","title":{"rendered":"PHP 7.1\u306b\u3057\u3066\u307f\u307e\u3057\u305f"},"content":{"rendered":"<p>\u3046\u3061\u306eVPS\u306ePHP\u30d0\u30fc\u30b8\u30e7\u30f3\u3001\u57fa\u672c\u7684\u306b\u306f<strong>5.6.x<\/strong>\u3067\u3059\u3002<br \/>\n\u3053\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3001\u65e2\u306b\u30a2\u30af\u30c6\u30a3\u30d6\u30b5\u30dd\u30fc\u30c8\u306f\u7d42\u4e86\u3057\u3066\u304a\u308a\u307e\u3057\u3066\u3001\u73fe\u5728\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b5\u30dd\u30fc\u30c8\u306e\u307f\u3002<br \/>\n\u305d\u3057\u3066\u3001\u305d\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b5\u30dd\u30fc\u30c8\u30822018\u5e74\u672b\u307e\u3067\u3068\u3001\u3042\u308b\u610f\u5473\u7d42\u308f\u308a\u304c\u898b\u3048\u3066\u3044\u308b\u72b6\u6cc1\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001<strong>7.1.x<\/strong>\u306b\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3057\u3066\u307f\u307e\u3057\u305f\u3002(VPS\u306f\u8907\u6570\u3042\u308b\u306e\u3067\u3068\u308a\u3042\u3048\u305a\u306f\u305d\u306e\u3046\u3061\u306e\u4e00\u3064\u3092\u5b9f\u9a13\u53f0\u7684\u306b)<br \/>\n\u65e2\u306b\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3055\u308c\u305f\u65b9\u3005\u306e\u30d6\u30ed\u30b0\u3068\u304bSNS\u3092\u62dd\u898b\u3059\u308b\u3068\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u9069\u5207\u306b\u8a2d\u5b9a\u3057\u3066yum update\u3067\u3059\u3093\u306a\u308a\u3044\u3051\u308b\u3063\u307d\u3044\u306e\u3067\u2026\u3002<\/p>\n<p>PHP 5.6.x\u306fremi-php56\u304b\u3089\u6301\u3063\u3066\u304d\u3066\u3044\u308b\u3088\u3046\u306a\u306e\u3067\u3001\u307e\u305a\u306f\u3053\u308c\u3092\u7121\u52b9\u306b\u3057\u305f\u5f8c\u306b\u3001remi-php71\u306e\u65b9\u3092\u6709\u52b9\u306b\u3057\u3066yum update\u3067\u3059\u3002<br \/>\n\u3042\u308b\u3044\u306fremi-php56\u3092\u7121\u52b9\u306b\u3057\u305f\u5f8c\u300c&#8211;enablerepo=remi-php71\u300d\u3092\u304f\u3063\u3064\u3051\u3066yum update\u3057\u3066\u3082\u3044\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>PHP\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306f\u3059\u3093\u306a\u308a\u3068\u7d42\u308f\u3063\u305f\u306e\u3067\u3059\u304c\u3001php -v\u3068\u304b\u3084\u308b\u3068\u3061\u3087\u3063\u3068\u3057\u305f\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3002<\/p>\n<pre class=\"lang:sh decode:true\">$ php -v\r\nPHP Warning:  PHP Startup: Unable to load dynamic library '\/usr\/lib64\/php\/modules\/imagick.so' - \u3046\u3093\u305f\u3089\u304b\u3093\u305f\u3089\u2026<\/pre>\n<p>\u753b\u50cf\u51e6\u7406\u7cfb\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u8aad\u307f\u8fbc\u3081\u306a\u3044\u3088\u3046\u3060\u3063\u305f\u306e\u3067\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"lang:sh decode:true\">$ sudo yum install php-pecl-imagick<\/pre>\n<p>\u305d\u3057\u305f\u3089\u4eca\u5ea6\u306f\u3053\u3093\u306a\u30a8\u30e9\u30fc\u304c\u2026\u3002<\/p>\n<pre class=\"lang:sh decode:true \">$ php -v\r\nPHP Warning:  Module 'imagick' already loaded in Unknown on line 0<\/pre>\n<p>\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u901a\u308a\u3001\u8907\u6570\u56deimagick\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u308b\u306e\u304c\u539f\u56e0\u306e\u3088\u3046\u306a\u306e\u3067\u3069\u3093\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u308b\u304b\u3092\u898b\u3066\u307f\u308b\u3068\u2026<\/p>\n<pre class=\"lang:sh decode:true\">$ php --ini\r\nPHP Warning:  Module 'imagick' already loaded in Unknown on line 0\r\n:\r\n(\u4e2d\u7565)\r\n:\r\n\/etc\/php.d\/40-imagick.ini,\r\n\/etc\/php.d\/imagick.ini<\/pre>\n<p>\u591a\u5206\u3001\u3053\u308c\u3067\u3059\u306d\u3047\u3002<br \/>\n\u4e00\u65b9\u306eini\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u307e\u306a\u3044\u3088\u3046\u306b\u3057\u305f\u3068\u3053\u308d\u30a8\u30e9\u30fc\u306f\u89e3\u6d88\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"lang:sh decode:true \">$ php -v\r\nPHP 7.1.11 (cli) (built: Oct 25 2017 10:38:39) ( NTS )<\/pre>\n<p>\u4eca\u306e\u3068\u3053\u308d\u3001imagick\u7d61\u307f\u306e\u30a8\u30e9\u30fc\u4ee5\u5916\u306b\u306f\u3053\u308c\u3068\u3044\u3063\u305f\u554f\u984c\u306f\u898b\u3064\u304b\u3063\u3066\u3044\u307e\u305b\u3093\u3002<br \/>\n5.6.x\u306b\u6bd4\u3079\u308b\u3068\u901f\u304f\u306a\u3063\u3066\u3044\u308b\u305d\u3046\u306a\u3093\u3067\u3059\u304c\u3001\u3046\u301c\u3093\u3001\u3042\u3093\u307e\u308a\u611f\u3058\u306a\u3044\u304b\u306a\u3041\u3002(^^;)<br \/>\n\u3057\u3070\u3089\u304f\u69d8\u5b50\u3092\u898b\u3066\u3001\u5927\u4e08\u592b\u305d\u3046\u3060\u3063\u305f\u3089\u4ed6\u306eVPS\u306ePHP\u3082\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3057\u3088\u3046\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3046\u3061\u306eVPS\u306ePHP\u30d0\u30fc\u30b8\u30e7\u30f3\u3001\u57fa\u672c\u7684\u306b\u306f5.6.x\u3067\u3059\u3002 \u3053\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3001\u65e2\u306b\u30a2\u30af\u30c6\u30a3\u30d6\u30b5\u30dd\u30fc\u30c8\u306f\u7d42\u4e86\u3057\u3066\u304a\u308a\u307e\u3057\u3066\u3001\u73fe\u5728\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b5\u30dd\u30fc\u30c8\u306e\u307f\u3002 \u305d\u3057\u3066\u3001\u305d\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b5\u30dd\u30fc\u30c8\u30822018\u5e74\u672b [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,5],"tags":[],"class_list":["post-6551","post","type-post","status-publish","format-standard","hentry","category-linux","category-programming"],"_links":{"self":[{"href":"https:\/\/ephemeral-arcadia.jp\/passo_wp\/wp-json\/wp\/v2\/posts\/6551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ephemeral-arcadia.jp\/passo_wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ephemeral-arcadia.jp\/passo_wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ephemeral-arcadia.jp\/passo_wp\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ephemeral-arcadia.jp\/passo_wp\/wp-json\/wp\/v2\/comments?post=6551"}],"version-history":[{"count":3,"href":"https:\/\/ephemeral-arcadia.jp\/passo_wp\/wp-json\/wp\/v2\/posts\/6551\/revisions"}],"predecessor-version":[{"id":6554,"href":"https:\/\/ephemeral-arcadia.jp\/passo_wp\/wp-json\/wp\/v2\/posts\/6551\/revisions\/6554"}],"wp:attachment":[{"href":"https:\/\/ephemeral-arcadia.jp\/passo_wp\/wp-json\/wp\/v2\/media?parent=6551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ephemeral-arcadia.jp\/passo_wp\/wp-json\/wp\/v2\/categories?post=6551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ephemeral-arcadia.jp\/passo_wp\/wp-json\/wp\/v2\/tags?post=6551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}