{"id":23282,"date":"2024-12-15T04:34:14","date_gmt":"2024-12-14T19:34:14","guid":{"rendered":"https:\/\/wp.study3.biz\/?p=23282"},"modified":"2024-12-15T06:50:58","modified_gmt":"2024-12-14T21:50:58","slug":"ubuntu24-04%e3%81%ab%e6%9c%80%e6%96%b0%e3%81%aeweb%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bcapache2-4-62%e3%81%8a%e3%82%88%e3%81%b3php8-4%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/wp.study3.biz\/?p=23282","title":{"rendered":"Ubuntu24.04\u306b\u6700\u65b0\u306eWeb\u30b5\u30fc\u30d0\u30fcApache2.4.62\u304a\u3088\u3073PHP8.4\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u305f"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wp.study3.biz\/wp-content\/uploads\/2024\/09\/Screenshot-from-2024-09-11-04-55-25.png\" alt=\"\" width=\"3840\" height=\"2160\" class=\"alignnone size-full wp-image-21853\" \/><br \/>\n<strong>Apache\u306e\u5834\u5408<\/strong><br \/>\n1.\u30ec\u30dd\u30b8\u30c8\u30ea\u8ffd\u52a0<br \/>\n<strong>sudo add-apt-repository ppa:ondrej\/apache2<\/strong><br \/>\n2.\u30d1\u30c3\u30b1\u30fc\u30b8\u5168\u4f53\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<br \/>\n<strong>sudo apt update <\/strong><br \/>\n<strong>sudo apt upgrade<\/strong><br \/>\n3.apache\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n<strong>sudo apt install apache2<\/strong><br \/>\n4.\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d<br \/>\n<strong>apache2ctl -v<br \/>\nServer version: Apache\/2.4.62 (Ubuntu)<br \/>\nServer built:   2024-07-22T12:37:10<\/strong><\/p>\n<p><strong>PHP\u306e\u5834\u5408<\/strong><br \/>\n1 \u30d1\u30c3\u30b1\u30fc\u30b8\u5168\u4f53\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<br \/>\n<strong>sudo apt update<br \/>\nsudo apt upgrade -y<\/strong><br \/>\n2.\u30ec\u30dd\u30b8\u30c8\u30ea\u8ffd\u52a0\u3068PHP\u306einstall<br \/>\n<strong>sudo add-apt-repository ppa:ondrej\/php<br \/>\nsudo apt update<br \/>\nsudo apt install php8.4 -y<\/strong><br \/>\n3.\u8a2d\u5b9a<br \/>\n<strong>sudo a2dismod php8.3\u3000php3\u306e\u505c\u6b62<br \/>\nsudo a2enmod php8.4\u3000 php4\u306e\u8d77\u52d5<\/strong><br \/>\n4.Apache \u3092 Web \u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u3066\u3001PHP 8.4 \u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001PHP \u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u6709\u52b9\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001Apache \u306f PHP \u30d5\u30a1\u30a4\u30eb\u3092\u51e6\u7406\u3057\u3001\u6b63\u3057\u304f\u63d0\u4f9b\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n<strong>sudo systemctl restart apache2<\/strong><br \/>\n5.PHP \u304c Apache \u3067\u52d5\u4f5c\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001\u30c6\u30b9\u30c8 PHP \u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n<strong>echo &#8220;< ?php phpinfo(); >&#8221; | sudo tee \/var\/www\/html\/info.php<\/strong><br \/>\n6.\u6b21\u306b\u3001Web \u30d6\u30e9\u30a6\u30b6\u3092\u958b\u3044\u3066\u6b21\u306e URL \u306b\u79fb\u52d5\u3057\u307e\u3059\u3002\u3053\u3053\u3067 PHP \u60c5\u5831\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3001PHP \u304c\u6b63\u3057\u304f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3001\u69cb\u6210\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<br \/>\n<strong>http:\/\/your_server_ip\/info.php<\/strong><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wp.study3.biz\/wp-content\/uploads\/2024\/12\/Verify-PHP-8.4-in-Ubuntu-24.04.png\" alt=\"\" width=\"932\" height=\"672\" class=\"alignnone size-full wp-image-23297\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apache\u306e\u5834\u5408 1.\u30ec\u30dd\u30b8\u30c8\u30ea\u8ffd\u52a0 sudo add-apt-repository ppa:ondrej\/apache2 2.\u30d1\u30c3\u30b1\u30fc\u30b8\u5168\u4f53\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8 sudo apt update sudo apt upgra &hellip; <a href=\"https:\/\/wp.study3.biz\/?p=23282\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[17],"tags":[],"class_list":["post-23282","post","type-post","status-publish","format-standard","hentry","category-ubuntu"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts\/23282","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=23282"}],"version-history":[{"count":16,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts\/23282\/revisions"}],"predecessor-version":[{"id":23301,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts\/23282\/revisions\/23301"}],"wp:attachment":[{"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=23282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=23282"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=23282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}