{"id":5921,"date":"2020-06-18T07:00:28","date_gmt":"2020-06-17T22:00:28","guid":{"rendered":"https:\/\/www.ecomottblog.com\/?p=5921"},"modified":"2020-06-18T09:49:37","modified_gmt":"2020-06-18T00:49:37","slug":"amazon-linux1%e3%81%a7apache2-4%e3%82%92%e3%82%b3%e3%83%b3%e3%83%91%e3%82%a4%e3%83%ab%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f","status":"publish","type":"post","link":"https:\/\/test.ecomottblog.com\/?p=5921","title":{"rendered":"Amazon Linux1\u3067Apache2.4\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u307f\u305f"},"content":{"rendered":"<p>\u306f\u3058\u3081\u307e\u3057\u3066\u3001\u958b\u767a\u672c\u90e8\u306e\u4e0d\u7834\u3067\u3059\u3002<br \/>\n\u30bf\u30a4\u30c8\u30eb\u306e\u901a\u308a\u306a\u306e\u3067\u3059\u304c\u3001\u696d\u52d9\u3067\u305f\u307e\u305f\u307eApache2.4\u3092\u81ea\u5206\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u6a5f\u4f1a\u304c\u3042\u3063\u305f\u306e\u3067\u30d6\u30ed\u30b0\u3067\u3082\u5171\u6709\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<h1>\u524d\u63d0<\/h1>\n<ul>\n<li>root\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u306e\u4f5c\u696d<\/li>\n<li>OS\u306fAmazon Linux1<\/li>\n<li>\u672c\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u4f7f\u7528\u3057\u305f\u4eee\u60f3\u30de\u30b7\u30f3\u306fVirtualBox+Vagrant\u3067\u7528\u610f\u3057\u305f\u3002<\/li>\n<\/ul>\n<h1>\u30b3\u30f3\u30d1\u30a4\u30e9\u7b49\u4e00\u5f0f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h1>\n<p>\u307e\u305a\u306fgroupinstall\u3067\u30b3\u30f3\u30d1\u30a4\u30e9\u306a\u3069\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n<pre><code>yum groupinstall development\n<\/code><\/pre>\n<p>\u66f4\u306b\u8ffd\u52a0\u3067\u5fc5\u8981\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u7b49\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n<pre><code>yum install expat-devel openssl-devel libxml2-devel postgresql94-devel libcurl-devel libpng-devel libjpeg-turbo-devel libmcrypt-devel  libpng-devel\n<\/code><\/pre>\n<h1>Apache2.4\u3068\u95a2\u9023\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30bd\u30fc\u30b9\u306e\u6e96\u5099<\/h1>\n<p>\u307e\u305a\u306f\u30bd\u30fc\u30b9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3002<\/p>\n<pre><code>wget http:\/\/ftp.kddilabs.jp\/infosystems\/apache\/\/httpd\/httpd-2.4.39.tar.gz\n<\/code><\/pre>\n<pre><code>tar zxvf httpd-2.4.39.tar.gz\n<\/code><\/pre>\n<p>\u6b21\u306b\u95a2\u9023\u30d1\u30c3\u30b1\u30fc\u30b8(APR, PCRE)\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3002<\/p>\n<h2>APR<\/h2>\n<pre><code>wget http:\/\/ftp.jaist.ac.jp\/pub\/apache\/apr\/apr-1.6.5.tar.gz\n<\/code><\/pre>\n<pre><code>cd apr-1.6.5\n<\/code><\/pre>\n<pre><code>.\/configure --prefix=\/usr\/local\/apache2\n<\/code><\/pre>\n<pre><code>make &amp;&amp; make install\n<\/code><\/pre>\n<h2>APR-Util<\/h2>\n<pre><code>wget http:\/\/ftp.riken.jp\/net\/apache\/apr\/apr-util-1.6.1.tar.gz\n<\/code><\/pre>\n<pre><code>tar zxvf apr-util-1.6.1.tar.gz\n<\/code><\/pre>\n<pre><code>.\/configure  --with-apr=\/usr\/local\/apr\n<\/code><\/pre>\n<pre><code>make &amp;&amp; make install\n<\/code><\/pre>\n<h3>\u3082\u3057\u300crm: cannot remove &#8216;libtoolT&#8217;: No such file or directory\u300d\u304c\u51fa\u305f\u3089<\/h3>\n<p>configure\u4e2d\u306b<\/p>\n<pre><code>rm: cannot remove 'libtoolT': No such file or directory\n<\/code><\/pre>\n<p>\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3089\u3001\u6b21\u306e\u64cd\u4f5c\u3092\u884c\u3046\u3002<\/p>\n<pre><code>vim configure\n<\/code><\/pre>\n<p>30993\u884c\u76ee\u306e<\/p>\n<pre><code>$RM \"$cfgfile\"\n<\/code><\/pre>\n<p>\u3092<\/p>\n<pre><code>$RM -f \"$cfgfile\"\n<\/code><\/pre>\n<p>\u306b\u3059\u308b\u3002\u3053\u3053\u3067\u3082\u3046\u4e00\u5ea6configure\u3059\u308b\u3002<\/p>\n<pre><code>make\n<\/code><\/pre>\n<pre><code>make install\n<\/code><\/pre>\n<h2>PECL<\/h2>\n<pre><code>yum install pcre-devel\n<\/code><\/pre>\n<h2>libiconv<\/h2>\n<pre><code>wget http:\/\/ftp.gnu.org\/pub\/gnu\/libiconv\/libiconv-1.10.tar.gz\n<\/code><\/pre>\n<pre><code>wget http:\/\/www2d.biglobe.ne.jp\/~msyk\/software\/libiconv\/libiconv-1.10-ja-1.patch.gz\n<\/code><\/pre>\n<pre><code>tar xzf libiconv-1.10.tar.gz\n<\/code><\/pre>\n<pre><code>cd libiconv-1.10\n<\/code><\/pre>\n<pre><code>gzip -dc ..\/libiconv-1.10-ja-1.patch.gz | patch -p1\n<\/code><\/pre>\n<pre><code>.\/configure\n<\/code><\/pre>\n<pre><code>make\n<\/code><\/pre>\n<pre><code>make install\n<\/code><\/pre>\n<h2>Apache2.4<\/h2>\n<p>\u3088\u3046\u3084\u304fApache2.4\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u306b\u5165\u308b\u3002<\/p>\n<pre><code>cd ..\/httpd-2.4.39\n<\/code><\/pre>\n<pre><code>.\/configute --enable-modules=all --enable-mods-shared=all --with-mpm=worker --enable-mpms-shared='prefork worker event' --enable-proxy-ajp --enable-cache  --enable-file-cache --enable-disk-cache --enable-mem-cache --enable-proxy --enable-ssl --enable-authn-alias\n<\/code><\/pre>\n<pre><code>make\n<\/code><\/pre>\n<pre><code>make install\n<\/code><\/pre>\n<h1>\u30b5\u30fc\u30d3\u30b9\u767b\u9332<\/h1>\n<p>OS\u8d77\u52d5\u6642\u306b\u81ea\u52d5\u8d77\u52d5\u3055\u305b\u305f\u3044\u306e\u3067\u3001\u30b5\u30fc\u30d3\u30b9\u5316\u3059\u308b\u3002<\/p>\n<p><code>\/usr\/local\/apache2\/bin\/apachectl<\/code>\u306e39\u884c\u76ee\u306b\u6b21\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u8a18\u3059\u308b\u3002<\/p>\n<pre><code># chkconfig:345 91 91\n#description:Apache Boot\n<\/code><\/pre>\n<pre><code>ln -s \/usr\/local\/apache2\/bin\/apachectl \/etc\/init.d\/httpd\n<\/code><\/pre>\n<pre><code>chkconfig --add httpd\n<\/code><\/pre>\n<pre><code>chkconig httpd on\n<\/code><\/pre>\n<h1>lynx\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h1>\n<p>\u3053\u306e\u307e\u307e\u3060\u3068Apache2.4\u304c\u52d5\u304b\u306a\u3044\u305f\u3081\u3001lynx\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n<pre><code>yum install lynx\n<\/code><\/pre>\n<h1>Apache\u8d77\u52d5<\/h1>\n<pre><code>service httpd start\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u307e\u3057\u3066\u3001\u958b\u767a\u672c\u90e8\u306e\u4e0d\u7834\u3067\u3059\u3002 \u30bf\u30a4\u30c8\u30eb\u306e\u901a\u308a\u306a\u306e\u3067\u3059\u304c\u3001\u696d\u52d9\u3067\u305f\u307e\u305f\u307eApache2.4\u3092\u81ea\u5206\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u6a5f\u4f1a\u304c\u3042\u3063\u305f\u306e\u3067\u30d6\u30ed\u30b0\u3067\u3082\u5171\u6709\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"author":61,"featured_media":5926,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"_links":{"self":[{"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts\/5921"}],"collection":[{"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/users\/61"}],"replies":[{"embeddable":true,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5921"}],"version-history":[{"count":6,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts\/5921\/revisions"}],"predecessor-version":[{"id":6030,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts\/5921\/revisions\/6030"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/media\/5926"}],"wp:attachment":[{"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5921"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5921"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}