{"id":5171,"date":"2020-11-15T03:39:01","date_gmt":"2020-11-14T18:39:01","guid":{"rendered":"https:\/\/kumapress.com\/?p=5171"},"modified":"2022-01-19T23:08:56","modified_gmt":"2022-01-19T14:08:56","slug":"virtualmin%e3%81%a7php7-4%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/kumapress.com\/?p=5171","title":{"rendered":"Virtualmin\u3067PHP7.4\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b"},"content":{"rendered":"\n<p><span style=\"font-size: 14pt;\">\u4eca\u56de\u3001Vitrualmin\u306bPHP7.4\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u57fa\u672c\u7684\u306a\u624b\u9806\u306fVirtualmin\u306e\u30aa\u30d5\u30a3\u30b7\u30e3\u30eb\u30b5\u30a4\u30c8\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u3068\u304a\u308a\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"><a href=\"https:\/\/www.virtualmin.com\/documentation\/web\/multiplephp\" target=\"_blank\" rel=\"noopener noreferrer\">\u300c\u8907\u6570\u306ePHP\u30d0\u30fc\u30b8\u30e7\u30f3\u300d<\/a><\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u3053\u306e\u901a\u308a\u306b\u3084\u3063\u305f\u3093\u3067\u3059\u304c\u3001\u6848\u306e\u5b9a\u3001\u306f\u3081\u3089\u308c\u307e\u3057\u305forz<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u305d\u306e\u985b\u672b\u3092ww<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u624b\u9806\u306f\u3001\u300cCentOS7\u3078\u306ePHP7.4\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u300d\u306b\u5f93\u3063\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<h2>PHP7.4\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p><span style=\"font-size: 14pt;\">\u30fb\u30ea\u30dd\u30b8\u30c8\u30ea\u8a2d\u5b9a<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"># yum -y install http:\/\/rpms.remirepo.net\/enterprise\/remi-release-7.rpm &amp;&amp; yum clean all<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u30fbPHP7.4\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"># yum install php74 php74-php-pdo php74-php-fpm php74-php-zip php74-php-gd php74-php-xml php74-php-mysqlnd php74-php-mbstring<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"># \/bin\/php74 -v<\/span><br \/><span style=\"font-size: 14pt;\">PHP 7.4.12 (cli) (built: Oct 27 2020 15:01:52) ( NTS )<\/span><br \/><span style=\"font-size: 14pt;\">Copyright (c) The PHP Group<\/span><br \/><span style=\"font-size: 14pt;\">Zend Engine v3.4.0, Copyright (c) Zend Technologies<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u3068\u306a\u308a\u307e\u3057\u305f\u3002<\/span><\/p>\n<h3><span style=\"font-size: 14pt;\">\u30cf\u30e1\u3089\u308c\u305f\u30fb\u30fb\u30cf\u30de\u3063\u305f\uff1f\u30dd\u30a4\u30f3\u30c8\u3000\u305d\u306e\uff11<\/span><\/h3>\n<p><span style=\"font-size: 14pt;\">\u3053\u306e\u74b0\u5883\u3001PHP5.6\u3092scl\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3057\u3066\u3044\u305f\u3093\u3067\u3059\u304c\u3001\u73fe\u5728&#8221;rhscl-rh-php56-epel-7-x86_64.repo&#8221;\u304c\u524a\u9664\u3092\u3055\u308c\u3066\u3057\u307e\u3063\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u306a\u3093\u3067\u306a\u3093\u3067\u3057\u3087\u3046\u304b\u306d\u3047\u3002\u3002\u3002\uff1f\uff1f<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u305d\u306e\u305f\u3081\u3001\u3053\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u3042\u308a\u307e\u305b\u3093\uff01\u3063\u3066\u3053\u3068\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u3067\u304d\u306a\u304b\u3063\u305f\u3067\u3059\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u5bfe\u7b56\u3068\u3057\u3066\u306f\u3001\u3053\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u7121\u52b9\u306b\u3057\u3061\u3083\u3046\uff01<\/span><\/p>\n<p><span style=\"font-weight: 400; font-size: 14pt;\"># yum-config-manager &#8211;disable rhscl-rh-php56-epel-7-x86_64<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u30c3\u30c6\u3059\u308b\u306e\u3082\u3088\u3057\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"># vi rhscl-rh-php56-epel-7-x86_64.repo<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u3067\u3001gpgcheck=0\u306b\u3059\u308b\u3060\u3051\u3067\u3082\u3088\u3057\uff01<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u3053\u306e\u72b6\u614b\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/span><\/p>\n<h3><span style=\"font-size: 14pt;\">\u30cf\u30e1\u3089\u308c\u305f\u30fb\u30fb\u30cf\u30de\u3063\u305f\uff1f\u30dd\u30a4\u30f3\u30c8\u3000\u305d\u306e\uff12<\/span><\/h3>\n<p><span style=\"font-size: 14pt;\">\u53c2\u8003\u30da\u30fc\u30b8\u306b\u306f\u3001php74-php-mbstring\u304c\u66f8\u304b\u308c\u3066\u3044\u307e\u305b\u3093\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u305d\u308c\u3067\u3001\u6700\u521d\u306fphp74-php-mbstring\u3092\u629c\u3044\u305f\u72b6\u614b\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3057\u3066\u3001PHP7.4\u306bVitrualmin\u306e\u30b5\u30fc\u30d0\u30fc\u69cb\u6210\u3067\u5207\u308a\u66ff\u3048\u3066\u3001\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u30b5\u30a4\u30c8\u3092\u8868\u793a\u3055\u305b\u308b\u3068\u3002\u3002\u3002\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u30d8\u30c3\u30c0\u30fc\u753b\u50cf\u306f\u8868\u793a\u3057\u305f\u306e\u3067\u3059\u304c\u3001\u305d\u3053\u304b\u3089\u4e0b\u306e\u753b\u9762\u304c\u771f\u3063\u767d\uff01<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u7ba1\u7406\u753b\u9762\u306b\u5165\u3063\u3066\u3001\u30c4\u30fc\u30eb\u2192\u30b5\u30a4\u30c8\u30d8\u30eb\u30b9\u3092\u307f\u308b\u3068\u3001mbstring\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u3063\u3066\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u3044\u307e\u3057\u305f\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"># yum install php74-php-mbstring<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u7d42\u308f\u3063\u3066\u304b\u3089\u3001\u518d\u5ea6\u30b5\u30a4\u30c8\u30d8\u30eb\u30b9\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3068\u3002\u3002\u3002\u3084\u3063\u3071\u308a\u540c\u3058\u3002\u3002\u3002\uff1f<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u4ed5\u65b9\u306a\u3044\u306e\u3067\u3001Apache\u3092\u518d\u8d77\u52d5\u3057\u3066\u3001\u518d\u5ea6\u30b5\u30a4\u30c8\u30d8\u30eb\u30b9\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3068\u30a8\u30e9\u30fc\u304c\u6d88\u3048\u3066\u3044\u307e\u3057\u305f\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u3053\u306e\u72b6\u614b\u3067\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u30b5\u30a4\u30c8\u3092\u8868\u793a\u3059\u308b\u3068\u3001\u6b63\u5e38\u306b\u8868\u793a\u3092\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u3053\u3053\u3067\u306f\u3001\u307b\u3093\u3068\u306bphp74-php-mbstring\u304c\u306a\u304b\u3063\u305f\u304b\u3089\u8868\u793a\u3055\u308c\u306a\u304b\u3063\u305f\u306e\u304b\u3001PHP7.4\u304c\u307e\u3060\u6b63\u5e38\u306bApache\u306b\u8a8d\u8b58\u3055\u308c\u3066\u3044\u306a\u304f\u3066\u3001Apache\u3092\u518d\u8d77\u52d5\u3057\u305f\u304b\u3089\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u304b\u3001\u3069\u3061\u3089\u304c\u76f4\u63a5\u306e\u5bfe\u5fdc\u7b56\u3060\u3063\u305f\u306e\u304b\u306f\u3001\u4eca\u306b\u306a\u3063\u3066\u306f\u308f\u304b\u3089\u306a\u3044\u3067\u3059\u3002\u3002<\/span><\/p>\n<h3>\u30cf\u30e1\u3089\u308c\u305f\u30fb\u30fb\u30cf\u30de\u3063\u305f\uff1f\u30dd\u30a4\u30f3\u30c8\u3000\u305d\u306e\uff13<\/h3>\n<p>php-fpm\u306e\u8d77\u52d5\u3067\u30dd\u30fc\u30c8\u304c\u91cd\u306a\u3063\u3066\u308b\u3063\u3066\u30a8\u30e9\u30fc\u3068\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p class=\"p1\"># systemctl status php74-php-fpm<br \/>ERROR: unable to bind listening socket for address &#8216;localhost:8009&#8217;: Address already in use (98)<br \/>ERROR: unable to bind listening socket for address &#8216;127.0.0.1:9000&#8217;: Address already in use (98)<br \/>ERROR: FPM initialization failed<\/p>\n<p>php7.2\u306e\u307b\u3046\u306ephp-fpm\u3067\u30dd\u30fc\u30c89000\u304c\u4f7f\u308f\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\u306a\u306e\u3067\u3001php7.4\u306e\u307b\u3046\u306f\u3001\u30dd\u30fc\u30c89002\u3068\u3057\u307e\u3057\u305f\u3002<br \/>\/etc\/opt\/remi\/php74\/php-fpm.d\/www.conf\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002<br \/>listen = 127.0.0.1:9000 \u21d2 listen = 127.0.0.1:9002<\/p>\n<p>php74-fpm\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<br \/># systemctl restart php74-php-fpm<\/p>\n<p>\u3053\u306e\u3042\u3068\u3001Virtualmin\u306e\u5bfe\u8c61\u4eee\u60f3\u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<br \/>\u30fb\u5bfe\u8c61\u4eee\u60f3\u30b5\u30fc\u30d0\u30fc\u306e\u30e1\u30cb\u30e5\u30fc\u3092\u8868\u793a\u3057\u307e\u3059\u3002<br \/>\u30fb\u30b5\u30fc\u30d0\u30fc\u69cb\u6210\u2192PHP\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br \/>\u30fb\u5b9f\u884c\u30e2\u30fc\u30c9\uff1aFPM \/ \u30d0\u30fc\u30b8\u30e7\u30f3\uff1a7.xx\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br \/>\u30fb\u300c\u4fdd\u5b58\u300d\u3057\u307e\u3059\u3002<\/p>\n<h2>\u7d42\u308f\u308a\u306b\u3002\u3002\u3002<\/h2>\n<p>\u3053\u308c\u3067\u7121\u4e8b\u3001PHP7.4\u304c\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u304f\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u6700\u521d\u3001scl\u3067\u306f\u306a\u304fremi\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3063\u3066\u3053\u3068\u3067\u3001\u30db\u30b9\u30c8\u306b\u5f71\u97ff\u3092\u3057\u306a\u3044\u304b\u3068\u30c9\u30ad\u30c9\u30ad\u3060\u3063\u305f\u3093\u3067\u3059\u304c\u3001\u305d\u3053\u306f\u7279\u306b\u5fc3\u914d\u306f\u306a\u304b\u3063\u305f\u3088\u3046\u3067\u3059\u3002<\/p>\n<aside class=\"row veu_insertAds after\"><div class=\"col-md-6\"><script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n<!-- \u7b2c 1 \u9762 - 2\uff08www.kumapress.com\uff09 -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-5987681888830890\"\r\n     data-ad-slot=\"5379270693\"\r\n     data-ad-format=\"auto\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script><\/div><div class=\"col-md-6\"><script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n<!-- \u7b2c 1 \u9762 - 1\uff08www.kumapress.com\uff09 -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-5987681888830890\"\r\n     data-ad-slot=\"7353370294\"\r\n     data-ad-format=\"auto\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script><\/div><\/aside>","protected":false},"excerpt":{"rendered":"<p>\u4eca\u56de\u3001Vitrualmin\u306bPHP7.4\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002 \u57fa\u672c\u7684\u306a\u624b\u9806\u306fVirtualmin\u306e\u30aa\u30d5\u30a3\u30b7\u30e3\u30eb\u30b5\u30a4\u30c8\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u3068\u304a\u308a\u3002 \u300c\u8907\u6570\u306ePHP\u30d0\u30fc\u30b8\u30e7\u30f3\u300d \u3053\u306e\u901a\u308a\u306b\u3084\u3063\u305f\u3093\u3067\u3059\u304c\u3001\u6848\u306e\u5b9a\u3001\u306f\u3081\u3089\u308c\u307e\u3057\u305forz [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5177,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"vkexunit_cta_each_option":"","footnotes":""},"categories":[150,149,126],"tags":[159,177,170,96],"class_list":["post-5171","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vertualmin","category-webmin","category-blog-memo","tag-php7","tag-php7-4","tag-virtualmin","tag-96"],"_links":{"self":[{"href":"https:\/\/kumapress.com\/index.php?rest_route=\/wp\/v2\/posts\/5171","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kumapress.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kumapress.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kumapress.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kumapress.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5171"}],"version-history":[{"count":6,"href":"https:\/\/kumapress.com\/index.php?rest_route=\/wp\/v2\/posts\/5171\/revisions"}],"predecessor-version":[{"id":5412,"href":"https:\/\/kumapress.com\/index.php?rest_route=\/wp\/v2\/posts\/5171\/revisions\/5412"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kumapress.com\/index.php?rest_route=\/wp\/v2\/media\/5177"}],"wp:attachment":[{"href":"https:\/\/kumapress.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kumapress.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5171"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kumapress.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}