{"id":2783,"date":"2013-09-11T00:23:43","date_gmt":"2013-09-10T15:23:43","guid":{"rendered":"http:\/\/www.frontier-line.org\/lognote\/?p=2783"},"modified":"2013-09-11T00:23:44","modified_gmt":"2013-09-10T15:23:44","slug":"%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e5%bc%95%e3%81%a3%e8%b6%8a%e3%81%97%e4%bd%9c%e6%a5%ad%ef%bc%88%ef%bc%93%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.frontier-line.org\/lognote\/?p=2783","title":{"rendered":"\u30b5\u30fc\u30d0\u30fc\u5f15\u3063\u8d8a\u3057\u4f5c\u696d\uff08\uff13\uff09"},"content":{"rendered":"<p>\u3000\u30d5\u30a1\u30a4\u30eb\u306f\u81ea\u7531\u51fa\u3057\u5165\u308c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u304c\u3001\u7a81\u3063\u8fbc\u3093\u3060html\u30d5\u30a1\u30a4\u30eb\u3092\u8868\u793a\u3059\u308b\u306b\u306f\u3001apache httpd server\u3092\u5165\u308c\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u307e\u305f\u3001\u3053\u306e\u65e5\u8a18\u5e33\u3092\u5f15\u3063\u8d8a\u3059\u306b\u306f\u3001MySQL\u3068PHP\u304c\u5fc5\u8981\u3067\u3059\u3002PHP\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u304c\u3042\u3063\u305f\u5834\u5408\u3001\u5b9f\u884c\u7d50\u679c\u3092\u8fd4\u3059\u306e\u3082apache\u306e\u4ed5\u4e8b\u3067\u3059\u3002\u4e00\u65b9\u3001PHP\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b\u306f\u5229\u7528\u3059\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3000\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u9806\u756a\u306f\u3001apache\u2192MySQL\u2192PHP\u2192PHPmyadmin\uff08MySQL\u306e\u7ba1\u7406\u30c4\u30fc\u30eb\uff09\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>apache<\/h2>\n<p>\u3000apache2\u306e\u6700\u65b0\u7248\u3092\u4f7f\u3046\u3053\u3068\u306b\u3057\u307e\u3059\u3002ports\u3067\u306f\u306a\u304f\u30bd\u30fc\u30b9\u304b\u3089\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u306a\u308b\u306e\u3067\u3001\/usr\/local\/src\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u3063\u3066\u3001\u3082\u3089\u3063\u3066\u304d\u305f\u30bd\u30fc\u30b9\u3092\u307e\u3068\u3081\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>ftp ftp.apache.org<br \/>\ncd \/pub\/apache\/httpd<br \/>\nls          \u6700\u65b0\u7248\u3092\u78ba\u8a8d<br \/>\nget httpd-2.4.6.tar.gz<\/p>\n<p>\u3053\u308c\u4ee5\u5916\u306b\u3001<br \/>\napache\/apr\/apr-1.4.8.tar.gz<br \/>\napache\/apr\/apr-util-1.5.2.tar.gz<br \/>\n\u3082get\u3057\u3066\u304d\u307e\u3059\u3002httpd\u306e\u3042\u3063\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30eaapr\u306e\u4e0b\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3000apache\u306e\u524d\u306b\u3001libxml2\u3068expat\u3092\u5165\u308c\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u3061\u3089\u306fports\u304b\u3089\u5165\u308c\u3066\u3057\u307e\u3044\u307e\u3057\u3087\u3046\u3002\u5b9f\u306f\u3001\u5f8c\u3067libxml\u3092\u30bd\u30fc\u30b9\u304b\u3089\u5165\u308c\u308b\u7fbd\u76ee\u306b\u306a\u308b\u306e\u3067\u3059\u304c\u305d\u308c\u306f\u305d\u308c\u3068\u3057\u3066\u3002<br \/>\ncd \/usr\/ports\/textproc\/libxml2<br \/>\nmake install<br \/>\n\/usr\/ports\/textproc\/expat2<br \/>\nmake install<br \/>\n\u3067\uff12\u3064\u3068\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5b8c\u4e86\u3002<\/p>\n<p>\u3000apache\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<br \/>\ncd \/usr\/local\/src<br \/>\ntar zxvf httpd-2.4.6.tar.gz<br \/>\napache\u672c\u4f53\u3092\u5c55\u958b\u3057\u305f\u3089\u3001apr\u306e\u95a2\u9023\u30d5\u30a1\u30a4\u30eb\u3092srclib\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u5c55\u958b\u3002<br \/>\ncp apr-1.4.8.tar.gz httpd-2.4.6\/srclib<br \/>\ncp apr-util-1.5.2.tar.gz httpd-2.4.6\/srclib<br \/>\ncd  httpd-2.4.6\/srclib<br \/>\ntar zxvf apr-1.4.8.tar.gz<br \/>\ntar zxvf apr-util-1.5.2.tar.gz<br \/>\nmv apr-1.4.8 apr<br \/>\nmv apr-util-1.5.2 apr-util<br \/>\ncd ..<br \/>\n\/configure &#8211;prefix=\/usr\/local\/apache2 &#8211;enable-so &#8211;enable-mods-shared=all  &#8211;enable-rewrite=shared<br \/>\nmake<br \/>\nmake install<\/p>\n<p>\u3000\u30b3\u30f3\u30d1\u30a4\u30eb\u304c\u7d42\u308f\u308b\u307e\u3067\u66ab\u304f\u5f85\u3064\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\/usr\/local\/apache2\u3002<\/p>\n<p>\u3000\u81ea\u52d5\u8d77\u52d5\u306e\u6e96\u5099\u306f\u3001\/usr\/local\/etc\/rc.d\/apache.sh\u3068\u3044\u3046\u540d\u524d\u3067\u6b21\u306e\u5185\u5bb9\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308a\u5b9f\u884c\u8a31\u53ef\u30d3\u30c3\u30c8\u3092\u7acb\u3066\u3066\u304a\u304f\u3002<\/p>\n<pre><code>\n#! \/bin\/sh\n#\n#  rc file for Apache\n#\napachectl=\/usr\/local\/apache2\/bin\/apachectl\n\ncase \"$1\" in\nstart)\n        if [ -x $apachectl ]; then\n                $apachectl start && echo -n ' httpd(apache)'\n        fi\n        ;;\nstop)\n        if [ -x $apachectl ]; then\n                $apachectl stop && echo -n ' httpd(apache)'\n        fi\n        ;;\n*)\n        echo \"usage: $0 {start|stop}\" 1>&2\n        exit 1\n        ;;\nesac\n<\/code><\/pre>\n<p>\u3000\u8a2d\u5b9a\u306f\u3001\/usr\/local\/apache2\/conf\/httpd.conf\u3001\u5909\u66f4\u7b87\u6240\u3068\u304b\u6d3b\u304d\u3066\u3044\u308b\u30e2\u30b8\u30e5\u30fc\u30eb\u3068\u304b\u306f\u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n<p>LoadModule authn_file_module modules\/mod_authn_file.so<br \/>\nLoadModule authn_core_module modules\/mod_authn_core.so<br \/>\nLoadModule authz_host_module modules\/mod_authz_host.so<br \/>\nLoadModule authz_groupfile_module modules\/mod_authz_groupfile.so<br \/>\nLoadModule authz_user_module modules\/mod_authz_user.so<br \/>\nLoadModule authz_core_module modules\/mod_authz_core.so<br \/>\nLoadModule access_compat_module modules\/mod_access_compat.so<br \/>\nLoadModule auth_basic_module modules\/mod_auth_basic.so<br \/>\nLoadModule reqtimeout_module modules\/mod_reqtimeout.so<br \/>\nLoadModule filter_module modules\/mod_filter.so<br \/>\nLoadModule xml2enc_module modules\/mod_xml2enc.so<br \/>\nLoadModule proxy_html_module modules\/mod_proxy_html.so<br \/>\nLoadModule mime_module modules\/mod_mime.so<br \/>\nLoadModule log_config_module modules\/mod_log_config.so<br \/>\nLoadModule env_module modules\/mod_env.soLoad<br \/>\nLoadModule headers_module modules\/mod_headers.so<br \/>\nLoadModule setenvif_module modules\/mod_setenvif.so<br \/>\nLoadModule version_module modules\/mod_version.so<br \/>\nLoadModule proxy_module modules\/mod_proxy.so<br \/>\nLoadModule unixd_module modules\/mod_unixd.so<br \/>\nLoadModule status_module modules\/mod_status.so<br \/>\nLoadModule autoindex_module modules\/mod_autoindex.so<br \/>\nLoadModule dir_module modules\/mod_dir.so<br \/>\nLoadModule alias_module modules\/mod_alias.so<br \/>\nLoadModule rewrite_module modules\/mod_rewrite.so<\/p>\n<p>User nobody<br \/>\nGroup nobody<\/p>\n<p>ServerAdmin r.hirokawa@frontier-line.org<\/p>\n<p>DocumentRoot &#8220;\/home\/WWW&#8221;<br \/>\n&lt;Directory &#8220;\/home\/WWW&#8221;&gt;<br \/>\nOptions FollowSymLinks MultiViews ExecCGI<br \/>\nAllowOverride All<br \/>\nRequire all granted<br \/>\n&lt;\/Directory&gt;<\/p>\n<p>&lt;IfModule dir_module&gt;<br \/>\n    DirectoryIndex index.html index.php<br \/>\n&lt;\/IfModule&gt;<\/p>\n<p>&lt;FilesMatch &#8220;\\.inc$&#8221;&gt;<br \/>\n    Order allow,deny<br \/>\n    Deny from all<br \/>\n&lt;\/FilesMatch&gt;<br \/>\n&lt;FilesMatch &#8220;\\.conf$&#8221;&gt;<br \/>\n    Order allow,deny<br \/>\n    Deny from all<br \/>\n&lt;\/FilesMatch&gt;<br \/>\n&lt;FilesMatch &#8220;\\.func&#8221;&gt;<br \/>\n    Order allow,deny<br \/>\n    Deny from all<br \/>\n&lt;\/FilesMatch&gt;<br \/>\n&lt;FilesMatch &#8220;\\.php$&#8221;&gt;<br \/>\n    SetHandler application\/x-httpd-php<br \/>\n&lt;\/FilesMatch&gt;<br \/>\n&lt;FilesMatch &#8220;\\.phps$&#8221;&gt;<br \/>\n    SetHandler application\/x-httpd-php-source<br \/>\n&lt;\/FilesMatch&gt;<\/p>\n<p>ErrorLog &#8220;logs\/error_log&#8221;<br \/>\nCustomLog &#8220;logs\/access_log&#8221; combined<\/p>\n<p>ScriptAlias \/cgi-bin\/ &#8220;\/home\/WWW\/cgi-bin\/&#8221;<\/p>\n<p>Addtype application\/x-httpd-php .php\u3000\u3000\u2190&lt;IfModule mime_module&gt;\u306e\u3068\u3053\u308d\u306b\u8ffd\u52a0\u3002<\/p>\n<p>&lt;fModule proxy_html_module&gt;<br \/>\nInclude conf\/extra\/proxy-html.conf<br \/>\n&lt;\/IfModule&gt;<br \/>\n<br \/>\n&lt;IfModule ssl_module&gt;<br \/>\nSSLRandomSeed startup builtin<br \/>\nSSLRandomSeed connect builtin<br \/>\n&lt;\/IfModule&gt;<br \/>\n<br \/>\nServerTokens Prod<br \/>\nServerSignature Off<\/p>\n<p>AcceptFilter http none<br \/>\nAcceptFilter https none<\/p>\n<p>\n\u3000\u6700\u5f8c\u306e\uff12\u884c\u306f\u3001<br \/>\n[core:warn] [pid 1112:tid 34389128192] (2)No such file or directory: AH00075: Failed to enable the &#8216;httpready&#8217; Accept Filter<br \/>\n\u3068\u3044\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u6bce\u56de\u51fa\u308b\u306e\u3092\u907f\u3051\u308b\u305f\u3081\u306e\u3082\u306e\u3002<a href=\"http:\/\/www.skymerica.com\/blog\/yotsumoto\/arch\/2007\/06\/11\/000799.html\" target=\"_blank\">http:\/\/www.skymerica.com\/blog\/yotsumoto\/arch\/2007\/06\/11\/000799.html<\/a>\u306b\u60c5\u5831\u304c\u3042\u308b\u3002FreeBSD\u306e\u30ab\u30fc\u30cd\u30eb\u306baccf_http.ko\u3092\u30ed\u30fc\u30c9\u3059\u308c\u3070\u826f\u3044\u306e\u3060\u304c\u3001VPS\u3060\u3068\u30ab\u30fc\u30cd\u30eb\u3092\u89e6\u308c\u306a\u3044\u306e\u3067\u3001\u8a2d\u5b9a\u3067\u5f37\u5236\u7684\u306bAcceptFilter\u3092\u7121\u52b9\u306b\u3059\u308b\u3002\u3061\u3087\u3063\u3068\u3082\u3063\u305f\u3044\u306a\u3044\u6c17\u3082\u3059\u308b\u3051\u3069\u6687\u306a\u30b5\u30fc\u30d0\u30fc\u3060\u304b\u3089\u307e\u3042\u3044\u3044\u304b\u306d\u3048\u3002<\/p>\n<p>\u8d77\u52d5<br \/>\n\/usr\/local\/apache2\/bin\/apachectl start<br \/>\n\u505c\u6b62<br \/>\n\/usr\/local\/apache2\/bin\/apachectl stop<br \/>\n\u8a2d\u5b9a\u5909\u3048\u305f\u3068\u304d<br \/>\n\/usr\/local\/apache2\/bin\/apachectl reload<br \/>\n*.conf\u306e\u6587\u6cd5\u30c1\u30a7\u30c3\u30af<br \/>\n\/usr\/local\/apache2\/bin\/apachectl -t<\/p>\n<p>\n\u3000\u6587\u6cd5\u30c1\u30a7\u30c3\u30af\u304b\u3051\u3066\u3001\u624b\u52d5\u3067\u8d77\u52d5\u5f8c\u3001ps aux\u3057\u3066httpd\u304c\u8d70\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3002\u4e00\u65e6\u505c\u6b62\u3055\u305b\u3066\u30ea\u30d6\u30fc\u30c8\u5f8c\u3001ps aux\u3057\u3066httpd\u304c\u5c45\u308c\u3070\u6210\u529f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u30d5\u30a1\u30a4\u30eb\u306f\u81ea\u7531\u51fa\u3057\u5165\u308c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u304c\u3001\u7a81\u3063\u8fbc\u3093\u3060html\u30d5\u30a1\u30a4\u30eb\u3092\u8868\u793a\u3059\u308b\u306b\u306f\u3001apache httpd server\u3092\u5165\u308c\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u307e\u305f\u3001\u3053\u306e\u65e5\u8a18\u5e33\u3092\u5f15\u3063\u8d8a\u3059\u306b\u306f\u3001MySQL\u3068PHP\u304c\u5fc5\u8981\u3067\u3059\u3002P [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-2783","post","type-post","status-publish","format-standard","hentry","category-computers"],"_links":{"self":[{"href":"https:\/\/www.frontier-line.org\/lognote\/index.php?rest_route=\/wp\/v2\/posts\/2783","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.frontier-line.org\/lognote\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.frontier-line.org\/lognote\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.frontier-line.org\/lognote\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.frontier-line.org\/lognote\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2783"}],"version-history":[{"count":0,"href":"https:\/\/www.frontier-line.org\/lognote\/index.php?rest_route=\/wp\/v2\/posts\/2783\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.frontier-line.org\/lognote\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2783"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.frontier-line.org\/lognote\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2783"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.frontier-line.org\/lognote\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}