{"id":1987,"date":"2020-08-25T23:28:26","date_gmt":"2020-08-25T14:28:26","guid":{"rendered":"https:\/\/obenkyolab.com\/?p=1987"},"modified":"2020-08-25T23:28:26","modified_gmt":"2020-08-25T14:28:26","slug":"%e3%80%90centos7%e3%80%91yum%e3%81%a7php7-4%e3%81%b8%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%82%a2%e3%83%83%e3%83%97","status":"publish","type":"post","link":"https:\/\/obenkyolab.com\/?p=1987","title":{"rendered":"\u3010CentOS7\u3011yum\u3067PHP7.4\u3078\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7"},"content":{"rendered":"\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_80 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/obenkyolab.com\/?p=1987\/#%E7%9B%AE%E7%9A%84\" >\u76ee\u7684<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/obenkyolab.com\/?p=1987\/#%E7%92%B0%E5%A2%83\" >\u74b0\u5883<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/obenkyolab.com\/?p=1987\/#%E6%89%8B%E9%A0%86\" >\u624b\u9806<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/obenkyolab.com\/?p=1987\/#epel%E3%81%AE%E5%AD%98%E5%9C%A8%E7%A2%BA%E8%AA%8D\" >epel\u306e\u5b58\u5728\u78ba\u8a8d<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/obenkyolab.com\/?p=1987\/#remi%E3%83%AA%E3%83%9D%E3%82%B8%E3%83%88%E3%83%AA%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\" >remi\u30ea\u30dd\u30b8\u30c8\u30ea\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/obenkyolab.com\/?p=1987\/#PHP%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3%E7%A2%BA%E8%AA%8D\" >PHP\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/obenkyolab.com\/?p=1987\/#PHP74%E3%83%AA%E3%83%9D%E3%82%B8%E3%83%88%E3%83%AA%E3%82%92%E6%9C%89%E5%8A%B9%E5%8C%96\" >PHP74\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u6709\u52b9\u5316<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/obenkyolab.com\/?p=1987\/#%E3%82%A2%E3%83%83%E3%83%97%E3%83%87%E3%83%BC%E3%83%88\" >\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/obenkyolab.com\/?p=1987\/#%E6%9B%B4%E6%96%B0%E5%BE%8C%E3%81%AE%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3%E7%A2%BA%E8%AA%8D\" >\u66f4\u65b0\u5f8c\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%9B%AE%E7%9A%84\"><\/span>\u76ee\u7684<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>CentOS7\u3067PHP\u3092\u66f4\u65b0\u3059\u308b\u624b\u9806\u306b\u3064\u3044\u3066\u30e1\u30e2\u3059\u308b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%92%B0%E5%A2%83\"><\/span>\u74b0\u5883<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>PHP 7.1.24\uff08\u66f4\u65b0\u524d\uff09\u2192 PHP 7.4.9<br>CentOS 7.8.2003<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%89%8B%E9%A0%86\"><\/span>\u624b\u9806<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"epel%E3%81%AE%E5%AD%98%E5%9C%A8%E7%A2%BA%E8%AA%8D\"><\/span>epel\u306e\u5b58\u5728\u78ba\u8a8d<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n$ rpm -qa | grep epel\n\n-------\nepel-release-7-11.noarch \n<\/pre><\/div>\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"remi%E3%83%AA%E3%83%9D%E3%82%B8%E3%83%88%E3%83%AA%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\"><\/span>remi\u30ea\u30dd\u30b8\u30c8\u30ea\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n$ sudo rpm -Uvh http:\/\/rpms.famillecollet.com\/enterprise\/remi-release-7.rpm\n<\/pre><\/div>\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"PHP%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3%E7%A2%BA%E8%AA%8D\"><\/span>PHP\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n$ php -v\n\n-------\nPHP 7.1.24 (clie)....\n<\/pre><\/div>\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"PHP74%E3%83%AA%E3%83%9D%E3%82%B8%E3%83%88%E3%83%AA%E3%82%92%E6%9C%89%E5%8A%B9%E5%8C%96\"><\/span>PHP74\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u6709\u52b9\u5316<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$ yum install yum-utils\n$ yum-config-manager --enable remi-php74\n<\/pre><\/div>\n\n\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u6700\u65b0\u306ephp\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u6709\u52b9\u5316\u3055\u308c\u3066\u3044\u306a\u3044\u3089\u3057\u3044\u306e\u3067\u4e0a\u8a18\u3092\u3084\u308b\u5fc5\u8981\u304c\u3042\u308b\u307f\u305f\u3044\u3002<\/p>\n\n\n\n<p>\u53c2\u8003\u30b5\u30a4\u30c8<\/p>\n\n\n\n<p><a href=\"https:\/\/blog.remirepo.net\/post\/2019\/12\/03\/Install-PHP-7.4-on-CentOS-RHEL-or-Fedora\">https:\/\/blog.remirepo.net\/post\/2019\/12\/03\/Install-PHP-7.4-on-CentOS-RHEL-or-Fedora<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E3%82%A2%E3%83%83%E3%83%97%E3%83%87%E3%83%BC%E3%83%88\"><\/span>\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n$ sudo yum update php\n\n------\nReplaced:\nphp-recode.x86_64 0:7.1.24-e17.remi\n<\/pre><\/div>\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%9B%B4%E6%96%B0%E5%BE%8C%E3%81%AE%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3%E7%A2%BA%E8%AA%8D\"><\/span>\u66f4\u65b0\u5f8c\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n$ php-v\n\n-----\nPHP 7.4.9 (cli)...\n<\/pre><\/div>\n\n\n<p><\/p>\n\n\n\n<p>\u66f4\u65b0\u3059\u308b\u306e\u6016\u304b\u3063\u305f\u3067\u3059\u304c\u3001\u306a\u3093\u3068\u304b\u3067\u304d\u305f\u307f\u305f\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u7684 CentOS7\u3067PHP\u3092\u66f4\u65b0\u3059\u308b\u624b\u9806\u306b\u3064\u3044\u3066\u30e1\u30e2\u3059\u308b\u3002 \u74b0\u5883 &#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":1779,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"https:\/\/obenkyolab.com\/?p=1987","footnotes":""},"categories":[48],"tags":[],"class_list":["post-1987","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","ja"],"_links":{"self":[{"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/posts\/1987","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1987"}],"version-history":[{"count":3,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/posts\/1987\/revisions"}],"predecessor-version":[{"id":1990,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/posts\/1987\/revisions\/1990"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/media\/1779"}],"wp:attachment":[{"href":"https:\/\/obenkyolab.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1987"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1987"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1987"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}