{"id":6963,"date":"2023-01-20T10:01:21","date_gmt":"2023-01-20T01:01:21","guid":{"rendered":"https:\/\/east19-mikas.com\/?p=6963"},"modified":"2024-08-01T10:40:10","modified_gmt":"2024-08-01T01:40:10","slug":"php%e3%81%ae%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:\/\/east19-mikas.com\/mpat\/?p=6963","title":{"rendered":"PHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7"},"content":{"rendered":"\n<p>\u4eca\u307e\u3067\u3001\u5f53\u30b5\u30a4\u30c8\u306fOS\u5c0e\u5165\u6642\u306fPHP7.3\u3067\u52d5\u4f5c\u3055\u305b\u3066\u3044\u307e\u3057\u305f\u304c\u3001WordPress\u304b\u30897.4\u3078\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3092\u63a8\u5968\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002\u4eca\u56de\u3001PHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3092\u884c\u3063\u305f\u6642\u306e\u624b\u9806\u3092\u8a18\u9332\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u306a\u304a\u3001\u53c2\u8003\u306b\u3057\u305f\u30b5\u30a4\u30c8\u306f\u3001\uff11\uff09Remi&#8217;s RPM repository-Blog(https:\/\/blog.remirepo.net\/post\/2019\/12\/03\/Install-PHP-7.4-on-CentOS-RHEL-or-Fedora)\u3001\uff12\uff09IT Learning(https:\/\/obenkyolab.com\/?p=1987)\u3000\u3055\u3093\u3092\u53c2\u8003\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u74b0\u3000\u5883<\/h2>\n\n\n\n<p>OS\u306e\u30d0\u30fc\u30b8\u30e7\u30f3<\/p>\n\n\n\n<p class=\"has-background\" style=\"background-color:#3f3f3f\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-5-color\">#<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffff00\" class=\"has-inline-color\"> cat \/etc\/redhat-release<\/mark><br><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-5-color\">CentOS Linux release 7.6.1810 (Core)<\/mark><\/p>\n\n\n\n<p>PHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f3<\/p>\n\n\n\n<p class=\"has-background\" style=\"background-color:#3f3f3f\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-5-color\">#<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffff00\" class=\"has-inline-color\"> php -v<\/mark><br><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-5-color\">PHP 7.3.1<\/mark><\/p>\n\n\n\n<p>epel\u306e\u5b58\u5728\u78ba\u8a8d<\/p>\n\n\n\n<p class=\"has-background\" style=\"background-color:#3f3f3f\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-5-color\">#<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffff00\" class=\"has-inline-color\"> rpm -qa | grep epel<\/mark><br><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-5-color\">epel-release-7-11.noarch<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">remi\u30ea\u30dd\u30b8\u30c8\u30ea\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n<p class=\"has-background\" style=\"background-color:#3f3f3f\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-5-color\">#<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffff00\" class=\"has-inline-color\"> rpm -Uvh http:\/\/rpms.famillecollet.com\/enterprise\/remi-release-7.rpm<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">PHP74\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u6709\u52b9\u5316<\/h2>\n\n\n\n<p class=\"has-background\" style=\"background-color:#3f3f3f\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-5-color\">#<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffff00\" class=\"has-inline-color\"> yum install yum-utils<br><\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-5-color\">#<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffff00\" class=\"has-inline-color\"> yum-config-manager &#8211;enable remi-php74<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">PHP\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/h2>\n\n\n\n<p class=\"has-background\" style=\"background-color:#3f3f3f\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-5-color\">#<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffff00\" class=\"has-inline-color\"> yum update php<\/mark><br><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-5-color\">=\u9014\u4e2d\u7701\u7565=<br>\u4f9d\u5b58\u6027\u3092\u89e3\u6c7a\u3057\u307e\u3057\u305f<br><br>================================================================================<br> Package                \u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u30fc<br>                                  \u30d0\u30fc\u30b8\u30e7\u30f3                \u30ea\u30dd\u30b8\u30c8\u30ea\u30fc   \u5bb9\u91cf<br>================================================================================<br>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e2d:<br> gd3php                 x86_64    2.3.3-7.el7.remi          remi          138 k<br>     gd-last.x86_64 2.2.5-8.el7.remi \u3092\u5165\u308c\u66ff\u3048\u307e\u3059<br> oniguruma5php          x86_64    6.9.8-1.el7.remi          remi          207 k<br>     oniguruma5.x86_64 6.9.2-1.el7.remi \u3092\u5165\u308c\u66ff\u3048\u307e\u3059<br>\u66f4\u65b0\u3057\u307e\u3059:<br> php                    x86_64    7.4.33-2.el7.remi         remi-php74    3.4 M<br>\u4f9d\u5b58\u6027\u95a2\u9023\u3067\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3057\u307e\u3059:<br> ImageMagick6-libs      x86_64    6.9.12.72-1.el7.remi      remi          2.4 M<br> libsodium              x86_64    1.0.18-1.el7.remi         remi          148 k<br> libzstd                x86_64    1.5.2-1.el7               epel          282 k<br> open-sans-fonts        noarch    1.10-1.el7                base          475 k<br> php-sodium             x86_64    7.4.33-2.el7.remi         remi-php74     86 k<br>\u4f9d\u5b58\u6027\u95a2\u9023\u3067\u306e\u66f4\u65b0\u3092\u3057\u307e\u3059:<br> libzip5                x86_64    1.9.2-3.el7.remi          remi           65 k<br> php-cli                x86_64    7.4.33-2.el7.remi         remi-php74    5.2 M<br> php-common             x86_64    7.4.33-2.el7.remi         remi-php74    1.2 M<br> php-devel              x86_64    7.4.33-2.el7.remi         remi-php74    1.2 M<br> php-fpm                x86_64    7.4.33-2.el7.remi         remi-php74    1.8 M<br> php-gd                 x86_64    7.4.33-2.el7.remi         remi-php74     90 k<br> php-json               x86_64    7.4.33-2.el7.remi         remi-php74     74 k<br> php-mbstring           x86_64    7.4.33-2.el7.remi         remi-php74    526 k<br> php-mysqlnd            x86_64    7.4.33-2.el7.remi         remi-php74    256 k<br> php-opcache            x86_64    7.4.33-2.el7.remi         remi-php74    333 k<br> php-pdo                x86_64    7.4.33-2.el7.remi         remi-php74    140 k<br> php-pecl-apcu          x86_64    5.1.22-1.el7.remi.7.4     remi-php74     75 k<br> php-pecl-apcu-devel    x86_64    5.1.22-1.el7.remi.7.4     remi-php74     50 k<br> php-pecl-imagick       x86_64    3.4.4-17.el7.remi.7.4     remi-php74    181 k<br> php-pecl-zip           x86_64    1.21.1-1.el7.remi.7.4     remi-php74     64 k<br> php-process            x86_64    7.4.33-2.el7.remi         remi-php74     93 k<br> php-xml                x86_64    7.4.33-2.el7.remi         remi-php74    210 k<br>=\u9014\u4e2d\u7701\u7565=<br>\u7dcf\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u5bb9\u91cf: 19 M<br>Is this ok [y\/d\/N]: y<br>Downloading packages:<br>Delta RPMs disabled because \/usr\/bin\/applydeltarpm not installed.<br>(1\/25): gd3php-2.3.3-7.el7.remi.x86_64.rpm                 | 138 kB   00:00     <br>(2\/25): libsodium-1.0.18-1.el7.remi.x86_64.rpm             | 148 kB   00:00     <br>(3\/25): libzip5-1.9.2-3.el7.remi.x86_64.rpm                |  65 kB   00:00     <br>(4\/25): oniguruma5php-6.9.8-1.el7.remi.x86_64.rpm          | 207 kB   00:00     <br>(5\/25): ImageMagick6-libs-6.9.12.72-1.el7.remi.x86_64.rpm  | 2.4 MB   00:00     <br>(6\/25): open-sans-fonts-1.10-1.el7.noarch.rpm              | 475 kB   00:00     <br>(7\/25): libzstd-1.5.2-1.el7.x86_64.rpm                     | 282 kB   00:00     <br>(8\/25): php-7.4.33-2.el7.remi.x86_64.rpm                   | 3.4 MB   00:00     <br>(9\/25): php-common-7.4.33-2.el7.remi.x86_64.rpm            | 1.2 MB   00:00     <br>(10\/25): php-cli-7.4.33-2.el7.remi.x86_64.rpm              | 5.2 MB   00:01     <br>(11\/25): php-devel-7.4.33-2.el7.remi.x86_64.rpm            | 1.2 MB   00:00     <br>(12\/25): php-gd-7.4.33-2.el7.remi.x86_64.rpm               |  90 kB   00:00     <br>(13\/25): php-json-7.4.33-2.el7.remi.x86_64.rpm             |  74 kB   00:00     <br>(14\/25): php-fpm-7.4.33-2.el7.remi.x86_64.rpm              | 1.8 MB   00:00     <br>(15\/25): php-mbstring-7.4.33-2.el7.remi.x86_64.rpm         | 526 kB   00:00     <br>(16\/25): php-opcache-7.4.33-2.el7.remi.x86_64.rpm          | 333 kB   00:00     <br>(17\/25): php-mysqlnd-7.4.33-2.el7.remi.x86_64.rpm          | 256 kB   00:00     <br>(18\/25): php-pdo-7.4.33-2.el7.remi.x86_64.rpm              | 140 kB   00:00     <br>(19\/25): php-pecl-apcu-5.1.22-1.el7.remi.7.4.x86_64.rpm    |  75 kB   00:00     <br>(20\/25): php-pecl-apcu-devel-5.1.22-1.el7.remi.7.4.x86_64. |  50 kB   00:00     <br>(21\/25): php-pecl-imagick-3.4.4-17.el7.remi.7.4.x86_64.rpm | 181 kB   00:00     <br>(22\/25): php-process-7.4.33-2.el7.remi.x86_64.rpm          |  93 kB   00:00     <br>(23\/25): php-sodium-7.4.33-2.el7.remi.x86_64.rpm           |  86 kB   00:00     <br>(24\/25): php-xml-7.4.33-2.el7.remi.x86_64.rpm              | 210 kB   00:00     <br>(25\/25): php-pecl-zip-1.21.1-1.el7.remi.7.4.x86_64.rpm     |  64 kB   00:00     <br>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br>\u5408\u8a08                                               7.6 MB\/s |  19 MB  00:02   <br>=\u9014\u4e2d\u7701\u7565=<br>\u5b8c\u4e86\u3057\u307e\u3057\u305f!<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5ff5\u306e\u70baHTTPD\u3092\u518d\u8d77\u52d5<\/h2>\n\n\n\n<p class=\"has-background\" style=\"background-color:#3f3f3f\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-5-color\">#<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffff00\" class=\"has-inline-color\"> systemctl restart httpd<br><\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-5-color\"># <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffff00\" class=\"has-inline-color\">systemctl status httpd<\/mark><br><mark style=\"background-color:rgba(0, 0, 0, 0);color:#00ff00\" class=\"has-inline-color\">\u25cf<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ex-a-color\"> <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-5-color\">httpd.service &#8211; The Apache HTTP Server<br>   Loaded: loaded (\/etc\/systemd\/system\/httpd.service; enabled; vendor preset: disabled)<br>   Active:<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ex-a-color\"> <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#00ff00\" class=\"has-inline-color\">active (running)<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ex-a-color\"> <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-5-color\">since \u6728 2023-01-19 18:40:12 JST; 15h ago<br>  Process: 29580 ExecStop=\/usr\/local\/apache2\/bin\/apachectl stop (code=exited, status=0\/SUCCESS)<br>=\u7701\u7565=<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">PHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d<\/h2>\n\n\n\n<p class=\"has-background\" style=\"background-color:#3f3f3f\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-5-color\">#<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffff00\" class=\"has-inline-color\"> php -v<\/mark><br><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-5-color\">PHP 7.4.33 (cli) (built: Dec 19 2022 13:32:43) ( NTS )<br>Copyright (c) The PHP Group<br>Zend Engine v3.4.0, Copyright (c) Zend Technologies<br>    with Zend OPcache v7.4.33, Copyright (c), by Zend Technologies<\/mark><\/p>\n\n\n\n<p>\u4ee5\u4e0a\u3067PHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092PHP7.3\u304b\u3089PHP7.4\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u51fa\u6765\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u307e\u3067\u3001\u5f53\u30b5\u30a4\u30c8\u306fOS\u5c0e\u5165\u6642\u306fPHP7.3\u3067\u52d5\u4f5c\u3055\u305b\u3066\u3044\u307e\u3057\u305f\u304c\u3001WordPress\u304b\u30897.4\u3078\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3092\u63a8\u5968\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002\u4eca\u56de\u3001PHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3092\u884c\u3063\u305f\u6642\u306e\u624b\u9806\u3092\u8a18\u9332\u3057\u307e\u3057\u305f\u3002 \u306a\u304a\u3001\u53c2\u8003\u306b\u3057\u305f\u30b5\u30a4\u30c8 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":7886,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[9],"tags":[],"class_list":["post-6963","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/posts\/6963","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6963"}],"version-history":[{"count":2,"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/posts\/6963\/revisions"}],"predecessor-version":[{"id":8053,"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/posts\/6963\/revisions\/8053"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/media\/7886"}],"wp:attachment":[{"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6963"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6963"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}