{"id":1468,"date":"2011-05-04T01:04:57","date_gmt":"2011-05-03T16:04:57","guid":{"rendered":"http:\/\/bton.papalabs.net\/?p=1468"},"modified":"2011-05-04T21:23:37","modified_gmt":"2011-05-04T12:23:37","slug":"centos%e3%81%aevps%e3%82%b5%e3%83%bc%e3%83%90%e3%81%a7web%e3%82%b5%e3%83%bc%e3%83%90%ef%bc%88apache2%ef%bc%89%e8%a8%ad%e5%ae%9a%e3%81%97%e3%81%9f","status":"publish","type":"post","link":"https:\/\/bton.papalabs.net\/?p=1468","title":{"rendered":"centOS\u306eVPS\u30b5\u30fc\u30d0\u3067WEB\u30b5\u30fc\u30d0\uff08APACHE2\uff09\u8a2d\u5b9a\u3057\u305f"},"content":{"rendered":"<p>WEB\u30b5\u30fc\u30d0\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u3001\u307e\u305a\u3001WEB\u306e\u516c\u958b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u6240\u6709\u8005\uff1a\u30b0\u30eb\u30fc\u30d7\u304c\u3001FTP\u3067\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u306a\u4e00\u822c\u30e6\u30fc\u30b6\u306b\u5909\u66f4\u3057\u3066\u3042\u308b\u304b\u78ba\u8a8d\u3002<br \/>\n<strong>HTTPD\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u306f\u3001root\u304c\/var\/www\/html\/\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u306e\u6240\u6709\u8005\u306b\u306a\u3063\u3066\u304a\u308a\u3001\u3053\u306e\u307e\u307e\u3067\u306f\u3001FTP\u7d4c\u7531\u3067\u306e\u30a2\u30af\u30bb\u30b9\u3084\u30d5\u30a1\u30a4\u30eb\u306e\u7de8\u96c6\u304c\u3067\u304d\u306a\u3044\u3002<\/strong><br \/>\n\u300ccgi-bin\u300d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306a\u3069\u3082\u3001CGI\u3092\u4f7f\u3046\u306e\u3067\u3042\u308c\u3070\u3001\u5168\u3066\u30aa\u30fc\u30ca\u30fc\u30c1\u30a7\u30f3\u30b8\u3059\u308b\u3002<\/p>\n<p>\u3060\u3093\u3060\u3093\u9762\u5012\u306b\u306a\u3063\u3066\u304d\u305f\u306e\u3067\u3001\u5909\u66f4\u70b9\u3060\u3051\u3002<\/p>\n<ol>\n<li>Timeout 120\u3000\u2192<strong>300<\/strong>\u3000\u203b\u305d\u306e\u307e\u307e\u3067\u3082\u3044\u3044\u3051\u3069\u3001\u5b89\u3081\u306eVPS\u3068\u304b\u3067\u3001LIVE COMMERCE\u3068\u304bEC-CUBE\u306a\u3069\u3092\u4f7f\u3046\u306e\u3067\u3042\u308c\u3070\u9577\u3081\u306b\u3057\u3068\u304f\u3002<\/li>\n<li>KeepAlive Off\u3000\u2192<strong>On<\/strong>\u3000\u203b\u3069\u3063\u3061\u3067\u3082\u3044\u3044\u3002\u51e6\u7406\u306e\u52b9\u7387\u3092\u8003\u3048\u3066on\u306b\u3057\u3068\u304f\u3002<\/li>\n<li>MaxKeepAliveRequests 100\u3000\u2192<strong>500<\/strong>\u3000\u203b\u3053\u308c\u3082\u305d\u306e\u307e\u307e\u3067\u3082\u69cb\u308f\u306a\u3044\u3002\u30a2\u30af\u30bb\u30b9\u3084\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u591a\u3044\u51e6\u7406\u306e\u305f\u3081\u306b\u306f500\u304f\u3089\u3044\u304c\u52b9\u7387\u304c\u3044\u3044\u3002\uff08\u3089\u3057\u3044\uff09<\/li>\n<li>#ServerName www.example.com:80\u3000\u2192<strong>ServerName www.\u25cb\u25cb\u25cb.com:80<\/strong>\u3000\u203b\u30b3\u30e1\u30f3\u30c8\u3092\u53d6\u3063\u3066\u81ea\u5206\u306e\u30db\u30b9\u30c8\u540d\u306b\u5909\u66f4\u3059\u308b\u3002<\/li>\n<li>UseCanonicalName Off\u3000\u2192<strong>UseCanonicalName On<\/strong><\/li>\n<li>\u3053\u306e\u8fba\u306e\u8a2d\u5b9a\u306f\u3001\u4f7f\u3046\u30d6\u30ed\u30b0\u30bd\u30d5\u30c8\u3084CMS\u306a\u3069\u306b\u5408\u308f\u305b\u3066\u3042\u3068\u3067\u5909\u66f4\u3057\u3066OK\u3002\u307e\u305f\u3001<strong>\u300cAllowOverride\u300d\u3092\u6709\u52b9\u306b\u3057\u3066\u304a\u304f\u3053\u3068\u3067\u3001HTACCESS\u30d5\u30a1\u30a4\u30eb\u3067\u306e\u8a2d\u5b9a\u306e\u4e0a\u66f8\u304d\u304c\u3067\u304d\u308b\u69d8\u306b\u306a\u308b\u3002<\/strong><br \/>\n<Directory \"\/var\/www\/html\"><br \/>\n    Options Indexes FollowSymLinks\u3000\u2192<strong>Options Indexes FollowSymLinks ExecCGI<\/strong><br \/>\n    AllowOverride None\u3000\u2192   <strong>AllowOverride All<\/strong><br \/>\n    Order allow,deny<br \/>\n    Allow from all<br \/>\n<\/Directory>\n<\/li>\n<li>#<Directory \/home\/*\/public_html>\u3000\u2192\u8907\u6570\u30e6\u30fc\u30b6\u3067WEB\u30b5\u30a4\u30c8\u3092\u516c\u958b\u3057\u3066\uff08http:\/\/www.\u25cb\u25cb\u25cb.com\/~namae\/\u3068\u3044\u3046\u611f\u3058\uff09\u30e6\u30fc\u30b6\u3054\u3068\u306e\u516c\u958b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6301\u3064\u5834\u5408\u306f\u3001\u3053\u306e\u4e2d\u8eab\u306f\u5168\u90e8\u30b3\u30e1\u30f3\u30c8\u3092\u53d6\u3063\u3066\u6709\u52b9\u306b\u3059\u308b\u3002\u305d\u306e\u4e0a\u3067\u3001\u8a2d\u5b9a\u5024\u3092\u5fc5\u8981\u306a\u7bc4\u56f2\u3067\u7de8\u96c6\u3002\u4eca\u56de\u306f\u306a\u3057\u3002<\/li>\n<li>DirectoryIndex index.html index.html.var\u3000\u2192<strong>DirectoryIndex index.html index.htm index.php index.cgi index.pl<\/strong>\u3000\u203bPHP\u306a\u3069\u3082\u4f7f\u7528\u3059\u308b\u306e\u3067\u3001index.php\u30d5\u30a1\u30a4\u30eb\u3092\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u8a8d\u8b58\u51fa\u6765\u308b\u3088\u3046\u306b\u3059\u308b\u3002<\/li>\n<li>AddDefaultCharset UTF-8\u3000\u2192<strong>#<\/strong>AddDefaultCharset UTF-8\u3000\u203b\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3002\u6709\u52b9\u306b\u3057\u3066\u308b\u3068\u3001HTML\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u3067\u4ed6\u306e\u30a8\u30f3\u30b3\u30fc\u30c9\u3092\u6307\u5b9a\u3057\u3066\u3044\u3066\u3082\u3001UTF-8\u3068\u8a8d\u8b58\u3055\u308c\u3066\u3057\u307e\u3044\u3001\u6587\u5b57\u5316\u3051\u3059\u308b\u304b\u3089\u3002<\/li>\n<li>#AddHandler cgi-script .cgi\u3000\u2192<strong>AddHandler cgi-script .cgi .pl<\/strong>\u3000\u203bCGI\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u3001\u30b3\u30e1\u30f3\u30c8\u3092\u53d6\u3063\u3066\u3001\u300c.pl\u300d\u3092\u8ffd\u52a0\u3059\u308b\u3002<\/li>\n<\/ol>\n<p>\u8a2d\u5b9a\u3067\u304d\u305f\u3089\u3001\u4fdd\u5b58\u3057\u3066\u9589\u3058\u308b\u3002<\/p>\n<p>\u8a2d\u5b9a\u30c1\u30a7\u30c3\u30af\u3068HTTPD\u518d\u8d77\u52d5\u3057\u3066\u3001\u8d77\u52d5\u306e\u304a\u307e\u3058\u306a\u3044\u3002<\/p>\n<p>[root@server]# httpd -t\u3000\u2192\u8a2d\u5b9a\u304c\u6709\u52b9\u306b\u52d5\u4f5c\u51fa\u6765\u308b\u304b\u78ba\u8a8d\u3002<strong>Syntax OK<\/strong>\u3068\u51fa\u3066\u304d\u305f\u3089OK\u3002<br \/>\n[root@server]# \/etc\/init.d\/httpd restart<br \/>\n[root@server]# chkconfig httpd on<br \/>\n[root@server]# chkconfig \u2013list httpd<\/p>\n<p><strong>\u53c2\u8003\u306b\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u3002<\/strong><br \/>\n<a href=\"http:\/\/www.obenri.com\/_webserver\/global_env.html\" target=\"_blank\">http:\/\/www.obenri.com\/_webserver\/global_env.html<\/a><br \/>\n<a href=\"http:\/\/mizushima.ne.jp\/Linux\/httpd\/Apache.php\" target=\"_blank\">http:\/\/mizushima.ne.jp\/Linux\/httpd\/Apache.php<\/a><\/p>\n<p>\uff08httpd.conf\u30d5\u30a1\u30a4\u30eb\u306e\u30b3\u30f3\u30c6\u30ca<>\u5185\u306e\u8a2d\u5b9a\u9805\u76ee\u306e\u8aac\u660e\uff09<br \/>\n<a href=\"http:\/\/www.obenri.com\/_webserver\/container_dir.html\" target=\"_blank\">http:\/\/www.obenri.com\/_webserver\/container_dir.html<\/a><\/p>\n<p>\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a<\/p>\n<ul>\n<li><a href=\"http:\/\/bton.papalabs.net\/?p=1409\">centOS(VPS)\u3067\u30b5\u30fc\u30d0\u521d\u671f\u8a2d\u5b9a\uff08SSH\u304b\u3089YUM\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff09<\/a><\/li>\n<li><a href=\"http:\/\/bton.papalabs.net\/?p=1427\">centOS(VPS)\u3067DNS\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a\uff08BIND\uff09<\/a><\/li>\n<li><a href=\"http:\/\/bton.papalabs.net\/?p=1416\">centOS(VPS)\u3067FTP\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a\uff08VSFTPD)<\/a><\/li>\n<li><a href=\"http:\/\/bton.papalabs.net\/?p=1423\">centOS(VPS)\u3067\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a1\uff08POSTFIX\uff09<\/a><\/li>\n<li><a href=\"http:\/\/bton.papalabs.net\/?p=1452\">centOS(VPS)\u3067\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a2\uff08DOVECOT\uff09<\/a><\/li>\n<li><a href=\"http:\/\/bton.papalabs.net\/?p=1468\">centOS(VPS)\u3067WEB\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a\uff08APACHE\uff09<\/a><\/li>\n<li><a href=\"http:\/\/bton.papalabs.net\/?p=1481\">centOS(VPS)\u3067LAMP\uff08PHP5.2.16\u3068MYSQL\uff091<\/a><\/li>\n<li><a href=\"http:\/\/bton.papalabs.net\/?p=1488\">centOS(VPS)\u3067LAMP\uff08PHP5.2.16\u3068MYSQL\uff092<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>WEB\u30b5\u30fc\u30d0\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u3001\u307e\u305a\u3001WEB\u306e\u516c\u958b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u6240\u6709\u8005\uff1a\u30b0\u30eb\u30fc\u30d7\u304c\u3001FTP\u3067\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u306a\u4e00\u822c\u30e6\u30fc\u30b6\u306b\u5909\u66f4\u3057\u3066\u3042\u308b\u304b\u78ba\u8a8d\u3002 HTTPD\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u306f\u3001root\u304c\/var\/www\/html\/\u30c7\u30a3\u30ec\u30af\u30c8 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[219],"tags":[],"_links":{"self":[{"href":"https:\/\/bton.papalabs.net\/index.php?rest_route=\/wp\/v2\/posts\/1468"}],"collection":[{"href":"https:\/\/bton.papalabs.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bton.papalabs.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bton.papalabs.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bton.papalabs.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1468"}],"version-history":[{"count":0,"href":"https:\/\/bton.papalabs.net\/index.php?rest_route=\/wp\/v2\/posts\/1468\/revisions"}],"wp:attachment":[{"href":"https:\/\/bton.papalabs.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bton.papalabs.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bton.papalabs.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}