{"id":8100,"date":"2023-07-17T21:08:50","date_gmt":"2023-07-17T12:08:50","guid":{"rendered":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=8100"},"modified":"2023-07-17T21:08:50","modified_gmt":"2023-07-17T12:08:50","slug":"ubuntu-22-04-%e3%81%ab%e3%82%a2%e3%83%83%e3%83%97%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%89%e3%81%97%e3%81%9f%e3%82%89-blog-%e3%81%8c%e6%ad%a2%e3%81%be%e3%81%a3%e3%81%9f","status":"publish","type":"post","link":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=8100","title":{"rendered":"Ubuntu 22.04 \u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u305f\u3089 blog \u304c\u6b62\u307e\u3063\u305f"},"content":{"rendered":"<p>\u81ea\u9bd6\uff08\u3053\u306e blog \u304c\u7f6e\u3044\u3066\u3042\u308b VPS\uff09\u3092 Ubuntu 20.04LTS \u304b\u3089 22.04LTS \u306b\u3057\u305f\u3093\u3067\u3059\u304c\u3001\u305d\u3046\u3057\u305f\u3089 WordPress \u306e blog \u304c\u8868\u793a\u3055\u308c\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002\u771f\u3063\u767d\u306a\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u30bd\u30fc\u30b9\u8868\u793a\u3059\u308b\u3068 PHP \u306e\u30bd\u30fc\u30b9\u304c\u305d\u306e\u307e\u307e\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p># \u5b9f\u969b\u306b\u306f\u4e00\u65e6\u624b\u5143\u306e VM \u4e0a\u3067\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u30ea\u30cf\u30fc\u30b5\u30eb\u3092\u3084\u3063\u3066\u305d\u306e\u6642\u306b\u906d\u9047\u3057\u305f\u73fe\u8c61<\/p>\n<p><!--more--><\/p>\n<p>\u3061\u3087\u3053\u3063\u3068\u30b0\u30b0\u3063\u305f\u3089<a href=\"https:\/\/aoboshi.org\/?p=1717\">\u5168\u304f\u540c\u3058\u75c7\u72b6\u306e\u4eba<\/a>\u3092\u898b\u3064\u3051\u307e\u3057\u305f\u3002\u4f55\u3084\u3089 PHP \u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u8aad\u307f\u8fbc\u3081\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u3088\u3046\u3067\u3059\u3002<\/p>\n<blockquote>\n<pre>\r\nroot@youm:\/home\/umezawa# apt list --installed | grep php\r\n\r\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.\r\n\r\nlibapache2-mod-php8.1\/jammy-updates,jammy-security,now 8.1.2-1ubuntu2.13 amd64 [installed,automatic]\r\n\uff08\u4e2d\u7565\uff09\r\n<strong>php8.1<\/strong>\/jammy-updates,jammy-updates,jammy-security,jammy-security,now 8.1.2-1ubuntu2.13 all [installed,automatic]\r\nphp\/jammy,jammy,now 2:8.1+92ubuntu1 all [installed]\r\n<\/pre>\n<\/blockquote>\n<p>PHP \u81ea\u4f53\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote>\n<pre>\r\nroot@youm:\/home\/umezawa# a2query -m | php\r\n<strong>php7.4<\/strong> (enabled by maintainer script)\r\n<\/pre>\n<\/blockquote>\n<p>Apache \u4e0a\u3067\u300c\u6709\u52b9\u300d\u306b\u306a\u3063\u3066\u3044\u308b PHP \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u9055\u3044\u307e\u3059\u3002<\/p>\n<blockquote>\n<pre>\r\nroot@youm:\/home\/umezawa# ls -l \/etc\/apache2\/mods-enabled\/php*\r\nlrwxrwxrwx 1 root root 29 Jan 10  2021 <span style=\"color:red; background-color: black\">\/etc\/apache2\/mods-enabled\/php7.4.conf<\/span> -> <span style=\"color:red; background-color: black\">..\/mods-available\/php7.4.conf<\/span>\r\nlrwxrwxrwx 1 root root 29 Jan 10  2021 <span style=\"color:red; background-color: black\">\/etc\/apache2\/mods-enabled\/php7.4.load<\/span> -> <span style=\"color:red; background-color: black\">..\/mods-available\/php7.4.load<\/span>\r\n<\/pre>\n<\/blockquote>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u308b\u306e\u306f 8.1 \u306a\u306e\u3067\u3001 mods-enabled \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b symlink \u306f dead link \u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u3046\u307e\u304f\u51e6\u7406\u3067\u304d\u306a\u304b\u3063\u305f\u3093\u3067\u3059\u304b\u306d\u3002<\/p>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u76f4\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<blockquote>\n<pre>\r\nroot@youm:\/home\/umezawa# a2dismod php7.4\r\nremoving dangling symlink \/etc\/apache2\/mods-enabled\/php7.4.load\r\nremoving dangling symlink \/etc\/apache2\/mods-enabled\/php7.4.conf\r\nroot@youm:\/home\/umezawa# a2enmod php8.1\r\nConsidering dependency mpm_prefork for php8.1:\r\nConsidering conflict mpm_event for mpm_prefork:\r\nConsidering conflict mpm_worker for mpm_prefork:\r\nModule mpm_prefork already enabled\r\nConsidering conflict php5 for php8.1:\r\nEnabling module php8.1.\r\nTo activate the new configuration, you need to run:\r\n  systemctl restart apache2\r\nroot@youm:\/home\/umezawa# systemctl restart apache2\r\n<\/pre>\n<\/blockquote>\n<p>\u30b5\u30af\u30c3\u3068\u76f4\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b<a href=\"http:\/\/umezawa.dyndns.info\/wordpress\/?p=7651\">\u524d\u56de\uff0818.04->20.04\uff09\u306e\u6642\u306e\u30c8\u30e9\u30d6\u30eb\u306f\u3053\u3061\u3089<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u81ea\u9bd6\uff08\u3053\u306e blog \u304c\u7f6e\u3044\u3066\u3042\u308b VPS\uff09\u3092 Ubuntu 20.04LTS \u304b\u3089 22.04LTS \u306b\u3057\u305f\u3093\u3067\u3059\u304c\u3001\u305d\u3046\u3057\u305f\u3089 WordPress \u306e blog \u304c\u8868\u793a\u3055\u308c\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002\u771f\u3063\u767d\u306a\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-8100","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/8100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8100"}],"version-history":[{"count":7,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/8100\/revisions"}],"predecessor-version":[{"id":8107,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/8100\/revisions\/8107"}],"wp:attachment":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8100"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}