{"id":17298,"date":"2024-04-18T21:46:16","date_gmt":"2024-04-18T12:46:16","guid":{"rendered":"https:\/\/www.bigriver.jp\/?p=17298"},"modified":"2024-04-19T09:45:52","modified_gmt":"2024-04-19T00:45:52","slug":"wordpress-%e7%92%b0%e5%a2%83%e3%81%ae-php-7-4-%e3%82%92-php-8-3-%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%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.bigriver.jp\/?p=17298","title":{"rendered":"WordPress \u74b0\u5883\u306e PHP 7.4 \u3092 PHP 8.3 \u3078\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3059\u308b"},"content":{"rendered":"\n<p>\u3053\u306e\u30d6\u30ed\u30b0\u306f Alibaba Cloud \u306e Elstic Compute Service \u306e Linux \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u4e0a\u306b WordPress \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u3066\u3044\u307e\u3059\u3002\u3000\u3053\u3053\u6570\u65e5\u3053\u306e\u74b0\u5883\u306e\u6700\u65b0\u5316\uff08OS \u3084 MySQL \u306a\u3069\uff09\u3092\u9032\u3081\u3066\u304a\u308a\u4eca\u56de\u306f PHP \u306e\u8a71\u3067\u3059\u3002 \u3000\u6b21\u56de\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u6642\u306b\u540c\u3058\u3053\u3068\u3067\u56f0\u3089\u306a\u3044\u3088\u3046\u4f5c\u696d\u8a18\u9332\u3092\u6b8b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u76ee\u6b21<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69f3f1b9b3e8e\" class=\"ez-toc-cssicon-toggle-label\"><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><\/label><input type=\"checkbox\" style='display:none' id=\"ez-toc-cssicon-toggle-item-69f3f1b9b3e8e\"  aria-label=\"Toggle\" \/><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:\/\/www.bigriver.jp\/?p=17298\/#%E3%82%BD%E3%83%95%E3%83%88%E3%82%A6%E3%82%A7%E3%82%A2%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3%E3%81%AE_Before_After\" >\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30d0\u30fc\u30b8\u30e7\u30f3\u306e Before \/ After<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.bigriver.jp\/?p=17298\/#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%E6%99%82%E3%81%AB%E8%B5%B7%E3%81%8D%E3%81%9F%E5%95%8F%E9%A1%8C%E3%81%A8%E5%8E%9F%E5%9B%A0\" >PHP \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u6642\u306b\u8d77\u304d\u305f\u554f\u984c\u3068\u539f\u56e0<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.bigriver.jp\/?p=17298\/#php_74_%E3%81%8B%E3%82%89_php83%E3%81%B8%E3%81%AE%E5%88%87%E3%82%8A%E6%9B%BF%E3%81%88%E6%89%8B%E9%A0%86\" >php 7.4 \u304b\u3089 php8.3\u3078\u306e\u5207\u308a\u66ff\u3048\u624b\u9806<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-sgb-headings sgb-heading\" id=\"i-0\"><span class=\"ez-toc-section\" id=\"%E3%82%BD%E3%83%95%E3%83%88%E3%82%A6%E3%82%A7%E3%82%A2%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3%E3%81%AE_Before_After\"><\/span><span class=\"sgb-heading__inner sgb-heading--type2\" style=\"background-color:#d07119;border-color:transparent;font-size:1.2em\"><span class=\"sgb-heading__text\" style=\"color:#FFF\">\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30d0\u30fc\u30b8\u30e7\u30f3\u306e Before \/ After<\/span><\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u4eca\u56de\u3001OS \u3068 MySQL\u3001\u305d\u3057\u3066 PHP \u3068\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u4f5c\u696d\u3092\u884c\u3044\u307e\u3057\u305f\u3002\u3000OS \u306f 18.04 \u304b\u3089 20.04 \u3078\u3001PHP \u306f 7.4 \u7cfb\u304b\u3089 8.3 \u7cfb\u3078\u3068\u30e1\u30b8\u30e3\u30fc\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3092\u884c\u3044\u307e\u3057\u305f\u3002\u3000\u305d\u306e\u7d50\u679c\u3001OS \u3068 PHP \u306b\u3064\u3044\u3066 EOL\uff08Security Patch \u304c\u6a19\u6e96\u3067\u306f\u63d0\u4f9b\u3055\u308c\u306a\u3044\uff09 \u3092\u8fce\u3048\u3066\u3044\u308b\u3088\u308d\u3057\u304f\u306a\u3044\u72b6\u6cc1\u3092\u89e3\u6d88\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n<div id=\"id-b42ab238-5778-44f0-8d0e-fcd520f4336b\">\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th class=\"has-text-align-center\" data-align=\"center\">\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2<\/th><th class=\"has-text-align-center\" data-align=\"center\">Before<\/th><th class=\"has-text-align-center\" data-align=\"center\">After<\/th><th>\u5099\u8003<\/th><\/tr><\/thead><tbody><tr><td class=\"has-text-align-center\" data-align=\"center\">Linux OS <br>(Ubuntu)<\/td><td class=\"has-text-align-center\" data-align=\"center\">18.04<\/td><td class=\"has-text-align-center\" data-align=\"center\">20.04<\/td><td><a href=\"https:\/\/www.bigriver.jp\/?p=17268\">\u4f5c\u696d\u8a18\u9332<\/a><\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">Apache<\/td><td class=\"has-text-align-center\" data-align=\"center\">2.4.29<\/td><td class=\"has-text-align-center\" data-align=\"center\">2.4.41<\/td><td>Ubuntu \u306e\u6a19\u6e96PKG<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">MySQL<br>\u203bApsaraDB for RDS<\/td><td class=\"has-text-align-center\" data-align=\"center\">rds_20221231<\/td><td class=\"has-text-align-center\" data-align=\"center\">rds_20240131<\/td><td><a href=\"https:\/\/www.bigriver.jp\/?p=17260\">\u4f5c\u696d\u8a18\u9332<\/a><\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">PHP<\/td><td class=\"has-text-align-center\" data-align=\"center\">7.4.33<\/td><td class=\"has-text-align-center\" data-align=\"center\">8.3.6<\/td><td>\u672c\u8a18\u4e8b<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">WordPress<\/td><td class=\"has-text-align-center\" data-align=\"center\">6.5.2<\/td><td class=\"has-text-align-center\" data-align=\"center\">6.5.2<\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n<\/div>\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-sgb-headings sgb-heading\" id=\"i-1\"><span class=\"ez-toc-section\" id=\"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%E6%99%82%E3%81%AB%E8%B5%B7%E3%81%8D%E3%81%9F%E5%95%8F%E9%A1%8C%E3%81%A8%E5%8E%9F%E5%9B%A0\"><\/span><span class=\"sgb-heading__inner sgb-heading--type2\" style=\"background-color:#d07119;border-color:transparent;font-size:1.2em\"><span class=\"sgb-heading__text\" style=\"color:#FFF\">PHP \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u6642\u306b\u8d77\u304d\u305f\u554f\u984c\u3068\u539f\u56e0<\/span><\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>PHP \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u4f5c\u696d\u306f\u3059\u3093\u306a\u308a\u3044\u304b\u305a\u8a66\u884c\u932f\u8aa4\u3057\u3066\u3084\u3063\u3068\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u89e3\u6c7a\u307e\u30672\u6642\u9593\u4f4d\u304b\u304b\u3063\u305f\u6c17\u304c\u3057\u307e\u3059\u3002\u3002\u3002\u3000\u767a\u751f\u3057\u305f\u554f\u984c\u306f\u5927\u304d\u304f2\u3064\u3067\u3059\u3002<\/p>\n\n\n<div style=\"--sgb-list-icon-color: #ffb36b;--sgb-list-border-color: none;\">\n<ul class=\"is-style-sango-list-circle wp-block-list\">\n<li>\uff08\u8868\u9762\u7684\u306a\u554f\u984c\uff09php8.3\u306b\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u5f8c\u3001Wordpress\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u201d502 Bad Gateway\u201d\u306e\u30a8\u30e9\u30fc<\/li>\n\n\n\n<li>\uff08\u6839\u672c\u7684\u306a\u554f\u984c\uff09php8.3\u304b\u3089MySQL (Alibaba Cloud \u306e ApsaraDB for RDS)\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044<\/li>\n<\/ul>\n<\/div>\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>1\u3064\u76ee\u306e\u554f\u984c\u306f php 7.4 \u304b\u3089 php 8.3 \u306b\u5207\u308a\u66ff\u3048\u308b\u3068 \u201c502 Bad Gateway\u201d \u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u72b6\u6cc1\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u7d50\u679c\u304c\u308f\u304b\u3063\u305f\u304b\u3089\u4eca\u306b\u306a\u3063\u3066\u8a00\u3048\u3070 \u201c502 Bad Gateway\u201d \u306f\u79c1\u56fa\u6709\u306e Alibaba Cloud \u306e\u74b0\u5883\u306b\u8d77\u56e0\u3059\u308b\u3082\u306e\u3067\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u304c\u8907\u96d1\u306b\u306a\u3063\u305f\u4e00\u756a\u306e\u8981\u56e0\u3067\u3057\u305f\u3002\u3000\u5177\u4f53\u7684\u306b\u306f ECS \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u524d\u6bb5\u306b Alibaba Cloud \u306e Server Load Balancer \u3092\u914d\u7f6e\u3057\u3066\u3044\u307e\u3059\u3002\u3000Server Load Balancer \u304b\u3089\u898b\u3066Web\u30b5\u30a4\u30c8\u304c\u6b63\u5e38\u306b\u6a5f\u80fd\u3057\u306a\u3044\u305f\u3081\u201d502 Bad Gateway\u201d\u3092\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u5fdc\u7b54\u3057\u3066\u3044\u305f\u72b6\u614b\u3067\u3059\u3002\u3000\u8a00\u3044\u63db\u3048\u308b\u3068 Server Load Balancer \u304c\u306a\u3051\u308c\u3070\u76f4\u63a5 Apache \u304b\u3089\u306e\u5fdc\u7b54\u3092\u78ba\u8a8d\u3067\u304d\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u3082\u6357\u3063\u305f\u3068\u8a00\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6700\u7d42\u7684\u306a\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u3092\u3069\u3046\u884c\u3063\u305f\u304b\u3068\u3044\u3046\u3068\u3001\u691c\u8a3c\u7528\u306b\u30b5\u30fc\u30d0\u74b0\u5883\u3092\u65b0\u305f\u306b\u6e96\u5099\u3057\u307e\u3057\u305f\u3002\u3000ECS \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u8907\u88fd\u3092\u4f5c\u308a Server Load Balancer \u3092\u7d4c\u7531\u3057\u306a\u3044\u5358\u7d14\u306a\u69cb\u6210\uff08ECS \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b Public IP Address \u3092\u5272\u308a\u5f53\u3066\u3066\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u76f4\u63a5\u305d\u306e Public IP Address \u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u69cb\u6210\uff09\u3092\u65b0\u305f\u306b\u69cb\u7bc9\u3057\u554f\u984c\u306e\u5207\u308a\u5206\u3051\u3092\u9032\u3081\u307e\u3057\u305f\u3002\u3000<\/p>\n\n\n\n<p>\u305d\u306e\u7d50\u679c\u3001php 8.3 \u306b\u5207\u308a\u66ff\u3048\u5f8c\u306b WordPress \u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304cWeb\u30d6\u30e9\u30a6\u30b6\u306b\u5fdc\u7b54\u3055\u308c\u305f\u305f\u3081\u554f\u984c\u306e\u6839\u672c\u539f\u56e0\u306f PHP \u306b MySQL \u306e extension \u304c\u4e0d\u8db3\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u3059\u3050\u306b\u308f\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Your PHP installation appears to be missing the MySQL extension which is required by WordPress. Please check that the mysqli PHP extension is installed and enabled.<\/code><\/pre>\n\n\n\n<p>\u306a\u304a\u3001ECS\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u8907\u88fd\u306f\u6a19\u6e96\u6a5f\u80fd\u3067\u7c21\u5358\u306b\u69cb\u7bc9\u53ef\u80fd\u3067\u3059\u3002 ECS \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e snapshot \u3092\u4f5c\u6210\u3057\u3001\u305d\u306e snapshot \u304b\u3089 Custum Image \u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u3000\u6b21\u306b Custum Image \u304b\u3089 ECS \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3059\u308b\u3060\u3051\u3067\u3059\u3002\u3000ECS \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u8ab2\u91d1\u30bf\u30a4\u30d7\u3092\u5f93\u91cf\u8ab2\u91d1\u306b\u3059\u308b\u3053\u3068\u3067\u6570\u6642\u9593\u5206\u3001100\u5186\u306b\u3082\u6e80\u305f\u306a\u3044\u30b3\u30b9\u30c8\u3067\u5229\u7528\u3067\u304d\u307e\u3057\u305f\u3002\u3000<\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>2\u3064\u76ee\u306e\u554f\u984c\u306e\u89e3\u6c7a\u306f\u7c21\u5358\u3067\u3059\u3002\u3000\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u901a\u308a MySQL \u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u4e0d\u8db3\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u3000\u3061\u306a\u307f\u306b\u3053\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u89e3\u6c7a\u65b9\u6cd5\u3092 Google Gemini \u306b\u554f\u3044\u5408\u308f\u305b\u308b\u3068\u9069\u5207\u306a\u89e3\u6c7a\u7b56\u3092\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"wp-block-sgb-say\"><div class=\"sgb-block-say sgb-block-say--left\"><div class=\"sgb-block-say-avatar\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bigriver.jp\/wp-content\/uploads\/2019\/08\/cropped-bigriver.png\" alt=\"bigriver.jp\" width=\"80\" height=\"80\" style=\"border-color:#eaedf2\"><div class=\"sgb-block-say-avatar__name\">bigriver.jp<\/div><\/div><div class=\"sgb-block-say-text\"><div class=\"sgb-block-say-text__content\" style=\"color:#333;border-color:#d5d5d5;background-color:#fff9e6\">\n<p>\u4ee5\u4e0b\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u5bfe\u51e6\u65b9\u6cd5\u3092\u304a\u3057\u3048\u3066<\/p>\n\n\n\n<p>Your PHP installation appears to be missing the MySQL extension which is required by WordPress.<br>Please check that the&nbsp;mysqli&nbsp;PHP extension is installed and enabled.<\/p>\n<span class=\"sgb-block-say-text__before\" style=\"border-right-color:#d5d5d5\"><\/span><span class=\"sgb-block-say-text__after\" style=\"border-right-color:#fff9e6\"><\/span><\/div><\/div><\/div><\/div>\n\n\n\n<div class=\"wp-block-sgb-say\"><div class=\"sgb-block-say sgb-block-say--right\"><div class=\"sgb-block-say-avatar\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.gravatar.com\/avatar\/?d=mm\" alt=\"Gemini\" width=\"80\" height=\"80\" style=\"border-color:#eaedf2\"><div class=\"sgb-block-say-avatar__name\">Gemini<\/div><\/div><div class=\"sgb-block-say-text\"><div class=\"sgb-block-say-text__content\" style=\"color:#333;border-color:#d5d5d5;background-color:whitesmoke\">\n<p>\u3053\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u3001WordPress \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u307e\u305f\u306f\u5b9f\u884c\u3057\u3088\u3046\u3068\u3057\u305f\u3068\u304d\u306b\u8868\u793a\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u3001PHP \u306b\u5fc5\u8981\u306a MySQL \u62e1\u5f35\u6a5f\u80fd \u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002MySQL \u62e1\u5f35\u6a5f\u80fd\u306f\u3001WordPress \u304c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u901a\u4fe1\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u89e3\u6c7a\u7b56:<\/p>\n\n\n\n<p>\u3053\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u624b\u9806\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>MySQL \u62e1\u5f35\u6a5f\u80fd\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b<\/li>\n<\/ol>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3001MySQL \u62e1\u5f35\u6a5f\u80fd\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>php -m | grep mysqli<br>\u7d50\u679c:<\/p>\n\n\n\n<p>\u62e1\u5f35\u6a5f\u80fd\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001mysqli \u3068\u3044\u3046\u884c\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br>\u62e1\u5f35\u6a5f\u80fd\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001\u4f55\u3082\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li>MySQL \u62e1\u5f35\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/li>\n<\/ol>\n\n\n\n<p>\u62e1\u5f35\u6a5f\u80fd\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>sudo apt install php-mysqli<br>\u6ce8:<\/p>\n\n\n\n<p>\u4f7f\u7528\u3057\u3066\u3044\u308b Linux \u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u306b\u3088\u3063\u3066\u306f\u3001\u4e0a\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u304c\u7570\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<br>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u524d\u306b\u3001\u5fc5\u305a sudo \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\">\n<li>Web\u30b5\u30fc\u30d0\u30fc\u3092\u518d\u8d77\u52d5\u3059\u308b<\/li>\n<\/ol>\n\n\n\n<p>\u62e1\u5f35\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u3001Web\u30b5\u30fc\u30d0\u30fc\u3092\u518d\u8d77\u52d5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u65b0\u3057\u3044\u8a2d\u5b9a\u304c\u8aad\u307f\u8fbc\u307e\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>sudo systemctl restart apache2<br>\u6ce8:<\/p>\n\n\n\n<p>\u4f7f\u7528\u3057\u3066\u3044\u308b Web\u30b5\u30fc\u30d0\u30fc\u306b\u3088\u3063\u3066\u306f\u3001\u4e0a\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u304c\u7570\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\">\n<li>WordPress \u3092\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u307e\u305f\u306f\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b<\/li>\n<\/ol>\n\n\n\n<p>\u62e1\u5f35\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066 Web\u30b5\u30fc\u30d0\u30fc\u3092\u518d\u8d77\u52d5\u3057\u305f\u3089\u3001WordPress \u3092\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u307e\u305f\u306f\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001WordPress \u304c\u65b0\u3057\u3044\u62e1\u5f35\u6a5f\u80fd\u3092\u8a8d\u8b58\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>WordPress \u306e\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb:<\/p>\n\n\n\n<p>WordPress \u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002 https:\/\/wordpress.com\/support\/com-vs-org\/<br>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092 Web\u30b5\u30fc\u30d0\u30fc\u306e\u9069\u5207\u306a\u5834\u6240\u306b\u89e3\u51cd\u3057\u307e\u3059\u3002<br>Web\u30d6\u30e9\u30a6\u30b6\u3092\u958b\u304d\u3001WordPress \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<br>\u753b\u9762\u306e\u6307\u793a\u306b\u5f93\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u5b8c\u4e86\u3057\u307e\u3059\u3002<br>WordPress \u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9:<\/p>\n\n\n\n<p>WordPress \u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059\u3002<br>\u5de6\u5074\u306e\u30e1\u30cb\u30e5\u30fc\u304b\u3089 \u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9 &gt; \u30a2\u30c3\u30d7\u30c7\u30fc\u30c8 \u3092\u9078\u629e\u3057\u307e\u3059\u3002<br>\u4eca\u3059\u3050\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u5229\u7528\u53ef\u80fd\u306a\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br><\/p>\n\n\n\n<p>\u554f\u984c\u89e3\u6c7a<\/p>\n\n\n\n<p>\u4e0a\u8a18\u306e\u624b\u9806\u3092\u5b9f\u884c\u3057\u3066\u3082\u554f\u984c\u304c\u89e3\u6c7a\u3057\u306a\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u70b9\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>PHP \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u53e4\u3044\u3002PHP 7.2 \u4ee5\u964d\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br>MySQL \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u53e4\u3044\u3002MySQL 5.7 \u4ee5\u964d\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br>php.ini \u30d5\u30a1\u30a4\u30eb\u306e\u8a2d\u5b9a\u304c\u6b63\u3057\u304f\u306a\u3044\u3002php.ini \u30d5\u30a1\u30a4\u30eb\u3067 mysqli \u62e1\u5f35\u6a5f\u80fd\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br><\/p>\n\n\n\n<p>\u305d\u306e\u4ed6\u306e\u30ea\u30bd\u30fc\u30b9<\/p>\n\n\n\n<p>WordPress \u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8: https:\/\/developer.wordpress.org\/advanced-administration\/before-install\/howto-install\/<br>PHP \u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8: https:\/\/www.php.net\/manual\/en\/install.php<br>MySQL \u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8: https:\/\/dev.mysql.com\/doc\/<br><\/p>\n\n\n\n<p>\u53c2\u8003\u60c5\u5831<\/p>\n\n\n\n<p>MySQL \u62e1\u5f35\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5: https:\/\/stackoverflow.com\/questions\/35424982\/how-can-i-enable-the-mysqli-extension-in-php-7<br>php.ini \u30d5\u30a1\u30a4\u30eb\u306e\u8a2d\u5b9a\u65b9\u6cd5: https:\/\/stackoverflow.com\/questions\/8684609\/where-can-i-find-php-ini<br>\u3053\u306e\u60c5\u5831\u304c\u304a\u5f79\u306b\u7acb\u3066\u3070\u5e78\u3044\u3067\u3059\u3002<\/p>\n<span class=\"sgb-block-say-text__before\" style=\"border-left-color:#d5d5d5\"><\/span><span class=\"sgb-block-say-text__after\" style=\"border-left-color:whitesmoke\"><\/span><\/div><\/div><\/div><\/div>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Gemini \u304b\u3089\u306e\u56de\u7b54\u306e\u3068\u304a\u308a php -m \u30b3\u30de\u30f3\u30c9\u3067mysql \u306e\u6709\u7121\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002php7.4 \u306b\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308bMySQL\u30e2\u30b8\u30e5\u30fc\u30eb\u304c php8.3\u306b\u306f\u542b\u307e\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3001\u8ffd\u52a0\u5f8c\u306f\u554f\u984c\u304c\u89e3\u6d88\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-sgb-headings sgb-heading\" id=\"i-2\"><span class=\"ez-toc-section\" id=\"php_74_%E3%81%8B%E3%82%89_php83%E3%81%B8%E3%81%AE%E5%88%87%E3%82%8A%E6%9B%BF%E3%81%88%E6%89%8B%E9%A0%86\"><\/span><span class=\"sgb-heading__inner sgb-heading--type2\" style=\"background-color:#d07119;border-color:transparent;font-size:1.2em\"><span class=\"sgb-heading__text\" style=\"color:#FFF\">php 7.4 \u304b\u3089 php8.3\u3078\u306e\u5207\u308a\u66ff\u3048\u624b\u9806<\/span><\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u767a\u751f\u3057\u305f\u554f\u984c\u3068\u5bfe\u5fdc\u306f\u524d\u8ff0\u306e\u901a\u308a\u3067\u3059\u304c\u3001\u6b21\u56de\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u306b\u5411\u3051\u3066\u624b\u9806\u3092\u6b8b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u306f php-mysql \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002Gemini \u306e\u56de\u7b54\u3067\u306f php-mysqli \u304c\u4e0d\u8db3\u3057\u305d\u308c\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u3087\u3046\u3068\u306e\u3053\u3068\u3067\u3057\u305f\u304c php8.3 \u3067\u306f mysqli \u306fphp-mysql \u306b\u542b\u307e\u308c\u3066\u3044\u308b\u3068\u306e\u3053\u3068\u3067\u4ee5\u4e0b\u306e\u901a\u308a php-mysql \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># apt install php-mysql<\/code><\/pre>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>\u3042\u3068\u306f WordPress \u304b\u3089\u8b66\u544a\u304c\u3042\u3063\u305f\u5fc5\u9808\u30e2\u30b8\u30e5\u30fc\u30eb gd \u3084 dom\u3001imagick\u3001zip\u3001intl \u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># add-apt-repository ppa:ondrej\/php\n# apt update\n\n# apt install php8.3-gd\n# apt install php8.3-dom\n# apt install php8.3-imagick\n# apt install php8.3-zip\n# apt install php8.3-intl<\/code><\/pre>\n\n\n\n<p>\u203b \u5b9f\u306f\u30ea\u30dd\u30b8\u30c8\u30ea\u306b ppa:ondrej\/php\u3092\u8ffd\u52a0\u3057\u305f\u306e\u3067\u3059\u304c\u4f55\u56de\u3084\u3063\u3066\u3082\u30ea\u30dd\u30b8\u30c8\u30ea\u30b5\u30fc\u30d0\uff08<a href=\"http:\/\/ppa.launchpad.net\/ondrej\/php\/ubuntu\">http:\/\/ppa.launchpad.net\/ondrej\/php\/ubuntu<\/a>\uff09\u3068\u306e\u63a5\u7d9a\u304c Time Out \u306b\u306a\u308agd\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002\u3000\u305f\u3060\u3001\u7fcc\u65e5\u518d\u5b9f\u884c\u3057\u305f\u3089\u6210\u529f\u3057\u305f\u306e\u3067\u4e00\u6642\u7684\u306a\u554f\u984c\u3060\u3063\u305f\u3088\u3046\u3067\u3059\uff08\u6700\u521d\u3001Alibaba Cloud \u56fa\u6709\u306e\u539f\u56e0\u304c\u3042\u308b\u306e\u304b\u306a\u30fc\u3001\u30b5\u30dd\u30fc\u30c8\u306b\u30c1\u30b1\u30c3\u30c8\u767a\u884c\u3059\u308b\u304b\u30fc\u3068\u601d\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u89e3\u6c7a\u3057\u3066\u4f55\u3088\u308a\uff09<\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>\u6b21\u306b Apache \u306e php7.4 \u3092\u7121\u52b9\u5316\u3057\u3001php8.3 \u3092\u6709\u52b9\u5316\u3057\u3001apache \u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002 <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># a2dismod php7.4\n# a2enmod php8.3\n# systemctl restart apache2<\/code><\/pre>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>\u3042\u3068\u306f Web \u30d6\u30e9\u30a6\u30b6\u304b\u3089\u6b63\u5e38\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u4f5c\u696d\u306f\u7d42\u4e86\u3068\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>\u4ee5\u4e0a<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u30d6\u30ed\u30b0\u306f Alibaba Cloud \u306e Elstic Compute Service \u306e Linux \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u4e0a\u306b WordPress \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u3066\u3044\u307e\u3059\u3002\u3000\u3053\u3053\u6570\u65e5\u3053\u306e\u74b0\u5883\u306e\u6700\u65b0\u5316\uff08OS \u3084 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":17334,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,5],"tags":[],"class_list":{"0":"post-17298","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-alibaba-cloud","8":"category-ecs","9":"entry"},"views":7756,"_links":{"self":[{"href":"https:\/\/www.bigriver.jp\/index.php?rest_route=\/wp\/v2\/posts\/17298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bigriver.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bigriver.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bigriver.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bigriver.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17298"}],"version-history":[{"count":10,"href":"https:\/\/www.bigriver.jp\/index.php?rest_route=\/wp\/v2\/posts\/17298\/revisions"}],"predecessor-version":[{"id":17336,"href":"https:\/\/www.bigriver.jp\/index.php?rest_route=\/wp\/v2\/posts\/17298\/revisions\/17336"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bigriver.jp\/index.php?rest_route=\/wp\/v2\/media\/17334"}],"wp:attachment":[{"href":"https:\/\/www.bigriver.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bigriver.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bigriver.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}