{"id":242,"date":"2020-10-05T12:00:41","date_gmt":"2020-10-05T03:00:41","guid":{"rendered":"https:\/\/plusload.net\/?p=242"},"modified":"2020-10-05T12:00:41","modified_gmt":"2020-10-05T03:00:41","slug":"php%e3%82%927-2%e3%81%8b%e3%82%89%e6%9c%80%e6%96%b0%e3%81%ae7-4%e3%81%ab%e3%82%a2%e3%83%83%e3%83%97%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%89%e3%81%99%e3%82%8b%e3%80%82","status":"publish","type":"post","link":"https:\/\/plusload.net\/?p=242","title":{"rendered":"PHP\u30927.2\u304b\u3089\u6700\u65b0\u306e7.4\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b\u3002"},"content":{"rendered":"<p>WP\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306bphp\u306e\u66f4\u65b0\u304c\u5fc5\u8981\u3063\u3066\u51fa\u3066\u3044\u308b\u306e\u3067Ubuntu16.10\u304b\u308918.04\u306bOS\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u305f\u306e\u3067PHP\u30827.4\u306b\u3057\u3066\u307f\u308b\u3002<\/p>\n<p>\u307e\u305a\u306fapt-get update\u3059\u308b\u3002<\/p>\n<pre>root@ubuntu# apt-get update<\/pre>\n<p>\u3067<code>add-apt-repository<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u8ffd\u52a0<\/p>\n<pre>root@ubuntu# apt -y install software-properties-common<\/pre>\n<p>\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0\u3057\u3066\u304b\u3089\u518d\u3073update\u3059\u308b\u3002<\/p>\n<pre>root@ubuntu#<code class=\" language-bash\">add-apt-repository ppa:deadsnakes\/ppa<\/code>\r\n\r\nroot@ubuntu# apt-get update<\/pre>\n<p>\u305d\u3057\u305f\u3089php7.4\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<pre>root@ubuntu# apt install php7.4<\/pre>\n<p>WP\u306a\u306e\u3067mysql\u7528\u306ephp-mysql\u3082\u65b0\u3057\u304f\u66f4\u65b0\u3057\u3066\u304a\u304f<\/p>\n<pre>root@ubuntu# apt install php-fpm php-mysql<\/pre>\n<p>\u305d\u3057\u305f\u3089\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u78ba\u8a8d\u3059\u308b\u3002<\/p>\n<pre>root@ubuntu# ls -l \/run\/php\r\n\r\nphp7.0-fpm.sock\r\nphp7.0-fpm.pid\r\nphp7.4-fpm.sock\r\nphp7.4-fpm.pid<\/pre>\n<p>php7.4-fpm.sock\u304c\u3042\u308b\u306e\u3092\u78ba\u8a8d\u3057\u3066Nginx\u306e\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u66f8\u304d\u63db\u3048\u307e\u3059\u3002<\/p>\n<pre>root@ubuntu# vi \/etc\/nginx\/sites-available\/default\r\n...\r\n#fastcgi_pass unix:\/var\/run\/php\/php7.0-fpm.sock;\r\nfastcgi_pass unix:\/var\/run\/php\/php7.4-fpm.sock;\r\n...<\/pre>\n<p>\u3067\u3001Nginx\u3092\u518d\u8d77\u52d5\u3059\u308b\u3068\u7d42\u308f\u308a\u3067\u3059\u3002<\/p>\n<pre>root@ubuntu# systemctl restart nginx<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>WP\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306bphp\u306e\u66f4\u65b0\u304c\u5fc5\u8981\u3063\u3066\u51fa\u3066\u3044\u308b\u306e\u3067Ubuntu16.10\u304b\u308918.04\u306bOS\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u305f\u306e\u3067PHP\u30827.4\u306b\u3057\u3066\u307f\u308b\u3002 \u307e\u305a\u306fapt-get update\u3059\u308b\u3002 root@ubuntu# ap&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-242","post","type-post","status-publish","format-standard","hentry","category-ghostscan"],"_links":{"self":[{"href":"https:\/\/plusload.net\/index.php?rest_route=\/wp\/v2\/posts\/242","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/plusload.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/plusload.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/plusload.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/plusload.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=242"}],"version-history":[{"count":2,"href":"https:\/\/plusload.net\/index.php?rest_route=\/wp\/v2\/posts\/242\/revisions"}],"predecessor-version":[{"id":244,"href":"https:\/\/plusload.net\/index.php?rest_route=\/wp\/v2\/posts\/242\/revisions\/244"}],"wp:attachment":[{"href":"https:\/\/plusload.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plusload.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plusload.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}