{"id":306,"date":"2015-12-11T08:28:09","date_gmt":"2015-12-10T23:28:09","guid":{"rendered":"http:\/\/www.kinryo.net\/?p=306"},"modified":"2021-05-04T12:07:24","modified_gmt":"2021-05-04T03:07:24","slug":"%ef%bc%91%ef%bc%91%ef%bc%9a%e3%82%b2%e3%82%b9%e3%83%88%e3%81%abapache%ef%bc%88web%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%ef%bc%89%e3%82%92%e8%a8%ad%e5%ae%9a","status":"publish","type":"post","link":"https:\/\/www.kinryo.net\/?p=306","title":{"rendered":"\uff11\uff11\uff1a\u30b2\u30b9\u30c8\u306bapache\uff08WEB\u30b5\u30fc\u30d0\u30fc\uff09\u3092\u8a2d\u5b9a"},"content":{"rendered":"<p class=\"itemText\">\u3044\u3088\u3044\u3088\u4eca\u5f8c\u7a3c\u50cd\u3059\u308b\u30b2\u30b9\u30c8\u3068\u3057\u3066\u3001WEB\u3084\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u304f\u3002<br \/>\n\u57fa\u672c\u7684\u306b\u306f<a href=\"http:\/\/centossrv.com\/apache.shtml\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/centossrv.com\/apache.shtml<\/a> \u3092\u53c2\u8003\u306b\u306b\u3057\u305f\u3002apache\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u306a\u306e\u3067\u3001php\u7b49\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n<span style=\"color: #ff6600;\">#<\/span><span style=\"color: #008000;\"> yum -y install php php-mbstring<\/span><br \/>\n\/etc\/httpd\/conf\/httpd.conf \u306e\u8a2d\u5b9a\u3002\u57fa\u672c\u7684\u306b\u306f<a href=\"http:\/\/centossrv.com\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/centossrv.com<\/a> \u3068\u540c\u3058\u3060\u304c\u3001\u5909\u66f4\u3057\u305f\u90e8\u5206\u3060\u3051\u3092\u8a18\u3059\u3002<\/p>\n<div class=\"xoopsCode\">\n<pre><code><span style=\"color: #0000ff;\">KeepAlive ON \u2190\u591a\u5206\u5c11\u3057\u306f\u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u3092\u30ad\u30fc\u30d7\u3057\u305f\u65b9\u304c\u826f\u3055\u305d\u3046\u3060\u304b\u3089\u3002\r\nServerAdmin xxxxxx@kinryokai.net\r\n#ServerName www.example.com:80\u3000\u2190virtualhost.conf \u3067\u8a2d\u5b9a\r\n#DocumentRoot \"\/var\/www\/html\" \u2190virtualhost.conf \u3067\u8a2d\u5b9a\r\n\r\n&lt;Directory \/&gt;\r\n    Options Includes ExecCGI FollowSymLinks  \u2190Includes ExecCGI \u3092\u8a18\u5165\r\n    AllowOverride None\u3000\u2190.htaccess\u306f\u4f7f\u308f\u306a\u3044\u306e\u3067\u3001none\u306e\u307e\u307e\r\n&lt;\/Directory&gt;\r\n\r\n&lt;Directory \"\/var\/www\/html\"&gt;\u3000\u304b\u3089 &lt;\/Directory&gt; \u307e\u3067\u3092\u6d88\u53bb\u3002\u3053\u308c\u306fdocument root\u306e\u8a2d\u5b9a\u3060\u304c\u3001virtualhost.conf \u3067\u8a2d\u5b9a\r\n\r\nDirectoryIndex index.html index.php index.html.var\u3000\u2190index.php\u3092\u8ffd\u52a0\r\n\r\nSetEnvIf Request_URI \"\\.(gif|jpg|png|JPG|GIF|PNG|bmp|css|ico|ICO)$\" no_log\u3000\u2190\u8ffd\u52a0\r\nSetEnvIf Request_URI \"default\\.ida\" no_log\u3000\u2190\u8ffd\u52a0\r\nSetEnvIf Request_URI \"cmd\\.exe\" no_log\u3000\u2190\u8ffd\u52a0\r\nSetEnvIf Request_URI \"root\\.exe\" no_log\u3000\u2190\u8ffd\u52a0\r\nSetEnvIf Request_URI \"Admin\\.dll\" no_log\u3000\u2190\u8ffd\u52a0\r\nSetEnvIf Request_URI \"NULL\\.IDA\" no_log\u3000\u2190\u8ffd\u52a0\r\nSetEnvIf Remote_Addr 192.168 no_log\u3000\u2190\u8ffd\u52a0\r\nSetEnvIf Remote_Addr 127.0.0.1 no_log\u3000\u2190\u8ffd\u52a0\r\n#CustomLog logs\/access_log combined env=!no_log\u3000\u2190\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3001virtualhost.conf\u3067\u8a2d\u5b9a\r\n\r\nAlias \/icons\/ \"\/webdata\/icons\/\"\u3000\u2190\u5834\u6240\u3092\u5909\u66f4\r\n&lt;Directory \"\/webdata\/icons\"&gt;\r\n\r\n#&lt;IfModule mod_dav_fs.c&gt;\u3000\u2190webdav.conf \u3067\u8a2d\u5b9a\r\n    # Location of the WebDAV lock database.\r\n#    DAVLockDB \/var\/lib\/dav\/lockdb\r\n#&lt;\/IfModule&gt;\r\n\r\n#ScriptAlias \/cgi-bin\/ \"\/var\/www\/cgi-bin\/\"  \u2190virualhost.conf\u3067\u8a2d\u5b9a\r\n#&lt;Directory \"\/var\/www\/cgi-bin\"&gt;\r\n#    AllowOverride None\r\n#    Options None\r\n#    Order allow,deny\r\n#    Allow from all\r\n#&lt;\/Directory&gt;<\/span> <\/code><\/pre>\n<\/div>\n<p>AllowOverride None\u306f\u5c11\u3057\u8aac\u660e\u304c\u3044\u308b\u304b\u306a\u3002\u7406\u7531\u306f<br \/>\n<a href=\"http:\/\/apache.org\/docs\/ja\/howto\/htaccess.html\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/apache.org\/docs\/ja\/howto\/htaccess.html<\/a> \u306e\u201d\u3044\u3064 .htaccess \u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u3046(\u4f7f\u308f\u306a\u3044)\u304b\u3002\u201d\u3092\u53c2\u7167<br \/>\nLanguagePriority\u306e\u6240\u306f ja \u3092\u6700\u521d\u306b\u3057\u305f\u3002<br \/>\nsection 3 \u306f virtual host \u306e\u8a2d\u5b9a\u3060\u304b\u3089\u5168\u90e8\u6d88\u53bb\u3001virtualhost.conf \u3067\u8a2d\u5b9a\u3057\u3066\u3044\u304f\u3002<br \/>\nicons\u306e\u5834\u6240\u3092\u5909\u3048\u305f\u306e\u3067<br \/>\n<span style=\"color: #ff6600;\">#<\/span><span style=\"color: #008000;\"> mv \/var\/www\/icons \/webdata\/icons<\/span><br \/>\n\u3053\u3053\u3067\u4e00\u5ea6conf\u304c\u6b63\u3057\u3044\u304b\u30c1\u30a7\u30c3\u30af<br \/>\n<span style=\"color: #ff6600;\">#<\/span><span style=\"color: #008000;\"> apachectl configtest<\/span><br \/>\n\u6ce8\u8a18\uff1a\u3042\u308b\u6642\u5225\u306e\u30db\u30b9\u30c8\u306e\u8a2d\u5b9a\u3067<br \/>\nhttpd \u3092\u8d77\u52d5\u4e2d: no listening sockets available, shutting down<br \/>\nUnable to open logs<br \/>\n\u3068\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u304c\u3001\u3069\u3046\u3057\u3066\u3082\u539f\u56e0\u304c\u5206\u304b\u3089\u306a\u3044\u3002\u3060\u3063\u3066 apachectl configtest \u3092\u3084\u3063\u3066\u3082\u30a8\u30e9\u30fc\u304c\u51fa\u306a\u3044\u3002httpd.conf\u3092\u4e00\u884c\u3065\u3064\u898b\u76f4\u3057\u3066\u3084\u3063\u3068\u5224\u660e<br \/>\nListen 80 \u306e\u524d\u306b#\u304c\u4ed8\u3044\u3066\u3044\u3066\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3055\u308c\u3066\u3044\u305f\u3002hostname\u306e\u8a2d\u5b9a\u3067 <a href=\"http:\/\/www.kinryokai.net:80\" target=\"_blank\" rel=\"noopener noreferrer\">www.kinryokai.net:80<\/a> \u7b49\u3068\u30dd\u30fc\u30c8\u3092\u6307\u5b9a\u3057\u3066\u3044\u308b\u306e\u3067\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u3066\u3082\u3044\u3044\u306e\u304b\u3068\u601d\u3063\u3066\u3044\u305f\u3002<br \/>\nperl\u3078\u306e\u30ea\u30f3\u30af\u3092\u5f35\u308b\u3002<br \/>\n<span style=\"color: #ff6600;\">#<\/span><span style=\"color: #008000;\"> ln -s \/usr\/bin\/perl \/usr\/local\/bin\/perl<\/span><br \/>\n\u30ea\u30f3\u30af\u304c\u5f35\u308c\u305f\u304b\u78ba\u8a8d<br \/>\n<span style=\"color: #ff6600;\">#<\/span><span style=\"color: #008000;\"> whereis perl<\/span><br \/>\n\u30ea\u30f3\u30af\u306e\u6307\u5b9a\u6642\u306e\u53f3\u8fba\u304c\u8868\u793a\u3055\u308c\u308c\u3070OK\u3002<br \/>\n\u79c1\u306fweb\u306e\u30c7\u30fc\u30bf\u30fc\u306f\u5225\u30c7\u30a3\u30b9\u30af\u306e\u5225\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306b\u3057\u3066\u3044\u308b\u3002\u7406\u7531\u306f\u30b5\u30fc\u30d0\u30fc\u306e\u5f15\u8d8a\u3057\u306e\u6642\u3001\u3053\u306e\u30c7\u30a3\u30b9\u30af\u3092\u65b0\u3057\u3044OS\u306b\u6301\u3063\u3066\u3044\u3051\u3070\u3044\u3044\u304b\u3089\u3002<br \/>\n\u3068\u8a00\u3046\u308f\u3051\u3067\u305d\u306e\u9818\u57df\u306e\u4f5c\u6210\u3092\/dev\/sdb\u306bLVM\u3067\u4f5c\u308b\uff08\u3053\u308c\u306f\u30cf\u30fc\u30c9\u30c7\u30a3\u30b9\u30af\u3067\u306a\u304fSSD\u306b\u3057\u305f\u3002\u7406\u7531\u306f\u30a2\u30af\u30bb\u30b9\u304c\u65e9\u3044\u306e\u3068\u7701\u96fb\u529b\u5316\u3001\u53ef\u52d5\u90e8\u3092\u5c11\u306a\u304f\u3057\u4fe1\u983c\u5ea6\u3092\u3042\u3052\u308b\uff09\u3002<br \/>\n<span style=\"color: #ff6600;\">#<\/span><span style=\"color: #008000;\"> pvcreate \/dev\/sdb1<\/span>\u3000\uff03sdb1\u306f\u4f8b<br \/>\n<span style=\"color: #ff6600;\">#<\/span><span style=\"color: #008000;\"> vgcreate VG\u540d \/dev\/sdb1<\/span>\u3000\uff03sdb1\u306f\u4f8b<br \/>\n<span style=\"color: #ff6600;\">#<\/span><span style=\"color: #008000;\"> lvcreate -L \u4f5c\u308b\u30b5\u30a4\u30ba\uff08\u4f8b\uff1a10G\uff09-n LV\u540d\u3000VG\u540d<\/span><br \/>\n\u4f5c\u3063\u305f\u9818\u57df\u3092\u30d5\u30a9\u30fc\u30de\u30c3\u30c8<br \/>\n<span style=\"color: #ff6600;\">#<\/span><span style=\"color: #008000;\"> mkfs.ext4 \/dev\/VG\u540d\/LV\u540d<\/span><br \/>\n\u3053\u3053\u306b\u8272\u3005\u306a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u3092\u4f5c\u308b\u3002<br \/>\nhtdigest\u7528\u306eDIR\u3001awstats\u7528\u306eDIR\uff08html\u7528\u3068perl\u7528\u3092\u5206\u3051\u305f\u65b9\u304c\u3044\u3044\uff09\u3001cgi-bin\u7528\u306eDIR\uff08\u3053\u308c\u306fvirtualhost\u5206\u7528\u610f\u3002\u7406\u7531\u306f\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u30fc\u3067\u4f7f\u3046\u51fa\u6b20\u8868\u3092\u5165\u308c\u305f\u3044\u304b\u3089\u3002\u53c2\u8003web\uff1ahttp:\/\/www.hidekik.com\/attlist4\/attlist4.html\u3000\u3053\u306eweb\u3082\u3046\u7121\u3044\u898b\u305f\u3044)\u3002 mysql\u7528\u306eDIR\u3068webmail\u7528\uff08\u3053\u308c\u3082OS\u306e\u5f15\u8d8a\u3057\u306e\u6642\u306b\u697d\u3060\u304b\u3089\uff09\u3002\u6700\u5f8c\u306b pubic \u3053\u3053\u306e\u4e0b\u306bvirtualhost\u306e\u5404\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u304c\u5165\u308b\u3002virtualhost\u7528\u306e\u5404DIR\u306f\u305d\u308c\u305e\u308c\u306eWEB\u30de\u30b9\u30bf\u30fc\u7528\u306b\u30aa\u30fc\u30ca\u30fc\u3092\u5909\u66f4\u3057\u3066\u304a\u304f \uff08FTP\u3092\u4f7f\u3046\u5834\u5408\uff09\u307e\u305f\u3001cgi-bin\u95a2\u4fc2\u3082\u3084\u3063\u305f\u65b9\u304c\u3044\u3044\u304b\u3082\u3002<br \/>\n\u9577\u304f\u306a\u308a\u305d\u3046\u306a\u306e\u3067\u6b21\u306b\u7d9a\u304f\u3002\uff08\uff11\uff12\uff1a\u30b2\u30b9\u30c8\u306bapache\u3092\u8a2d\u5b9a-2\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3044\u3088\u3044\u3088\u4eca\u5f8c\u7a3c\u50cd\u3059\u308b\u30b2\u30b9\u30c8\u3068\u3057\u3066\u3001WEB\u3084\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u304f\u3002 \u57fa\u672c\u7684\u306b\u306fhttp:\/\/centossrv.com\/apache.shtml \u3092\u53c2\u8003\u306b\u306b\u3057\u305f\u3002apache\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u306a\u306e\u3067\u3001p &hellip; <a href=\"https:\/\/www.kinryo.net\/?p=306\">\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":{"_acf_changed":false,"vkexunit_cta_each_option":"","footnotes":""},"categories":[7],"tags":[],"class_list":["post-306","post","type-post","status-publish","format-standard","hentry","category-centos6"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/306","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=306"}],"version-history":[{"count":4,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/306\/revisions"}],"predecessor-version":[{"id":2285,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/306\/revisions\/2285"}],"wp:attachment":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}