{"id":284,"date":"2015-07-28T16:43:06","date_gmt":"2015-07-28T07:43:06","guid":{"rendered":"http:\/\/stuffy.dip.jp\/wordpress\/?p=284"},"modified":"2017-05-29T16:17:19","modified_gmt":"2017-05-29T07:17:19","slug":"vanishing-apache2","status":"publish","type":"post","link":"https:\/\/www.stuffy.site\/wordpress\/?p=284","title":{"rendered":"apache2 \u304c\u6d88\u3048\u305f"},"content":{"rendered":"<p>\/usr\/local\/apache2 \u306bApache2.2 \u3092\u30bd\u30fc\u30b9\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001httpd.conf \u3092\u7de8\u96c6\u4e2d\u306b\u7a81\u7136\u3001apache2 \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u6d88\u3048\u307e\u3057\u305f\u3002<del>yum \u304b\u3089\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f<\/del> OS\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b\u5165\u3063\u3066\u3044\u305f apache \u306ehttpd.conf \u304b\u3089\u66f8\u304d\u5199\u3057\u3092\u3057\u3066\u3044\u305f\u6298\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3001\u89e3\u51cd\u3057\u305f wordpress \u3092\u5f53\u8a72\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b mv \u30b3\u30de\u30f3\u30c9\u3067\u79fb\u52d5\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u305f\u77e2\u5148\u3067\u3057\u305f\u3002\u3053\u3093\u306a\u3053\u3068\u3063\u3066\u3042\u308b\u3093\u3067\u3059\u304b\u306d\u3002\u305f\u307e\u3052\u305f\u306a\u3041\uff5e\u3002\u8ab0\u304b\u306b\u30cf\u30c3\u30ad\u30f3\u30b0\u3055\u308c\u3066\u6d88\u3055\u308c\u305f\u3001\u30cf\u30c3\u30ad\u30ea\u5206\u304b\u3093\u3060\u306d\u3002 \u4ed5\u65b9\u304c\u306a\u3044\u304b\u3089\u30bd\u30fc\u30b9\u304b\u3089\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001(\u4e00\u65e5\u306e) \u3084\u308a\u76f4\u3057\u307e\u3059\u3088\u3001\u3059\u308b\u3059\u308b\u3063\uff01<\/p>\n<p>Apache\u306e\u30bd\u30fc\u30b9\u306f\u3001 Download &#8211; The Apache HTTP Server Project <a href=\"http:\/\/httpd.apache.org\/download.cgi#apache22\" target=\"_blank\">http:\/\/httpd.apache.org\/download.cgi#apache22<\/a> \u304b\u3089\u6700\u65b0\u7248\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30022015\u5e747\u670828\u65e5\u73fe\u5728\u3067\u3001\u6700\u65b0\u7248\u306f\u30d0\u30fc\u30b8\u30e7\u30f3\u306fapache2.2.31 \uff08Apache 2.4 \u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3053\u3068\u3042\u308b\uff1f\uff09\u30fb\u30fb\u30fb\u306a\u3044\u3067\u3059\u3002\u3075\uff5e\u3093\u3002\u3042\u3063\uff08\u5bdf\u3057\uff09\u3002<\/p>\n<p>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u79fb\u52d5\u3057\u3066 httpd-2.2.x\/\u3092\u89e3\u51cd\u3057\u305f\u3089<\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\"># cd \/usr\/local\/src\r\n# wget http:\/\/ftp.riken.jp\/net\/apache\/\/httpd\/httpd-2.2.31.tar.gz\r\n# tar zxvf httpd-2.2.31.tar.gz\r\n# cd httpd-2.2.31\/<\/pre>\n<p>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u79fb\u52d5\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u546a\u6587\u3092\u5531\u3048\u307e\u3059\u3002 <a href=\"http:\/\/qiita.com\/Fu3nori\/items\/1fca9c59ebaf53ee3c2b\" target=\"_blank\">CentOS\u3078Apache2.x\u3092\u30bd\u30fc\u30b9\u30d3\u30eb\u30c9\u3057\u3066Service\u767b\u9332\u3059\u308b &#8211; Qiita<\/a><\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\"># .\/configure --prefix=\/usr\/local\/apache2 <span style=\"font-family: Arial;\">\\<\/span>\r\n\u3000--enable-suexec\u00a0<span style=\"font-family: Arial;\">\\<\/span>\r\n\u00a0--enable-cache\u00a0<span style=\"font-family: Arial;\">\\<\/span>\r\n\u00a0--enable-disk-cache\u00a0<span style=\"font-family: Arial;\">\\<\/span>\r\n\u00a0--enable-mem-cache <span style=\"font-family: Arial;\">\\<\/span>\r\n\u00a0--enable-logio\u00a0<span style=\"font-family: Arial;\">\\<\/span>\r\n\u00a0--enable-header <span style=\"font-family: Arial;\">\\<\/span>\r\n\u00a0--enable-ssl\u00a0<span style=\"font-family: Arial;\">\\<\/span>\r\n\u00a0--enable-rewrite\u00a0<span style=\"font-family: Arial;\">\\<\/span>\r\n\u00a0--enable-so\u00a0<span style=\"font-family: Arial;\">\\<\/span>\r\n\u00a0--enable-proxy\u00a0<span style=\"font-family: Arial;\">\\<\/span>\r\n\u00a0--enable-mods-shared=all<\/pre>\n<p>\u3061\u306a\u307f\u306b\u79c1\u306f\u3001zlib \u304c\u306a\u3044\u3063\uff01\u3063\u3066\u6012\u3089\u308c\u307e\u3057\u305f\u3002\u89e3\u6c7a\u6cd5\u306f\u4ee5\u4e0b\u3002<a href=\"http:\/\/www.atmarkit.co.jp\/ait\/articles\/1107\/22\/news142.html\" target=\"_blank\">\u4ed5\u4e8b\u3067\u4f7f\u3048\u308b\u9b54\u6cd5\u306eLAMP\uff0815\uff09\uff1a\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u8db3\u308a\u306a\u304f\u3066\u30d3\u30eb\u30c9\u3067\u304d\u306a\u3044\u3068\u304d\u306f\uff1f &#8211; \uff20IT<\/a><\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\"># yum install zlib zlib<span class=\"pun\">-<\/span><span class=\"pln\">devel<\/span><\/pre>\n<p>.\/configure \u3092\u3084\u308a\u76f4\u3057\u3066\u3001\u7d9a\u3044\u3066# root \u6a29\u9650\u3067<\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\"># make\r\n# make install<\/pre>\n<p>\u3053\u308c\u3067\u3001\/usr\/local\/apache2 \u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5b8c\u4e86\u3067\u3059\u3002\u3053\u306e\u3068\u304d\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb httpd.conf \u306f\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306e<br \/>\n\/etc\/httpd\/conf\/httpd.conf \u30fb\u30fb\u30fb\u3067\u306f\u306a\u304f\u3001\/usr\/local\/apache2\/conf\/httpd.conf \u306b\u4f5c\u3089\u308c\u307e\u3059\u3002\u3053\u3053\u304b\u3089 Apache HTTP Server \u306e\u8a2d\u5b9a\u3092\u3057\u3066\u3086\u304f\u308f\u3051\u3067\u3059\u304c\u3001\u8af8\u5148\u8f29\u65b9\u306e\u8a73\u7d30\u306a\u89e3\u8aac\u3092\u30ea\u30f3\u30af\u3057\u3066\u5272\u611b\u3057\u307e\u3059\u3002 <a href=\"http:\/\/linux.kororo.jp\/cont\/server\/httpd_conf.php\" target=\"_blank\">\u30b3\u30ed\u306eLinux\u30b5\u30fc\u30d0\u30fc\u69cb\u7bc9 &#8211; httpd.conf \u306e\u8a2d\u5b9a<\/a> \u307e\u305f\u8d77\u52d5\u30b3\u30de\u30f3\u30c9\u3082\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u3068\u30bd\u30fc\u30b9\u30d3\u30eb\u30c9\u3067\u306f\u7570\u306a\u3063\u3066\u304a\u308a\u3001<\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\"># service httpd start \uff08\u30d1\u30c3\u30b1\u30fc\u30b8\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff09\r\n# \/usr\/local\/apache2\/bin\/apachectl start \uff08\u30bd\u30fc\u30b9\u30d3\u30eb\u30c9\uff09<\/pre>\n<p>\u3068\u306a\u3063\u3066\u304a\u308a\u307e\u3059\u3002 \u3042\u3068\u3001\u899a\u3048\u3066\u3044\u308b\u9650\u308a\u3067\u3059\u304c PHP \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3082\u30e1\u30e2\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u30bd\u30fc\u30b9\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u30b5\u30a4\u30c8\uff082015\u5e747\u670828\u65e5\u73fe\u5728\u3001PHP\u30d0\u30fc\u30b8\u30e7\u30f3 5.6.11\uff09\u304b\u30df\u30e9\u30fc\u30ea\u30f3\u30af\u3092\u305f\u3069\u3063\u3066Windows \u306b\u4fdd\u5b58\u307e\u305f\u306f\u3001\u30ea\u30f3\u30af\u30a2\u30c9\u30ec\u30b9\u3092\u30b3\u30d4\u30fc\u3057\u3066\u3001wget \u30b3\u30de\u30f3\u30c9\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u89e3\u51cd\u3057\u307e\u3059\u3002 <a href=\"http:\/\/php.net\/downloads.php\" target=\"_blank\">PHP: Downloads<\/a> <a href=\"http:\/\/php.net\/get\/php-5.6.11.tar.gz\/from\/a\/mirror\" target=\"_blank\">http:\/\/php.net\/get\/php-5.6.11.tar.gz\/from\/a\/mirror<\/a><\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\"># cd \/usr\/local\/src\r\n# wget http:\/\/jp2.php.net\/get\/php-5.6.11.tar.gz\r\n# tar zxvf php-5.6.11.tar.gz\r\n# cd php-5.6.11\/<\/pre>\n<p>php-5.x.x\/ \u306b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u79fb\u52d5\u3057\u3066\u4ee5\u4e0b\u306e\u546a\u6587\u3092\u5531\u3048\u307e\u3059\u3002<\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\"># .\/configure --with-apxs2=\/usr\/local\/apache2\/bin\/apxs --with-mysql<\/pre>\n<p>\u3059\u308b\u3068\u3001apxs \u304c\u306a\u3044\u3063\uff01\u3063\u3066\u6012\u3089\u308c\u307e\u3057\u305f\u3002\u89e3\u6c7a\u6cd5\u306f\u4ee5\u4e0b\u30ea\u30f3\u30af\u3002 <a href=\"http:\/\/tazakazushi.net\/apache_no_apxs.html\" target=\"_blank\">[apache] \u30e2\u30b8\u30e5\u30fc\u30eb\u8ffd\u52a0\u3067apxs\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u6642\u306e\u89e3\u6c7a\u65b9\u6cd5 | \u8ff7\u8d70\u7537\u5b50\uff01\uff01<\/a><\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\"># yum install -y httpd-devel<\/pre>\n<p>.\/configure \u306e\u3084\u308a\u76f4\u3057\u3002\u3068\u3053\u308d\u304c\u4eca\u5ea6\u306f\u3001libxml2 \u304c\u306a\u3044\u3063\uff01\u3068\u6012\u3089\u308c\u307e\u3057\u305f\u3002\u4ee5\u4e0b\u306e\u30b5\u30a4\u30c8\u3092\u53c2\u8003\u306b\u30b3\u30de\u30f3\u30c9\u5165\u529b\u3002 <a href=\"http:\/\/dage.jp\/post\/apache2-2php5-2-%E5%AE%8C%E5%85%A8%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB-part2-php%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\/\" target=\"_blank\">dage.jp \u00bb Apache2.2+PHP5.2 \u5b8c\u5168\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u2013 part2 \u2013 PHP\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\"># yum install -y libxml2 libxml2-devel<\/pre>\n<p>.\/configure \u306e\u3084\u308a\u76f4\u3057\u3092\u3057\u307e\u3059\u3002\u2192 <a href=\"http:\/\/php.net\/manual\/ja\/libxml.installation.php\" target=\"_blank\">PHP: \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806 &#8211; Manual<\/a><\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\"># .\/configure --with-apxs2=\/usr\/local\/apache2\/bin\/apxs --with-mysql --with-libxml-dir=\/usr\/bin\/xml2-config<\/pre>\n<p>\u4eca\u5ea6\u306f\u6210\u529f\u3067\u3059\u3002<\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\"># make\r\n# make install<\/pre>\n<p>(\u8ffd\u8a18\uff09PHP \u306e\u8a2d\u5b9a\u3092\/usr\/local\/apache2\/conf\/httpd.conf \u3067\u6709\u52b9\u306b\u3059\u308b\u305f\u3081\u4e0b\u8a18\u8a2d\u5b9a\u3092\u8ffd\u52a0<\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\">LoadModule php5_module modules\/libphp5.so [\u65b0\u898f\u8ffd\u52a0]\r\n&lt;IfModule mine_module&gt;\r\n\u30fb\u30fb\u30fb\r\nAddType application\/x-httpd-php .php\u00a0[\u65b0\u898f\u8ffd\u52a0]\r\nAddType application\/x-httpd-php-source .phps\u00a0[\u65b0\u898f\u8ffd\u52a0]\r\n&lt;\/IfModule mine_module&gt;\r\n<\/pre>\n<p><a href=\"https:\/\/www.stuffy.site\/wordpress\/index.php\/2015\/08\/15\/rebuild-php-on-virtualbox\/\" target=\"_blank\">https:\/\/www.stuffy.site\/wordpress\/index.php\/2015\/08\/15\/rebuild-php-on-virtualbox\/<\/a><\/p>\n<p>\u3057\u3066httpd.conf \u3092\u7de8\u96c6\u3001<\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\">\u30fb\u30fb\u30fb\r\n&lt;Directory \"\/usr\/local\/apache2\/htdocs\/wordpress\"&gt;\r\n\u00a0\u00a0\u00a0\u00a0 AllowOverride all\r\n\u00a0&lt;\/Directory&gt;\r\n\u30fb\u30fb\u30fb\r\n Alias \/wordpress\/ \"\/usr\/local\/apache2\/htdocs\/wordpress\/\"<\/pre>\n<p>WordPress \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066<\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\">http:\/\/\u30db\u30b9\u30c8\u30cd\u30fc\u30e0\u30a2\u30c9\u30ec\u30b9\/wordpress\/wp-admin\/install.php<\/pre>\n<p>\u304b\u3089\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u753b\u9762\u8868\u793a\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"https:\/\/www.stuffy.site\/wordpress\/wp-content\/uploads\/2015\/07\/install.php_.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-310\" src=\"https:\/\/www.stuffy.site\/wordpress\/wp-content\/uploads\/2015\/07\/install.php_-300x155.png\" alt=\"install.php\" width=\"300\" height=\"155\" \/><\/a><\/p>\n<p>\u8ffd\u8a18\uff09http:\/\/\u30db\u30b9\u30c8\u30cd\u30fc\u30e0\u30a2\u30c9\u30ec\u30b9\/ \u3067\u30a2\u30af\u30bb\u30b9\u3055\u305b\u305f\u3044\u3068\u304d\u306f\u3001httpd.conf \u306eDocumentRoot \u8a2d\u5b9a\u3092<\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\">\u30fb\u30fb\u30fb\r\nDocumentRoot \/usr\/local\/apache2\/htdocs\/wordpress<\/pre>\n<p>\u3057\u307e\u3059\u3002<\/p>\n<p>\u7dcf\u3058\u3066 apache \u3082PHP\u3082\u3001.\/configure make make install !! .\/configure make make install !! \u3066\u611f\u3058\u3067\u30fb\u30fb\u30fb\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/usr\/local\/apache2 \u306bApache2.2 \u3092\u30bd\u30fc\u30b9\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001httpd.conf \u3092\u7de8\u96c6\u4e2d\u306b\u7a81\u7136\u3001apache2 \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u6d88\u3048\u307e\u3057\u305f\u3002yum \u304b\u3089\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f OS\u30a4\u30f3 &hellip; <a href=\"https:\/\/www.stuffy.site\/wordpress\/?p=284\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">apache2 \u304c\u6d88\u3048\u305f<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38,3,33,6,5],"tags":[],"class_list":["post-284","post","type-post","status-publish","format-standard","hentry","category-apache","category-linux","category-php","category-settings","category-software"],"_links":{"self":[{"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/284","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=284"}],"version-history":[{"count":24,"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/284\/revisions"}],"predecessor-version":[{"id":1453,"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/284\/revisions\/1453"}],"wp:attachment":[{"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=284"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}