{"id":1377,"date":"2023-05-22T07:13:10","date_gmt":"2023-05-21T22:13:10","guid":{"rendered":"https:\/\/www.jellyfishjelly.net\/?p=1377"},"modified":"2024-06-15T20:53:56","modified_gmt":"2024-06-15T11:53:56","slug":"post-1377","status":"publish","type":"post","link":"https:\/\/www.jellyfishjelly.net\/?p=1377","title":{"rendered":"\u7d50\u5c40\u3001\u79c1\u306e\u74b0\u5883\u306b\u304a\u3051\u308bPHP\u306e\u6700\u9069\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u3069\u308c\u306a\u306e\u304b\u3068\u3044\u3046\u554f\u984c\u306b\u5168\u529b\u3067\u5bfe\u51e6\u3057\u305f\u985b\u672b\u8a18"},"content":{"rendered":"\n<p>\u3053\u3053\u306e\u3068\u3053\u308dlightsail\u4e0a\u306eAML2\u306b\u3066nginx\uff0bphp-fpm\u3067nextcloud\u3068wordpress\u3092\u904b\u7528\u3059\u308b\u4e0a\u3067\u3001\u81ea\u5206\u306b\u3068\u3063\u3066\u6700\u9069\u306aPHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u4f55\u306a\u306e\u304b\u3068\u3044\u3046\u691c\u8a0e\u304c\u7d9a\u3044\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u7121\u4e8b\u6c7a\u7740\u3057\u305f\u306e\u3067\u985b\u672b\u3092\u8a18\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1\uff0ePHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f8.1\u304c\u6700\u9069\u30018.2\u3082\u52d5\u304f\u306b\u306f\u52d5\u304f\u304c\u30fb\u30fb\u30fb<\/h2>\n\n\n\n<p>kagoya\u306eVPS\u306b\u691c\u8a3c\u74b0\u5883\u3092\u4f5c\u6210\u3057\u3001Almalinux\u4e0a\u3067\u73fe\u5728Lightsail\u3067\u904b\u7528\u3057\u3066\u3044\u308bWordpress\u3068nextcloud\u3092\u8907\u88fd\u3057PHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u5165\u308c\u66ff\u3048\u3066\u307f\u305f\u3068\u3053\u308d\u3001\u591a\u5c11\u8a2d\u5b9a\u3092\u8abf\u6574\u3059\u308b\u5fc5\u8981\u306f\u3042\u308b\u304c8.0\u304b\u30898.2\u307e\u3067\u306e\u3059\u3079\u3066\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u52d5\u4f5c\u78ba\u8a8d\u3067\u304d\u305f\u3002\u305f\u3060\u3001Wordpress\u306e\u30c7\u30d0\u30c3\u30b0\u30e2\u30fc\u30c9\u3092ON\u306b\u3059\u308b\u3053\u3068\u306b\u3088\u308aPHP8.2\u3067\u306fWordpress\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u3042\u308bC3 Cloudfront Cache Controller\u3067\u52d5\u4f5c\u306b\u652f\u969c\u304c\u7121\u3044\u7a0b\u5ea6\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u305f\u3002<br>\u307e\u305f\u3001wordpress\u306e\u30b5\u30a4\u30c8\u30d8\u30eb\u30b9\u3067\u4f4e\u5f71\u97ff\u5ea6\u306e\u554f\u984c\u3068\u3057\u3066REST API\u306b\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u305f\u3002<br>nextcloud\u306b\u3064\u3044\u3066\u306f\u3044\u305a\u308c\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3064\u3044\u3066\u3082\u6b63\u5e38\u306b\u52d5\u4f5c\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u6b21\u306b\u3001Lightsail\u306e\u74b0\u5883\u3067\u4e00\u65e6\u3059\u3079\u3066\u306ePHP\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u524a\u9664\u3057\u3066amazon linux extras\u306ePHP8.1\u304a\u3088\u3073\u5fc5\u8981\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u5b9f\u65bd\u3002yum\u3067\u306f\u8ffd\u52a0\u3067\u304d\u306a\u304b\u3063\u305fapcu mcrypt memcache memcached redis igbinary imagick msgpack\u306b\u3064\u3044\u3066\u306fpecl\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3002<br>\u305d\u306e\u5f8c\u3001kagoya\u306e\u691c\u8a3c\u3067\u78ba\u8a8d\u3057\u305f\u8abf\u6574\u9805\u76ee\u3092\u53cd\u6620\u3059\u308b\u3053\u3068\u3067\u3001\u4ee5\u524d\u306a\u305c\u304b\u767a\u751f\u3057\u3066\u3044\u305f\u4e0d\u5177\u5408\u3082\u7121\u304f\u52d5\u4f5c\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3002<br>\u3053\u308c\u3092\u6301\u3063\u3066\u81ea\u5206\u306e\u74b0\u5883\u3067\u306famazon linux extras\u306ephp8.1\u304c\u6700\u9069\u3067\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2\uff0eRHEL\u7cfb\u30d0\u30fc\u30b8\u30e7\u30f39\u306eOS\u3067\u306fredis\u306e\u8a2d\u5b9a\u306b\u6ce8\u610f<\/h2>\n\n\n\n<p>kagoya\u306evps\u3067\u691c\u8a3c\u3057\u3066\u3044\u305f\u3068\u304d\u306bredis\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3066nextcloud\u304c\u307e\u3068\u3082\u306b\u52d5\u304b\u306a\u3044\u3068\u3044\u3046\u73fe\u8c61\u304c\u767a\u751f\u3057\u305f\u3002<br>\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3057\u305f\u3068\u3053\u308d\u3001nextcloud\u306e\u30b3\u30f3\u30d5\u30a3\u30b0\u30d5\u30a1\u30a4\u30eb\u3067\u306fredis\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092unix\u30bd\u30b1\u30c3\u30c8\u3067\u884c\u3046\u8a2d\u5b9a\u3067\u3042\u3063\u305f\u304c\u3001redis\u306e\u30b3\u30f3\u30d5\u30a3\u30b0\u3067\u306f\u305d\u3082\u305d\u3082unix\u30bd\u30b1\u30c3\u30c8\u304c\u6709\u52b9\u3067\u7121\u304f\u307e\u305f\u30bd\u30b1\u30c3\u30c8\u540d\u304c\u4e00\u81f4\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u3002<br>\u305d\u3053\u3067\u3001nextcloud\u306e\u30b3\u30f3\u30d5\u30a3\u30b0\u306b\u3042\u308b\u3068\u304a\u308a\u306e\u30bd\u30b1\u30c3\u30c8\u540d\u306b\u5909\u66f4\u3057\u305f\u4e0a\u3067unix\u30bd\u30b1\u30c3\u30c8\u3067\u306e\u5f85\u3061\u53d7\u3051\u3092\u6709\u52b9\u5316\u3057\u3001redis\u3092\u518d\u8d77\u52d5\u3057\u305f\u304c\u305d\u308c\u3067\u3082\u52d5\u304b\u306a\u3044\u3002<br>\u30cd\u30c3\u30c8\u4e0a\u306e\u60c5\u5831\u3092\u3042\u3055\u3063\u305f\u7d50\u679c\u3001redis\u306e\u30b3\u30f3\u30d5\u30a3\u30b0\u3067\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u30c7\u30d5\u30a9\u30eb\u30c8\u306e0700\u304b\u30890770\u306b\u5909\u66f4\u3059\u308b\u3068\u306e\u8a18\u8f09\u304c\u3042\u3063\u305f\u306e\u3067\u305d\u306e\u901a\u308a\u306b\u3057\u3066\u307f\u305f\u304c\u3001\u305d\u308c\u3067\u3082\u3060\u3081\u3060\u3063\u305f\u3002<br>\u305f\u3060\u3001\u6c17\u306b\u306a\u3063\u305f\u306e\u306f\u30a2\u30af\u30bb\u30b9\u6a29\u3092700\u304b\u3089770\u306b\u5909\u66f4\u3057\u3066\u8a31\u53ef\u3055\u308c\u308b\u306e\u306fredis\u30b0\u30eb\u30fc\u30d7\u306b\u5c5e\u3059\u308b\u30e6\u30fc\u30b6\u306e\u307f\u3002\u3064\u307e\u308a\u3001\u73fe\u72b6\u306eredis\u30b0\u30eb\u30fc\u30d7\u306b\u3069\u306e\u30e6\u30fc\u30b6\u304c\u6240\u5c5e\u3059\u308b\u3079\u304d\u304b\u3068\u3044\u3046\u8a71\u3067\u306f\u7121\u3044\u304b\u3068\u601d\u308f\u308c\u308b\u3002<br>\u305d\u3057\u3066nextcloud\u306b\u3066redis\u304c\u4e00\u4f53\u3069\u306e\u30e6\u30fc\u30b6\u6a29\u9650\u3067\u30a2\u30af\u30bb\u30b9\u3055\u308c\u308b\u304b\u3068\u3044\u3046\u3068\u3001nginx\u3068\u306a\u308b\uff08occ\u30b3\u30de\u30f3\u30c9\u3092\u53e9\u304f\u3068\u304d\u3082nginx\u6a29\u9650\u3067php\u3092\u5b9f\u884c\u3057\u306a\u3044\u3068\u52d5\u304b\u306a\u3044\uff09\u3002<br>\u305d\u3053\u3067\u3001usermod -aG redis nginx\u3092\u5b9f\u884c\u3057\u3066redis\u30b0\u30eb\u30fc\u30d7\u306bnginx\u3092\u8ffd\u52a0\u3057redis\u3092\u518d\u8d77\u52d5\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u7121\u4e8b\u306bnextcloud\u304c\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/p>\n\n\n\n<p>\u306a\u304a\u3001\u4f59\u8ac7\u3067\u3042\u308b\u304c\u3053\u306e\u201d\u30b0\u30eb\u30fc\u30d7\u306b\u5b9f\u969b\u306b\u5b9f\u884c\u3059\u308b\u30d7\u30ed\u30bb\u30b9\u306e\u30e6\u30fc\u30b6\u306e\u8ffd\u52a0\u304c\u5fc5\u8981\u201d\u3068\u3044\u3046\u72b6\u6cc1\u3001almalinux9\u306eopendmarc\u304a\u3088\u3073opendkim\u3067\u3082\u78ba\u8a8d\u3057\u3066\u3044\u308b\u3002\u3053\u308c\u3089\u306b\u3064\u3044\u3066\u3082\u4ee5\u524d\u306finet\u30bd\u30b1\u30c3\u30c8\u3092\u4f7f\u7528\u3057\u3066\u3044\u305f\u304c\u3001unix\u30bd\u30b1\u30c3\u30c8\u3067\u306e\u52d5\u4f5c\u306b\u5909\u66f4\u3055\u308c\u3001\u305d\u306e\u5f71\u97ff\u3067postfix\u306e\u30e6\u30fc\u30b6\u6a29\u9650\u3067\u30a2\u30af\u30bb\u30b9\u3057\u306a\u3044\u3068\u52d5\u4f5c\u3057\u306a\u3044\u6a21\u69d8\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3\uff0eCPU\u30b3\u30a2\u6570\u304c1\u3064\u3060\u304b\u3089\u3068\u8a00\u3063\u3066php-fpm\u306e\u52d5\u4f5c\u30d7\u30ed\u30bb\u30b9\u6570\u30921\u306b\u56fa\u5b9a\u3059\u308b\u3068\u30eb\u30fc\u30d7\u30d0\u30c3\u30af\u30a8\u30e9\u30fc\u3084\u3089REST API\u30a8\u30e9\u30fc\u3084\u3089\u304c\u767a\u751f\u3059\u308b<\/h2>\n\n\n\n<p>php-fpm\u306e\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u3092\u884c\u3063\u3066\u3044\u305f\u969b\u3001\u30b5\u30fc\u30d0\u306eCPU\u30b3\u30a2\u6570\u304c1\u3064\u306a\u306e\u3067pm = static\u3068\u3057\u305f\u4e0a\u3067\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u6700\u5927\u6570\u30921\u3068\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u305f\u7d50\u679c\u3001wordpress\u306e\u30b5\u30a4\u30c8\u30d8\u30eb\u30b9\u306b\u3066REST API\u30a8\u30e9\u30fc\u304a\u3088\u3073\u30eb\u30fc\u30d7\u30d0\u30c3\u30af\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u3002\u3053\u3061\u3089\u306e\u73fe\u8c61\u306b\u3064\u3044\u3066\u306f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u6700\u5c0f\u6570\u30922\u4ee5\u4e0a\u306b\u3059\u308b\u3053\u3068\u304c\u6539\u5584\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">4\uff0e\u4eca\u5f8c\u306b\u3064\u3044\u3066<\/h2>\n\n\n\n<p>lightsail\u3067\u306f\u307e\u3060amazon linux 2023\u304c\u4f7f\u7528\u3067\u304d\u306a\u3044\u304c\u3001aml2\u306eEOL\u304c\u8feb\u3063\u3066\u3044\u308b\u3053\u3068\u304b\u3089\u8fd1\u3005\u5bfe\u5fdc\u3055\u308c\u308b\u3068\u601d\u308f\u308c\u308b\u306e\u3067\u6b21\u306faml2023\u3067\u306e\u74b0\u5883\u69cb\u7bc9\u3068\u306a\u308b\u4e88\u5b9a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3053\u306e\u3068\u3053\u308dlightsail\u4e0a\u306eAML2\u306b\u3066nginx\uff0bphp-fpm\u3067nextcloud\u3068wordpress\u3092\u904b\u7528\u3059\u308b\u4e0a\u3067\u3001\u81ea\u5206\u306b\u3068\u3063\u3066\u6700\u9069\u306aPHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u4f55\u306a\u306e\u304b\u3068\u3044\u3046\u691c\u8a0e\u304c\u7d9a\u3044\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u7121\u4e8b\u6c7a\u7740\u3057\u305f\u306e\u3067 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5,6],"tags":[72,28,33],"class_list":["post-1377","post","type-post","status-publish","format-standard","hentry","category-aws","category-lin","tag-lightsail","tag-linux","tag-php"],"_links":{"self":[{"href":"https:\/\/www.jellyfishjelly.net\/index.php?rest_route=\/wp\/v2\/posts\/1377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jellyfishjelly.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jellyfishjelly.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jellyfishjelly.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jellyfishjelly.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1377"}],"version-history":[{"count":1,"href":"https:\/\/www.jellyfishjelly.net\/index.php?rest_route=\/wp\/v2\/posts\/1377\/revisions"}],"predecessor-version":[{"id":2424,"href":"https:\/\/www.jellyfishjelly.net\/index.php?rest_route=\/wp\/v2\/posts\/1377\/revisions\/2424"}],"wp:attachment":[{"href":"https:\/\/www.jellyfishjelly.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jellyfishjelly.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1377"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jellyfishjelly.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}