{"id":1175,"date":"2016-05-13T19:20:56","date_gmt":"2016-05-13T10:20:56","guid":{"rendered":"http:\/\/www.kinryo.net\/?p=1175"},"modified":"2016-05-13T19:29:13","modified_gmt":"2016-05-13T10:29:13","slug":"%ef%bc%92%ef%bc%94%ef%bc%9aapache%e3%81%ae%e8%a8%ad%e5%ae%9a","status":"publish","type":"post","link":"https:\/\/www.kinryo.net\/?p=1175","title":{"rendered":"\uff12\uff14\uff1aapache\u306e\u8a2d\u5b9a"},"content":{"rendered":"<p class=\"itemText\">\u57fa\u672c\u7684\u306b\u306f<a href=\"http:\/\/centossrv.com\/apache.shtml\" target=\"_blank\">http:\/\/centossrv.com\/apache.shtml\u3092\u53c2\u8003<\/a>\u306b\u3057\u305f\u3002<\/p>\n<p class=\"itemText\">\u3084\u3063\u3068WEB\u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u307e\u305a\u5fc5\u8981\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08apache\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\uff09<br \/>\n<span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">yum -y install php php-mbstring mysql mysql-server php-mysql<\/span><br \/>\n\u4f5c\u308d\u3046\u3068\u3057\u3066\u3044\u308bWEB\u306fXOOPS\u3092\u4f7f\u7528\u3057\u3066\u304a\u308a\u307e\u3059\u306e\u3067\u3001mysql\u95a2\u4fc2\u304c\u5fc5\u8981\u3067\u3059\u3002<br \/>\n\/etc\/httpd\/conf\/httpd.conf\u306e\u8a2d\u5b9a\u3002\u57fa\u672c\u7684\u306b\u306f<a href=\"http:\/\/centossrv.com\" target=\"_blank\">http:\/\/centossrv.com<\/a> \u3068\u540c\u3058\u3060\u304c\u3001\u5909\u66f4\u3057\u305f\u90e8\u5206\u3060\u3051\u3092\u8a18\u3059\u3002<\/p>\n<pre><code><span style=\"color: #0000ff;\">KeepAlive ON <span style=\"color: #000000;\">\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<\/span>\u3002\r\nServerAdmin xxxxxx@kinryokai.net\r\n#ServerName www.example.com:80\u3000<span style=\"color: #000000;\">\u2190virtualhost.conf \u3067\u8a2d\u5b9a<\/span>\r\n#DocumentRoot \"\/var\/www\/html\" <span style=\"color: #000000;\">\u2190virtualhost.conf \u3067\u8a2d\u5b9a<\/span>\r\n\r\n&lt;Directory \/&gt;\r\n    Options Includes ExecCGI FollowSymLinks <span style=\"color: #000000;\"> \u2190Includes ExecCGI \u3092\u8a18\u5165<\/span>\r\n    AllowOverride None\u3000<span style=\"color: #000000;\">\u2190.htaccess\u306f\u4f7f\u308f\u306a\u3044\u306e\u3067\u3001none\u306e\u307e\u307e<\/span>\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\r\n\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<span style=\"color: #000000;\">\u2190index.php\u3092\u8ffd\u52a0<\/span>\r\n\r\nSetEnvIf Request_URI \"\\.(gif|jpg|png|JPG|GIF|PNG|bmp|css|ico|ICO)$\" no_log\u3000<span style=\"color: #000000;\">\u2190\u8ffd\u52a0<\/span>\r\nSetEnvIf Request_URI \"default\\.ida\" no_log\u3000<span style=\"color: #000000;\">\u2190\u8ffd\u52a0<\/span>\r\nSetEnvIf Request_URI \"cmd\\.exe\" no_log\u3000<span style=\"color: #000000;\">\u2190\u8ffd\u52a0<\/span>\r\nSetEnvIf Request_URI \"root\\.exe\" no_log\u3000<span style=\"color: #000000;\">\u2190\u8ffd\u52a0<\/span>\r\nSetEnvIf Request_URI \"Admin\\.dll\" no_log\u3000<span style=\"color: #000000;\">\u2190\u8ffd\u52a0<\/span>\r\nSetEnvIf Request_URI \"NULL\\.IDA\" no_log\u3000<span style=\"color: #000000;\">\u2190\u8ffd\u52a0<\/span>\r\nSetEnvIf Remote_Addr 192.168 no_log\u3000<span style=\"color: #000000;\">\u2190\u8ffd\u52a0<\/span>\r\nSetEnvIf Remote_Addr 127.0.0.1 no_log\u3000<span style=\"color: #000000;\">\u2190\u8ffd\u52a0<\/span>\r\n#CustomLog logs\/access_log combined env=!no_log\u3000<span style=\"color: #000000;\">\u2190\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3001virtualhost.conf\u3067\u8a2d\u5b9a<\/span>\r\n\r\nAlias \/icons\/ \"\/xxxxx\/icons\/\"\u3000<span style=\"color: #000000;\">\u2190\u5834\u6240\u3092\u5909\u66f4<\/span>\r\n&lt;Directory \"\/xxxxx\/icons\"&gt;\r\n\r\n#&lt;IfModule mod_dav_fs.c&gt;\u3000<span style=\"color: #000000;\">\u2190webdav.conf \u3067\u8a2d\u5b9a<\/span>\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\/\"  <span style=\"color: #000000;\">\u2190virualhost.conf\u3067\u8a2d\u5b9a<\/span>\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<p class=\"itemText\">\u3092\u3057\u3066\u3044\u304f\u3002\u6700\u5f8c\u306e\u65b9\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092\u4f5c\u308b\u3042\u305f\u308a\u306f\u4eca\u56de\u306f\u65e2\u306b\u51fa\u6765\u3066\u3044\u308b\u306e\u3067\u3001\u7121\u8996\u3057\u3066\u3044\u3044\u3002<br \/>\n<span style=\"color: #0000ff;\">AllowOverride None<\/span>\u3000\u306f\u8aac\u660e\u304c\u8981\u308b\u304b\u306a\u3002<\/p>\n<p><a href=\"https:\/\/httpd.apache.org\/docs\/current\/ja\/howto\/htaccess.html\" target=\"_blank\">https:\/\/httpd.apache.org\/docs\/current\/ja\/howto\/htaccess.html<\/a><br \/>\n\u306e \u201d\u3044\u3064 .htaccess \u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u3046(\u4f7f\u308f\u306a\u3044)\u304b\u3002\u201d\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p class=\"itemText\">virtualhost \u306e\u8a2d\u5b9a\u3092\u3059\u308b\u3002<br \/>\n\/etc\/httpd\/conf.d\/virtualhost.conf \u306b<\/p>\n<div class=\"xoopsCode\">\n<pre><code><span style=\"color: #0000ff;\">NameVirtualHost *:80\r\n# kinryokai\r\n&lt;VirtualHost *:80&gt;\r\n    DocumentRoot \/xxxxxxx\/public\/kinryokai\r\n    ServerName www.kinryokai.net\r\n    ServerAlias kinryokai.net\r\n    ErrorLog logs\/kinryokai_error_log\r\n    CustomLog logs\/kinryokai_access_log combined env=!no_log\r\n    &lt;Directory \"\/xxxxx\/public\/kinryokai\/upfiles\"&gt;\r\n        SetEnvIf Referer \"^http:\/\/www\\.kinryokai\\.net\" ref_ok\r\n        order deny,allow\r\n        deny from all\r\n        allow from env=ref_ok\r\n    &lt;\/Directory&gt;\r\n    &lt;Directory \"\/xxxxx\/public\/kinryokai\/uploads\"&gt;\r\n        SetEnvIf Referer \"^http:\/\/www\\.kinryokai\\.net\" ref_ok\r\n        order deny,allow\r\n        deny from all\r\n        allow from env=ref_ok\r\n    &lt;\/Directory&gt;\r\n    ScriptAlias \/cgi-kinryo\/ \"\/xxxxx\/cgi-kinryo\/\"\r\n    &lt;Directory \"\/xxxxx\/cgi-kinryo\"&gt;\r\n        AllowOverride None\r\n        Options None\r\n        SetEnvIf Referer \"^http:\/\/www\\.kinryokai\\.net\" cgi-kinryo_ok\r\n        order deny,allow\r\n        deny from all\r\n        allow from env=cgi-kinryo_ok\r\n    &lt;\/Directory&gt;\r\n&lt;\/VirtualHost&gt;<\/span><\/code><\/pre>\n<\/div>\n<p>\u3053\u306e\u8a2d\u5b9a\u306e\u610f\u5473\u306f<a href=\"http:\/\/centossrv.com\/apache.shtml\" target=\"_blank\">centocsrv.com\u3092\u53c2\u8003<\/a>\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u53c8\u3001 &#8220;\/xxxxx\/public\/kinryokai\/upfiles&#8221;\u3068 &#8220;\/xxxxx\/public\/kinryokai\/uploads&#8221; \u306e\u8a2d\u5b9a\u306f\u3053\u3053\u306b\u753b\u50cf\u306a\u3069\u3092\u7f6e\u3044\u3066\u304a\u304f\u306e\u3067\u3001\u4ed6\u306eWEB\u304b\u3089\u30ea\u30f3\u30af\u3092\u5f35\u3089\u308c\u3001\u9045\u304f\u306a\u308b\u306e\u3092\u9632\u3050\u8a2d\u5b9a\u3067\u3059\u3002<br \/>\n\u3082\u3046\u4e00\u5ea6 conf \u306e\u30c1\u30a7\u30c3\u30af<br \/>\n<span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">apachectl configtest<\/span><br \/>\n<a href=\"http:\/\/www.kinryo.net\/2015\/12\/%EF%BC%91%EF%BC%97%EF%BC%9Amysql%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\/\" target=\"_blank\">\u3053\u3053\u3092\u53c2\u8003\u306b<\/a>mysql\u306e\u8a2d\u5b9a\u3001\u8d77\u52d5\u3092\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u30a2\u30c3\u30d7\u51fa\u6765\u308b\u30b5\u30a4\u30ba\u304c\u5c0f\u3055\u3044\u306e\u3067\u3001\/etc\/php.ini\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<div class=\"xoopsCode\">\n<pre><code><span style=\"color: #0000ff;\">post_max_size = 50M\r\nupload_max_filesize = 50M\r\ndate.timezone = Asia\/Tokyo<\/span>\u3000<span style=\"color: #000000;\">\u2190 \u5148\u982d\u306e\uff1b\u3092\u53d6\u308b\u306e\u3092\u5fd8\u308c\u305a\u306b<\/span><\/code><\/pre>\n<\/div>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306b3\u30f6\u6240\u5909\u66f4\u3092\u3057\u307e\u3059\u3002<br \/>\nweb\u30b5\u30fc\u30d0\u30fc\u306e\u8d77\u52d5<br \/>\n<span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">service httpd start<\/span><br \/>\n<span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">chkconfig httpd on<\/span><br \/>\n\u4eca\u306f\u30c6\u30b9\u30c8\u306a\u306e\u3067\/etc\/hosts\u306b\u3053\u306e\u30b5\u30fc\u30d0\u30fc\u306eIP\u3068URL\u3092\u8a2d\u5b9a\u3057\u3001<br \/>\n\u30d6\u30e9\u30a6\u30b6\u3067<a href=\"http:\/\/www.kinryo.net\" target=\"_blank\">www.kinryokai.net<\/a> \u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001\u8868\u793a\u3055\u308c\u308c\u3070OK\u3002<br \/>\n\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u6642\u306b\u30eb\u30fc\u30bf\u30fc\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u3001\u3053\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u30d5\u30a9\u30ef\u30fc\u30c9\u3059\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u57fa\u672c\u7684\u306b\u306fhttp:\/\/centossrv.com\/apache.shtml\u3092\u53c2\u8003\u306b\u3057\u305f\u3002 \u3084\u3063\u3068WEB\u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u307e\u305a\u5fc5\u8981\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08apache\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\uff09 # y &hellip; <a href=\"https:\/\/www.kinryo.net\/?p=1175\">\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":[8],"tags":[],"class_list":["post-1175","post","type-post","status-publish","format-standard","hentry","category-server"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/1175","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=1175"}],"version-history":[{"count":8,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/1175\/revisions"}],"predecessor-version":[{"id":1183,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/1175\/revisions\/1183"}],"wp:attachment":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}