{"id":145,"date":"2021-10-14T16:58:52","date_gmt":"2021-10-14T07:58:52","guid":{"rendered":"https:\/\/software.satoshis.jp\/?p=145"},"modified":"2021-10-14T16:58:52","modified_gmt":"2021-10-14T07:58:52","slug":"ubuntu%e3%81%aeapache2%e3%82%92%e3%82%a2%e3%83%83%e3%83%97%e3%83%87%e3%83%bc%e3%83%88%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/software.satoshis.jp\/?p=145","title":{"rendered":"Ubuntu\u306eapache2\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/software.satoshis.jp\/wp-content\/uploads\/2021\/10\/apache2.4.51.png\" alt=\"\" width=\"100%\" class=\"alignnone\" \/><\/p>\n<hr \/>\n<p>\u3000apache2\u3067\u8106\u5f31\u6027\u304c\u898b\u3064\u304b\u3063\u305f\u305f\u3081\u306b\u3001\u4fee\u6b63\u7248\u304c\u516c\u958b\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u3000\u8a73\u3057\u304f\u306f<a href=\"https:\/\/downloads.apache.org\/httpd\/Announcement2.4.html\">\u3053\u3061\u3089<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3000\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306f 2.4.51 \u3067\u3059\u3002<\/p>\n<p>\u3000\u307e\u305a\u306f\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p><code><br \/>\n# add-apt-repository ppa:ondrej\/apache2<br \/>\n This branch follows latest Apache2 packages as maintained by the Debian Apache2 team with couple of compatibility patches on top.<\/p>\n<p>It also includes some widely used Apache 2 modules (if you need some other feel free to send me a request).<\/p>\n<p>IMPORTANT: The <foo>-backports is now required on older Ubuntu releases.<\/p>\n<p>BUGS&FEATURES: This PPA now has a issue tracker: https:\/\/deb.sury.org\/#bug-reporting<\/p>\n<p>PLEASE READ: If you like my work and want to give me a little motivation, please consider donating: https:\/\/deb.sury.org\/#donate<br \/>\n More info: https:\/\/launchpad.net\/~ondrej\/+archive\/ubuntu\/apache2<br \/>\nPress [ENTER] to continue or Ctrl-c to cancel adding it.<br \/>\n<\/code><\/p>\n<p>\u3000\u30a8\u30f3\u30bf\u30fc\u30ad\u30fc\u3092\u62bc\u3059\u3068\u3001\u3044\u308d\u3044\u308d\u3068\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3000\u5ff5\u306e\u305f\u3081\u3001apt-get\u3082\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p><code><br \/>\n# apt-get update<br \/>\nHit:1 http:\/\/jp.archive.ubuntu.com\/ubuntu focal InRelease<br \/>\nHit:2 http:\/\/jp.archive.ubuntu.com\/ubuntu focal-updates InRelease<br \/>\nHit:3 http:\/\/jp.archive.ubuntu.com\/ubuntu focal-backports InRelease<br \/>\nHit:4 http:\/\/jp.archive.ubuntu.com\/ubuntu focal-security InRelease<br \/>\nHit:5 http:\/\/ppa.launchpad.net\/ondrej\/apache2\/ubuntu focal InRelease<br \/>\nHit:6 http:\/\/ppa.launchpad.net\/ondrej\/php\/ubuntu focal InRelease<br \/>\nReading package lists... Done<br \/>\n<\/code><\/p>\n<p>\u3000\u3053\u308c\u3067\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306e\u6e96\u5099\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u3000apache2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3055\u308c\u308b\u307f\u305f\u3044\u3067\u3059\u3002<\/p>\n<p><code><br \/>\n# apt-get install apache2<br \/>\nReading package lists... Done<br \/>\nBuilding dependency tree<br \/>\nReading state information... Done<br \/>\nThe following package was automatically installed and is no longer required:<br \/>\n  liblua5.2-0<br \/>\nUse 'apt autoremove' to remove it.<br \/>\nThe following additional packages will be installed:<br \/>\n  apache2-bin apache2-data apache2-utils libapr1 liblua5.3-0<br \/>\nSuggested packages:<br \/>\n  apache2-doc apache2-suexec-pristine | apache2-suexec-custom www-browser<br \/>\nThe following NEW packages will be installed:<br \/>\n  liblua5.3-0<br \/>\nThe following packages will be upgraded:<br \/>\n  apache2 apache2-bin apache2-data apache2-utils libapr1<br \/>\n5 upgraded, 1 newly installed, 0 to remove and 14 not upgraded.<br \/>\nNeed to get 1,987 kB of archives.<br \/>\nAfter this operation, 640 kB of additional disk space will be used.<br \/>\nDo you want to continue? [Y\/n]<br \/>\n<\/code><\/p>\n<p>\u3000Y\u3092\u5165\u529b\u3057\u3066\u30a8\u30f3\u30bf\u30fc\u3092\u62bc\u3057\u3066\u7d99\u7d9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u3000\u3057\u3070\u3089\u304f\u5f85\u3064\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u7d42\u308f\u308a\u307e\u3059\u3002<\/p>\n<p>\u3000\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><code><br \/>\n# apache2 -v<br \/>\nServer version: Apache\/2.4.51 (Ubuntu)<br \/>\nServer built:   2021-10-07T19:17:29<br \/>\n<\/code><\/p>\n<p>\u3000\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u5909\u308f\u3063\u3066\u3044\u308b\u306e\u3067\u3001apache2\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<p><code><br \/>\n# systemctl restart apache2<br \/>\n<\/code><\/p>\n<p>\u3000Ubuntu\u3060\u306810\u5206\u7a0b\u5ea6\u3067apache2\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u3000\u7c21\u5358\u3067\u3059\u306d\u3002<\/p>\n<p>\u3000\u305d\u308c\u306b\u6bd4\u3079\u3066CentOS\u306f\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u307f\u305f\u3044\uff08\u3081\u3093\u3069\u304f\u3055\u30fc\uff09\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000apache2\u3067\u8106\u5f31\u6027\u304c\u898b\u3064\u304b\u3063\u305f\u305f\u3081\u306b\u3001\u4fee\u6b63\u7248\u304c\u516c\u958b\u3055\u308c\u307e\u3057\u305f\u3002 \u3000\u8a73\u3057\u304f\u306f\u3053\u3061\u3089\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002 \u3000\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306f 2.4.51 \u3067\u3059\u3002 \u3000\u307e\u305a\u306f\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002 # add-a &#8230; <\/p>\n","protected":false},"author":1,"featured_media":92,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,49],"tags":[51,50,52,53],"class_list":["post-145","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache","category-ubuntu","tag-apache2","tag-ubuntu","tag-52","tag-53"],"nelio_content":{"autoShareEndMode":"never","automationSources":{"useCustomSentences":false,"customSentences":[]},"efiAlt":"","efiUrl":"","followers":[1],"highlights":[],"isAutoShareEnabled":true,"networkImageIds":[],"permalinkQueryArgs":[],"series":[],"suggestedReferences":[]},"views":6216,"_links":{"self":[{"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts\/145","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=145"}],"version-history":[{"count":3,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts\/145\/revisions"}],"predecessor-version":[{"id":149,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts\/145\/revisions\/149"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/media\/92"}],"wp:attachment":[{"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=145"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}