{"id":1083,"date":"2023-07-13T15:00:44","date_gmt":"2023-07-13T06:00:44","guid":{"rendered":"https:\/\/www.miraiserver.ne.jp\/column\/?p=1083"},"modified":"2025-08-18T16:17:58","modified_gmt":"2025-08-18T07:17:58","slug":"about_centos-apache","status":"publish","type":"post","link":"https:\/\/www.miraiserver.ne.jp\/column\/about_centos-apache\/","title":{"rendered":"CentOS\u3068Apache\u3067\u306eWeb\u30b5\u30fc\u30d0\u30fc\u69cb\u7bc9\u65b9\u6cd5\u3010\u521d\u5fc3\u8005\u5411\u3051\u3011"},"content":{"rendered":"<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-4394 size-full\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/07\/CentOS\u3068Apache\u3067\u306eWeb\u30b5\u30fc\u30d0\u30fc\u69cb\u7bc9\u65b9\u6cd5\u3010\u521d\u5fc3\u8005\u5411\u3051\u3011.webp\" alt=\"\" width=\"900\" height=\"500\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/07\/CentOS\u3068Apache\u3067\u306eWeb\u30b5\u30fc\u30d0\u30fc\u69cb\u7bc9\u65b9\u6cd5\u3010\u521d\u5fc3\u8005\u5411\u3051\u3011.webp 900w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/07\/CentOS\u3068Apache\u3067\u306eWeb\u30b5\u30fc\u30d0\u30fc\u69cb\u7bc9\u65b9\u6cd5\u3010\u521d\u5fc3\u8005\u5411\u3051\u3011-300x167.webp 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/07\/CentOS\u3068Apache\u3067\u306eWeb\u30b5\u30fc\u30d0\u30fc\u69cb\u7bc9\u65b9\u6cd5\u3010\u521d\u5fc3\u8005\u5411\u3051\u3011-640x356.webp 640w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/07\/CentOS\u3068Apache\u3067\u306eWeb\u30b5\u30fc\u30d0\u30fc\u69cb\u7bc9\u65b9\u6cd5\u3010\u521d\u5fc3\u8005\u5411\u3051\u3011-768x427.webp 768w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/>\u672c\u8a18\u4e8b\u3067\u306f\u3001<span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">CentOS Linux\u4e0a\u306bApache Web\u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9\u3059\u308b\u624b\u9806\u3092\u7d39\u4ecb\u3057\u307e\u3059<\/span>\u3002<\/p>\n<p><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u3069\u3061\u3089\u3082\u30d5\u30ea\u30fc\u3067\u5165\u624b\u3067\u304d\u308b\u306e\u3067\u3001PC\u3084\u4eee\u60f3\u30b5\u30fc\u30d0\u30fc\u306a\u3069\u74b0\u5883\u304c\u3042\u308c\u3070\u7121\u511f\u3067\u69cb\u7bc9\u3067\u304d\u307e\u3059<\/span>\u3002<\/p>\n<p>\u305c\u3072\u3053\u306e\u624b\u9806\u3092\u53c2\u8003\u306b\u5b9f\u969b\u306b\u69cb\u7bc9\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"cardlink\">\r\n    <a class=\"image\" href=\"https:\/\/www.miraiserver.ne.jp\/column\/about_centos7-initialization\/\">\r\n     <img src=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/07\/CentOS-7-\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u76f4\u5f8c\u306b\u884c\u3046\u521d\u671f\u8a2d\u5b9a\u3092\u7d39\u4ecb.webp\">\r\n    <\/a>\r\n    <div class=\"content\">\r\n     <div class=\"title_area\">\r\n      <p class=\"date\">2023.07.06<\/p>\r\n      <h4 class=\"title\">\r\n       <a href=\"https:\/\/www.miraiserver.ne.jp\/column\/about_centos7-initialization\/\">CentOS 7 \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u76f4\u5f8c\u306b\u884c\u3046\u521d\u671f\u8a2d\u5b9a\u3092\u7d39\u4ecb<\/a>\r\n      <\/h4>\r\n     <\/div>\r\n     <p class=\"desc\"><span>CentOS Linux\uff08\u4ee5\u4e0b\u3001CentOS\uff09\u306f\u3001RHEL\uff08Red Hat Enterprise Linux\uff09\u3068\u5b8c\u5168\u4e92\u63db\u3092\u76ee\u6307\u3057\u3066\u958b\u767a\u3055\u308c\u305f...<\/span><\/p>\r\n    <\/div>\r\n   <\/div>\n\n<div class=\"well2\" style=\"text-align: center;\">\n<p><strong>CentOS Linux<\/strong>\u3092<strong>VPS<\/strong>\u3067\u5229\u7528\u3059\u308b\u306a\u3089<strong style=\"font-size: 16px;\"><span style=\"color: #339966;\"><br \/>\n\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<br \/>\n<\/span><\/strong><strong><span style=\"color: #ff0000;\">\uff3c2\u9031\u9593\u7121\u6599\u30fb\u5168\u30d7\u30e9\u30f3SSD\u642d\u8f09\uff0f<\/span><br \/>\n<a class=\"q_custom_button q_custom_button3 animation_type1 rounded\" style=\"width: 400px; height: 70px;\" href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-frame&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\">\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u3092\u7121\u6599\u3067\u8a66\u3059<\/a><\/strong><\/p>\n<\/div>\n<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">\u76ee\u6b21<\/p><ul class=\"toc_list\"><li><a href=\"#i\"><span class=\"toc_number toc_depth_1\">1<\/span> \u4e8b\u524d\u8a2d\u5b9a<\/a><ul><li><a href=\"#i-2\"><span class=\"toc_number toc_depth_2\">1.1<\/span> \u524d\u63d0\u6761\u4ef6<\/a><\/li><li><a href=\"#wheel\"><span class=\"toc_number toc_depth_2\">1.2<\/span> \u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u3092wheel\u30b0\u30eb\u30fc\u30d7\u306b\u767b\u9332<\/a><\/li><li><a href=\"#SELinux\"><span class=\"toc_number toc_depth_2\">1.3<\/span> SELinux\u306e\u7121\u52b9\u5316<\/a><\/li><li><a href=\"#i-3\"><span class=\"toc_number toc_depth_2\">1.4<\/span> \u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a\u5909\u66f4<\/a><\/li><\/ul><\/li><li><a href=\"#Apache\"><span class=\"toc_number toc_depth_1\">2<\/span> Apache\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><ul><li><a href=\"#Apache-2\"><span class=\"toc_number toc_depth_2\">2.1<\/span> Apache\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li><li><a href=\"#Apache-3\"><span class=\"toc_number toc_depth_2\">2.2<\/span> Apache\u306e\u30d7\u30ed\u30bb\u30b9\u7ba1\u7406<\/a><\/li><li><a href=\"#Apache-4\"><span class=\"toc_number toc_depth_2\">2.3<\/span> Apache\u306e\u8a2d\u5b9a\u5909\u66f4<\/a><\/li><li><a href=\"#i-4\"><span class=\"toc_number toc_depth_2\">2.4<\/span> \u30c6\u30b9\u30c8\u30da\u30fc\u30b8\u306e\u524a\u9664<\/a><\/li><\/ul><\/li><li><a href=\"#i-5\"><span class=\"toc_number toc_depth_1\">3<\/span> \u307e\u3068\u3081<\/a><\/li><li><a href=\"#CentOS_LinuxVPS\"><span class=\"toc_number toc_depth_1\">4<\/span> CentOS Linux\u3092VPS\u3067\u5229\u7528\u3059\u308b\u306a\u3089\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<\/a><\/li><\/ul><\/div>\n<h2 class=\"styled_h2\"><span id=\"i\">\u4e8b\u524d\u8a2d\u5b9a<\/span><\/h2>\n<h3 class=\"styled_h3\"><span id=\"i-2\">\u524d\u63d0\u6761\u4ef6<\/span><\/h3>\n<p>\u4eca\u56de\u4f7f\u7528\u3059\u308b\u4eee\u60f3\u30de\u30b7\u30f3\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul style=\"list-style-type: disc;\">\n<li>CPU\uff1a2vCPU<\/li>\n<li>Memory\uff1a4GB<\/li>\n<li>Disk\uff1a50GB<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>CentOS\u3001Apache\u306f\u4ee5\u4e0b\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul style=\"list-style-type: disc;\">\n<li>CentOS\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\uff1aCentOS Linux release 7.9.2009\uff08Core\uff09<\/li>\n<li>Apache\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\uff1aApache 2.4.6\uff08CentOS\uff09<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u307e\u305f\u3001\u30b3\u30de\u30f3\u30c9\u306e\u6a19\u8a18\u306b\u3064\u3044\u3066\u306f\u3001\u5b9f\u969b\u306b\u5165\u529b\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3092<strong>\u592a\u5b57<\/strong>\u3001\u88dc\u8db3\u306e\u5185\u5bb9\u3092<strong><span style=\"color: #3366ff;\">\u9752\u5b57<\/span><\/strong>\u3067\u8a18\u8f09\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2><a href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-117 size-full\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a.png\" alt=\"Unix\u7cfbOS\u5c02\u9580\u306e\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u300c\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u300d\" width=\"728\" height=\"90\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a.png 728w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a-300x37.png 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a-640x79.png 640w\" sizes=\"(max-width: 728px) 100vw, 728px\" \/><\/a><\/h2>\n<h3 class=\"styled_h3\"><span id=\"wheel\">\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u3092wheel\u30b0\u30eb\u30fc\u30d7\u306b\u767b\u9332<\/span><\/h3>\n<p><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">CentOS\u306b\u5bfe\u3057\u3066Apache Web\u30b5\u30fc\u30d0\u30fc\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306b\u306f\u3001\u7ba1\u7406\u8005\u6a29\u9650\u304c\u5fc5\u8981\u3067\u3059<\/span>\u3002<\/p>\n<p><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">root\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u76f4\u63a5\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u4f7f\u7528\u3059\u308b\u306e\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u30ea\u30b9\u30af\u304c\u3042\u308b\u305f\u3081\u3001\u7ba1\u7406\u8005\u6a29\u9650\u3078\u306e\u5b9f\u884c\u3092\u8a31\u53ef\u3059\u308b\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u3092wheel\u30b0\u30eb\u30fc\u30d7\u306b\u8ffd\u52a0\u3057\u307e\u3059<\/span>\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u306f\u3001root\u30e6\u30fc\u30b6\u30fc\u3067\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\uff08\u4ee5\u4e0b\u306e\u4f8b\u3067\u306f\u3001testuser\uff09\u3092wheel\u30b0\u30eb\u30fc\u30d7\u306b\u8ffd\u52a0\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\"># <strong>usermod -G wheel testuser<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4eca\u5f8c\u7ba1\u7406\u8005\u6a29\u9650\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001root\u30e6\u30fc\u30b6\u30fc\u3067\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u5fc5\u8981\u306b\u5fdc\u3058\u3066su\u30b3\u30de\u30f3\u30c9\u3067root\u30e6\u30fc\u30b6\u30fc\u306b\u5207\u308a\u66ff\u3048\u305f\u4e0a\u3067\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<h3 class=\"styled_h3\"><span id=\"SELinux\">SELinux\u306e\u7121\u52b9\u5316<\/span><\/h3>\n<p>CentOS\u306b\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u30e6\u30fc\u30b6\u30fc\u3092\u5236\u5fa1\u3059\u308b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u6a5f\u80fd\u300cSELinux\u300d\u304c\u6a19\u6e96\u3067\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u3053\u306e\u6a5f\u80fd\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u3068\u3001Apache\u306b\u4e88\u671f\u305b\u306c\u5f71\u97ff\u3092\u53ca\u307c\u3057\u3066\u3057\u307e\u3046\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u4e8b\u524d\u306bSELinux\u3092\u7121\u52b9\u5316\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>SELinux\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p class=\"well2\"># <strong>getenforce<br \/>\n<\/strong>Enforcing\u3000<span style=\"color: #3366ff;\"><strong>\u203bSELinux<\/strong><strong>\u6709\u52b9<\/strong><\/span><\/p>\n<p>\u3082\u3057\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308c\u3070\u3001\u7121\u52b9\u5316\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>SELinux\u3092\u7121\u52b9\u5316\u3059\u308b\u306b\u306f\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u300c\/etc\/selinux\/config\u300d\u306e\u5185\u5bb9\u3092\u4fee\u6b63\u3057\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\"># <strong>vi \/etc\/selinux\/config<\/strong><\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<p><span style=\"color: #3366ff;\"><strong>\u3010\u5909\u66f4\u524d\u3011<\/strong><\/span><\/p>\n<p><strong>SELINUX=enforcing<\/strong><\/p>\n<p><span style=\"color: #3366ff;\"><strong>\u3010\u5909\u66f4\u5f8c\u3011<\/strong><\/span><\/p>\n<p><strong>SELINUX=disabled<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4fee\u6b63\u5f8c\u3001\u8a2d\u5b9a\u3092\u6709\u52b9\u306b\u3059\u308b\u305f\u3081\u3001CentOS\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-thumbnail wp-image-4388\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/07\/\u753b\u50cf2-1-527x360.webp\" alt=\"\" width=\"527\" height=\"360\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/07\/\u753b\u50cf2-1-527x360.webp 527w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/07\/\u753b\u50cf2-1-300x205.webp 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/07\/\u753b\u50cf2-1.webp 602w\" sizes=\"(max-width: 527px) 100vw, 527px\" \/><\/p>\n<p style=\"padding-left: 40px;\"><strong><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u203b\u6ce8\u610f<\/span><\/strong><\/p>\n<p style=\"padding-left: 40px;\"><strong><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u3053\u306e\u8a2d\u5b9a\u5909\u66f4\u306f\u30b9\u30da\u30eb\u30df\u30b9\u7b49\u304c\u306a\u3044\u3088\u3046\u3001\u5341\u5206\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/span><\/strong><\/p>\n<p style=\"padding-left: 40px;\"><strong><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u8a2d\u5b9a\u3092\u9593\u9055\u3048\u305f\u5834\u5408\u3001CentOS\u304c\u8d77\u52d5\u3057\u306a\u304f\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>CentOS\u304c\u8d77\u52d5\u3057\u305f\u3089\u3001SELinux\u304c\u7121\u52b9\u5316\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p class=\"well2\"># <strong>getenforce<br \/>\n<\/strong>Disabled\u3000<span style=\"color: #3366ff;\"><strong>\u203bSELinux<\/strong><strong>\u7121\u52b9<\/strong><\/span><\/p>\n<h2><a href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-117 size-full\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a.png\" alt=\"Unix\u7cfbOS\u5c02\u9580\u306e\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u300c\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u300d\" width=\"728\" height=\"90\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a.png 728w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a-300x37.png 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a-640x79.png 640w\" sizes=\"(max-width: 728px) 100vw, 728px\" \/><\/a><\/h2>\n<h3 class=\"styled_h3\"><span id=\"i-3\">\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a\u5909\u66f4<\/span><\/h3>\n<p>CentOS 7\u4ee5\u964d\u3067\u306f\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u6a5f\u80fd\u3068\u3057\u3066\u300cfirewalld\u300d\u304c\u6a19\u6e96\u3067\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u300cpublic\u300d\u30be\u30fc\u30f3\u304c\u5272\u308a\u5f53\u3066\u3089\u308c\u3066\u3044\u307e\u3059\u304c\u3001http\/https\u306f\u901a\u4fe1\u304c\u8a31\u53ef\u3055\u308c\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u3053\u306e\u307e\u307e\u3067\u306fApache\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3082\u901a\u4fe1\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>public\u30be\u30fc\u30f3\u306e\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\"># <strong>firewall-cmd&#8211;<!--StartFragment --><span class=\"cf0\" style=\"color: #3366ff;\">(\u2190 &#8211; \u3092\uff12\u56de\u91cd\u306d\u308b)<\/span><!--EndFragment --><\/strong><strong>list-all<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-thumbnail wp-image-4389\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/07\/\u753b\u50cf3-1-563x360.webp\" alt=\"\" width=\"563\" height=\"360\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/07\/\u753b\u50cf3-1-563x360.webp 563w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/07\/\u753b\u50cf3-1-300x192.webp 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/07\/\u753b\u50cf3-1.webp 602w\" sizes=\"(max-width: 563px) 100vw, 563px\" \/><\/p>\n<p>\u4e0a\u8a18\u4f8b\u3060\u3068\u3001\u300cdhcpv6-client\u300d\u300cssh\u300d\u306e2\u3064\u306e\u307f\u304c\u8a31\u53ef\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306fApache\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u305f\u3081\u3001\u4e8b\u524d\u306b\u300chttp\u300d\u300chttps\u300d\u3092\u958b\u304f\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p class=\"well2\"><strong># firewall-cmd &#8211;add-service=http &#8211;zone=public &#8211;permanent<\/strong><br \/>\n# <strong>firewall-cmd &#8211;add-service=https &#8211;zone=public &#8211;permanent<\/strong><\/p>\n<p>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u305f\u3089\u3001\u5909\u66f4\u5185\u5bb9\u3092\u53cd\u6620\u3057\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\"># <strong>firewall-cmd &#8211;reload<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u518d\u5ea6\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3059\u308b\u3068\u3001\u300chttp\u300d\u300chttps\u300d\u304c\u8ffd\u52a0\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-thumbnail wp-image-4390\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/07\/\u753b\u50cf4-1-563x360.webp\" alt=\"\" width=\"563\" height=\"360\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/07\/\u753b\u50cf4-1-563x360.webp 563w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/07\/\u753b\u50cf4-1-300x192.webp 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/07\/\u753b\u50cf4-1.webp 602w\" sizes=\"(max-width: 563px) 100vw, 563px\" \/><\/p>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001Apache\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u3001\u901a\u4fe1\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2><a href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-117 size-full\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a.png\" alt=\"Unix\u7cfbOS\u5c02\u9580\u306e\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u300c\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u300d\" width=\"728\" height=\"90\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a.png 728w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a-300x37.png 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a-640x79.png 640w\" sizes=\"(max-width: 728px) 100vw, 728px\" \/><\/a><\/h2>\n<h2 class=\"styled_h2\"><span id=\"Apache\">Apache\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span><\/h2>\n<h3 class=\"styled_h3\"><span id=\"Apache-2\">Apache\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span><\/h3>\n<p>\u305d\u308c\u3067\u306f\u3001wheel\u30b0\u30eb\u30fc\u30d7\u306b\u8ffd\u52a0\u3057\u305f\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\uff08testuser\uff09\u3092\u4f7f\u3063\u3066\u3001sudo\u30b3\u30de\u30f3\u30c9\u304b\u3089Apache\uff08httpd\u30d1\u30c3\u30b1\u30fc\u30b8\uff09\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>root\u30e6\u30fc\u30b6\u30fc\u306b\u5207\u308a\u66ff\u3048\u308b\u306b\u306f\u3001su\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p class=\"well2\"><strong>$ su &#8211;<\/strong><br \/>\n\u30d1\u30b9\u30ef\u30fc\u30c9\uff1a\u3000<span style=\"color: #3366ff;\"><strong>\u203broot\u30e6\u30fc\u30b6\u30fc\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b<\/strong><\/span><br \/>\n#\u3000\u3000<span style=\"color: #3366ff;\"><strong>\u203broot\u30e6\u30fc\u30b6\u30fc\u306b\u306a\u3063\u305f<\/strong><\/span><\/p>\n<p>\u6b21\u306b\u3001Apache\uff08httpd\u30d1\u30c3\u30b1\u30fc\u30b8\uff09\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\"># <strong>yum -y install httpd<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u76f4\u5f8c\u306f\u3001\u307e\u3060\u8d77\u52d5\u3057\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u78ba\u8a8d\u3059\u308b\u3068\u300cinactive(dead)\u300d\u3068\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\"># <strong>service httpd status<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4391\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/07\/\u753b\u50cf5-1.webp\" alt=\"\" width=\"602\" height=\"267\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/07\/\u753b\u50cf5-1.webp 602w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/07\/\u753b\u50cf5-1-300x133.webp 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/p>\n<p>\u305d\u306e\u305f\u3081\u3001Apache\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\"># <strong>service httpd start<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5b9f\u969b\u306b\u30d6\u30e9\u30a6\u30b6\u3092\u8d77\u52d5\u3057\u4ee5\u4e0b\u306eURL\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001Apache\u306e\u30c6\u30b9\u30c8\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p class=\"well2\">\u203b\u30d6\u30e9\u30a6\u30b6\u3092\u8d77\u52d5\u3057\u3001\u4ee5\u4e0b\u306eURL\u306b\u30a2\u30af\u30bb\u30b9<br \/>\n<span style=\"color: #3366ff;\">http:\/\/[Web\u30b5\u30fc\u30d0\u30fc\u306eIP\u30a2\u30c9\u30ec\u30b9\u307e\u305f\u306f\u30db\u30b9\u30c8\u540d]<\/span><br \/>\n\u307e\u305f\u306f<br \/>\n\u203bWeb\u30b5\u30fc\u30d0\u30fc\u4e0a\u3067\u30d6\u30e9\u30a6\u30b6\u3092\u8d77\u52d5\u3057\u3001\u4ee5\u4e0b\u306eURL\u3092\u5b9f\u884c<br \/>\n<span style=\"color: #3366ff;\">http:\/\/localhost<\/span><\/p>\n<h3><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-thumbnail wp-image-4392\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/07\/\u753b\u50cf6-600x360.webp\" alt=\"\" width=\"600\" height=\"360\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/07\/\u753b\u50cf6-600x360.webp 600w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/07\/\u753b\u50cf6-300x180.webp 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/07\/\u753b\u50cf6.webp 602w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/h3>\n<h3 class=\"styled_h3\"><span id=\"Apache-3\">Apache\u306e\u30d7\u30ed\u30bb\u30b9\u7ba1\u7406<\/span><\/h3>\n<p>\u3053\u3053\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fApache\u306e\u30d7\u30ed\u30bb\u30b9\u7ba1\u7406\u306e\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3001\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u76f4\u5f8c\u306f\u3059\u3067\u306bWeb\u30b5\u30fc\u30d0\u30fc\u304c\u8d77\u52d5\u3057\u305f\u72b6\u614b\u3067\u3059\u304c\u3001\u505c\u6b62\u3084\u8d77\u52d5\u3001\u81ea\u52d5\u8d77\u52d5\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u305f\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n<table id=\"tablepress-71\" class=\"tablepress tablepress-id-71\">\n<thead>\n<tr class=\"row-1 odd\">\n\t<th class=\"column-1\">\u64cd\u4f5c<\/th><th class=\"column-2\">\u30b3\u30de\u30f3\u30c9<\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-hover\">\n<tr class=\"row-2 even\">\n\t<td class=\"column-1\">Web\u30b5\u30fc\u30d0\u30fc\u505c\u6b62<\/td><td class=\"column-2\"># systemctl stop httpd<\/td>\n<\/tr>\n<tr class=\"row-3 odd\">\n\t<td class=\"column-1\">Web\u30b5\u30fc\u30d0\u30fc\u8d77\u52d5<\/td><td class=\"column-2\"># systemctl start httpd<\/td>\n<\/tr>\n<tr class=\"row-4 even\">\n\t<td class=\"column-1\">Web\u30b5\u30fc\u30d0\u30fc\u518d\u8d77\u52d5<\/td><td class=\"column-2\"># systemctl restart httpd<\/td>\n<\/tr>\n<tr class=\"row-5 odd\">\n\t<td class=\"column-1\">\u81ea\u52d5\u8d77\u52d5\u8a2d\u5b9a\u306e\u78ba\u8a8d<\/td><td class=\"column-2\"># systemctl is-enabled httpd.service<\/td>\n<\/tr>\n<tr class=\"row-6 even\">\n\t<td class=\"column-1\">\u81ea\u52d5\u8d77\u52d5\u306e\u6709\u52b9\u5316<\/td><td class=\"column-2\"># systemctl enable httpd.service<\/td>\n<\/tr>\n<tr class=\"row-7 odd\">\n\t<td class=\"column-1\">\u81ea\u52d5\u8d77\u52d5\u306e\u7121\u52b9\u5316<\/td><td class=\"column-2\"># systemctl disable httpd.service<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-71 from cache -->\n<h2><a href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-117 size-full\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a.png\" alt=\"Unix\u7cfbOS\u5c02\u9580\u306e\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u300c\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u300d\" width=\"728\" height=\"90\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a.png 728w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a-300x37.png 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a-640x79.png 640w\" sizes=\"(max-width: 728px) 100vw, 728px\" \/><\/a><\/h2>\n<h3 class=\"styled_h3\"><span id=\"Apache-4\">Apache\u306e\u8a2d\u5b9a\u5909\u66f4<\/span><\/h3>\n<p>Apache\u306e\u8a2d\u5b9a\u306f\u3001\u300c\/etc\/httpd\/conf\/httpd.conf\u300d\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u3001\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\"># <strong>vi \/etc\/httpd\/conf\/httpd.conf<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4ee5\u4e0b\u3001\u5909\u66f4\u3059\u3079\u304d\u30dd\u30a4\u30f3\u30c8\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul style=\"list-style-type: disc;\">\n<li>\u30b5\u30fc\u30d0\u30fc\u7ba1\u7406\u8005\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\uff0886\u884c\u76ee\uff09<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u30a8\u30e9\u30fc\u30da\u30fc\u30b8\u306b\u8868\u793a\u3055\u308c\u308b\u3001\u30b5\u30fc\u30d0\u30fc\u7ba1\u7406\u8005\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u4efb\u610f\u306e\u30a2\u30c9\u30ec\u30b9\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\">ServerAdmin <strong>root@localhost<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul style=\"list-style-type: disc;\">\n<li>\u30b5\u30fc\u30d0\u30fc\u306e\u30db\u30b9\u30c8\u540d\uff0895\u884c\u76ee\uff09<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u30b5\u30fc\u30d0\u30fc\u540d\u304c\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u516c\u958b\u7528\u30db\u30b9\u30c8\u540d\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\">ServerName <strong>www.example.com:80<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul style=\"list-style-type: disc;\">\n<li>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\uff08119\u884c\u76ee\uff09<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Web\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u914d\u7f6e\u5834\u6240\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\">DocumentRoot \u201c<strong>\/var\/www.html<\/strong>\u201d<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5909\u66f4\u3057\u305f\u5834\u5408\u306f\u3001\u3042\u308f\u305b\u3066\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u8a2d\u5b9a\u306b\u95a2\u3059\u308b\u5185\u5bb9\u3082\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<p>\uff08124\u884c\u76ee\uff09<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\">&lt;Directory \u201c<strong>\/var\/www<\/strong>\u201d&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\uff08131\u884c\u76ee\uff09<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\">&lt;Directory \u201c<strong>\/var\/www\/html<\/strong>\u201d&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul style=\"list-style-type: disc;\">\n<li>\u30c7\u30d5\u30a9\u30eb\u30c8\u30ad\u30e3\u30e9\u30af\u30bf\u30bb\u30c3\u30c8\uff08316\u884c\u76ee\uff09<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30ad\u30e3\u30e9\u30af\u30bf\u30bb\u30c3\u30c8\u304cUTF-8\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u74b0\u5883\u306b\u3088\u3063\u3066\u306f\u65e5\u672c\u8a9e\u304c\u6587\u5b57\u5316\u3051\u3057\u3066\u3057\u307e\u3046\u3053\u3068\u304c\u3042\u308b\u305f\u3081\u3001\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\">AddDefaultCharset <strong>none<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8a2d\u5b9a\u5909\u66f4\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001httpd\u3092\u518d\u8d77\u52d5\u3057\u3001\u5909\u66f4\u5185\u5bb9\u3092\u53cd\u6620\u3057\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\"># <strong>systemctl restart httpd<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 class=\"styled_h3\"><span id=\"i-4\">\u30c6\u30b9\u30c8\u30da\u30fc\u30b8\u306e\u524a\u9664<\/span><\/h3>\n<p>Apache\u304c\u8d77\u52d5\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u969b\u306b\u53c2\u7167\u3057\u305f\u30c6\u30b9\u30c8\u30da\u30fc\u30b8\u306b\u306f\u3001OS\u306a\u3069\u306e\u60c5\u5831\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u7b2c\u4e09\u8005\u306b\u898b\u3089\u308c\u308b\u3068\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ea\u30b9\u30af\u3068\u306a\u308b\u305f\u3081\u3001\u9000\u907f\u3059\u308b\u304b\u524a\u9664\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f\u3001\u524a\u9664\u3059\u308b\u5834\u5408\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\"># <strong>rm \/etc\/httpd\/conf.d\/welcome.conf<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2><a href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-117 size-full\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a.png\" alt=\"Unix\u7cfbOS\u5c02\u9580\u306e\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u300c\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u300d\" width=\"728\" height=\"90\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a.png 728w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a-300x37.png 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a-640x79.png 640w\" sizes=\"(max-width: 728px) 100vw, 728px\" \/><\/a><\/h2>\n<h2 class=\"styled_h2\"><span id=\"i-5\">\u307e\u3068\u3081<\/span><\/h2>\n<p>\u4eca\u56de\u306fCentOS\u4e0a\u3067Apache Web\u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9\u3059\u308b\u624b\u9806\u3092\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u7121\u6599\u3067\u69cb\u7bc9\u3067\u304d\u308b\u306e\u3067\u3001\u691c\u8a0e\u3055\u308c\u3066\u3044\u308b\u65b9\u306f\u672c\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u69cb\u7bc9\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2 class=\"styled_h2\"><span id=\"CentOS_LinuxVPS\">CentOS Linux\u3092VPS\u3067\u5229\u7528\u3059\u308b\u306a\u3089\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<\/span><\/h2>\n<p><a href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\"><strong>\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<\/strong><\/a>\u306f\u3001\u30a2\u30b7\u30b9\u30c8\u30a2\u30c3\u30d7\u682a\u5f0f\u4f1a\u793e\u304c\u63d0\u4f9b\u3057\u3066\u3044\u308b\u3001<strong>Unix\u7cfb\u30b5\u30fc\u30d0\u30fc<\/strong>\u306b\u7279\u5316\u3057\u305f\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002<\/p>\n<p><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\"><a href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\"><strong>\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u306eVPS<\/strong><\/a>\u3067\u306f\u3001<strong>\u9ad8\u901f\u51e6\u7406\u304c\u53ef\u80fd\u306aSSD<\/strong>\u3092<strong>\u5168\u30d7\u30e9\u30f3\u306b\u642d\u8f09<\/strong>\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<p><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">OS\u306f\u3001<b>Ubuntu<\/b>\u3084<b>Debian<\/b>\u3001<b>AlmaLinux<\/b>\u306a\u3069\u306e\u8c4a\u5bcc\u306a\u30e9\u30a4\u30f3\u30a2\u30c3\u30d7\u304b\u3089\u9078\u629e\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><a href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\"><strong>2\u9031\u9593\u7121\u6599\u30c8\u30e9\u30a4\u30a2\u30eb<\/strong><\/a>\u3092\u5b9f\u65bd\u3057\u3066\u304a\u308a\u307e\u3059\u306e\u3067\u3001\u307e\u305a\u306f\u304a\u6c17\u8efd\u306b\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.miraiserver.ne.jp\/\" target=\"_blank\" rel=\"noopener\">\u25bc\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u25bc<\/a><a href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-111 size-full\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_336x280_a.png\" alt=\"Unix\u7cfbOS\u5c02\u9580\u306e\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u300c\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u300d\" width=\"336\" height=\"280\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_336x280_a.png 336w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_336x280_a-300x250.png 300w\" sizes=\"(max-width: 336px) 100vw, 336px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\u672c\u8a18\u4e8b\u3067\u306f\u3001CentOS Linux\u4e0a\u306bApache Web\u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9\u3059\u308b\u624b\u9806\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002 \u3069\u3061\u3089\u3082\u30d5\u30ea\u30fc\u3067\u5165\u624b\u3067\u304d\u308b\u306e\u3067\u3001PC\u3084\u4eee\u60f3\u30b5\u30fc\u30d0\u30fc\u306a\u3069\u74b0\u5883\u304c\u3042\u308c\u3070\u7121\u511f\u3067\u69cb\u7bc9\u3067\u304d\u307e\u3059\u3002 \u305c\u3072\u3053\u306e\u624b\u9806\u3092\u53c2\u8003\u306b\u5b9f\u969b\u306b\u69cb\u7bc9\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002 CentOS Linux\u3092VPS\u3067\u5229\u7528\u3059\u308b\u306a\u3089 \u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc \uff3c2\u9031\u9593\u7121\u6599\u30fb\u5168\u30d7\u30e9\u30f3SSD\u642d\u8f09\uff0f \u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u3092\u7121\u6599\u3067\u8a66\u3059 \u76ee\u6b211 \u4e8b\u524d\u8a2d\u5b9a1.1 \u524d\u63d0\u6761\u4ef61.2 \u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u3092wheel\u30b0\u30eb\u30fc\u30d7\u306b\u767b\u93321.3 SELinux\u306e\u7121\u52b9\u53161.4 \u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a\u5909\u66f42 Apache\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb2.1 Apache\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb2.2 Apache\u306e\u30d7\u30ed\u30bb\u30b9\u7ba1\u74062.3 Apache\u306e\u8a2d\u5b9a\u5909\u66f42.4 \u30c6\u30b9\u30c8\u30da\u30fc\u30b8\u306e\u524a\u96643 \u307e\u3068\u30814 CentOS Linux\u3092VPS\u3067\u5229\u7528\u3059\u308b\u306a\u3089\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc \u4e8b\u524d\u8a2d\u5b9a \u524d\u63d0\u6761\u4ef6 \u4eca\u56de\u4f7f\u7528\u3059\u308b\u4eee\u60f3\u30de\u30b7\u30f3\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002 CPU\uff1a2vCPU Memory\uff1a4GB Disk\uff1a50GB CentOS\u3001Apache\u306f\u4ee5\u4e0b\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002 CentOS\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\uff1aCentOS Linux release 7.9.2009\uff08Core\uff09 Apache\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\uff1aApache 2.4.6\uff08CentOS\uff09 \u307e\u305f\u3001\u30b3\u30de\u30f3\u30c9\u306e\u6a19\u8a18\u306b\u3064\u3044\u3066\u306f\u3001\u5b9f\u969b\u306b\u5165\u529b\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3092\u592a\u5b57\u3001\u88dc\u8db3\u306e\u5185\u5bb9\u3092\u9752\u5b57\u3067\u8a18\u8f09\u3057\u3066\u3044\u307e\u3059\u3002 \u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u3092wheel\u30b0\u30eb\u30fc\u30d7\u306b\u767b\u9332 CentOS\u306b\u5bfe\u3057\u3066Apache Web\u30b5\u30fc\u30d0\u30fc\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306b\u306f\u3001\u7ba1\u7406\u8005\u6a29\u9650\u304c\u5fc5\u8981\u3067\u3059\u3002 root\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u76f4\u63a5\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u4f7f\u7528\u3059\u308b\u306e\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u30ea\u30b9\u30af\u304c\u3042\u308b\u305f\u3081\u3001\u7ba1\u7406\u8005\u6a29\u9650\u3078\u306e\u5b9f\u884c\u3092\u8a31\u53ef\u3059\u308b\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u3092wheel\u30b0\u30eb\u30fc\u30d7\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002 &nbsp; \u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u306f\u3001root\u30e6\u30fc\u30b6\u30fc\u3067\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\uff08\u4ee5\u4e0b\u306e\u4f8b\u3067\u306f\u3001testuser\uff09\u3092wheel\u30b0\u30eb\u30fc\u30d7\u306b\u8ffd\u52a0\u3057\u3066\u3044\u307e\u3059\u3002 # usermod -G wheel testuser \u4eca\u5f8c\u7ba1\u7406\u8005\u6a29\u9650\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001root\u30e6\u30fc\u30b6\u30fc\u3067\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u5fc5\u8981\u306b\u5fdc\u3058\u3066su\u30b3\u30de\u30f3\u30c9\u3067root\u30e6\u30fc\u30b6\u30fc\u306b\u5207\u308a\u66ff\u3048\u305f\u4e0a\u3067\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002 SELinux\u306e\u7121\u52b9\u5316 CentOS\u306b\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u30e6\u30fc\u30b6\u30fc\u3092\u5236\u5fa1\u3059\u308b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u6a5f\u80fd\u300cSELinux\u300d\u304c\u6a19\u6e96\u3067\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002 \u3057\u304b\u3057\u3001\u3053\u306e\u6a5f\u80fd\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u3068\u3001Apache\u306b\u4e88\u671f\u305b\u306c\u5f71\u97ff\u3092\u53ca\u307c\u3057\u3066\u3057\u307e\u3046\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002 \u305d\u306e\u305f\u3081\u3001\u4e8b\u524d\u306bSELinux\u3092\u7121\u52b9\u5316\u3057\u3066\u304a\u304d\u307e\u3059\u3002 &nbsp; [&hellip;]","protected":false},"author":1,"featured_media":4394,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[188,192],"tags":[72,164,199],"_links":{"self":[{"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/posts\/1083"}],"collection":[{"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/comments?post=1083"}],"version-history":[{"count":13,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/posts\/1083\/revisions"}],"predecessor-version":[{"id":4395,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/posts\/1083\/revisions\/4395"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/media\/4394"}],"wp:attachment":[{"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/media?parent=1083"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/categories?post=1083"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/tags?post=1083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}