{"id":1351,"date":"2012-08-17T15:54:40","date_gmt":"2012-08-17T06:54:40","guid":{"rendered":"http:\/\/wp.kaz.bz\/tech\/?p=1351"},"modified":"2012-08-17T16:23:02","modified_gmt":"2012-08-17T07:23:02","slug":"httpd-2-4%e7%b3%bb%e3%81%ae%e3%82%bd%e3%83%bc%e3%82%b9%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%82%b9%e3%82%af%e3%83%aa%e3%83%97%e3%83%88%e3%80%82","status":"publish","type":"post","link":"https:\/\/wp.kaz.bz\/tech\/2012\/08\/17\/1351.html","title":{"rendered":"httpd-2.4\u7cfb\u306e\u30bd\u30fc\u30b9\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3002"},"content":{"rendered":"<p>CentOS 6\u7cfb\u306e\u74b0\u5883\u306bhttpd-2.4\u7cfb\u3092\u30bd\u30fc\u30b9\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5834\u5408\u306b\u4f7f\u3048\u308b\u6c7a\u3081\u6253\u3061\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3002<br \/>\n\u9014\u4e2d\u3067\u4f55\u304b\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u306a\u3044\u306a\u3069\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u305d\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\uff08yum install **-devel \u306a\u3069\uff09\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u4f5c\u6210\u3057\u305f\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306a\u3069\u3092\u524a\u9664\u306e\u3046\u3048\u3001\u518d\u5ea6\u5b9f\u884c\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"brush:shell\">\r\n#! \/bin\/sh\r\n\r\nAPRPACK=apr-1.4.6\r\nAPRUTILPACK=apr-util-1.4.1\r\nHTTPDPACK=httpd-2.4.2\r\n\r\nAPRDIR=\/usr\/local\/apr\r\nAPRUTILDIR=${APRDIR}\r\n\r\nHTTPDINIT=\/etc\/rc.d\/init.d\/httpd\r\nHTTPDSYSCONF=\/etc\/sysconfig\/httpd\r\n\r\nSCRDIR=$( dirname $0 )\r\n\r\n# \u30b9\u30af\u30ea\u30d7\u30c8\u76f4\u4e0b\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306bapr \/ httpd \u305d\u308c\u305e\u308c\u306e\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4f5c\u6210\r\nchkdir(){\r\n    [ ! -d ${SCRDIR}\/apr ] && mkdir -p ${SCRDIR}\/apr\r\n    [ ! -d ${SCRDIR}\/httpd ] && mkdir -p ${SCRDIR}\/httpd\r\n}\r\n\r\n# \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5171\u901a\u90e8\r\ninstpack(){\r\n    wget http:\/\/ftp.riken.jp\/net\/apache\/$3\/$1.tar.gz\r\n    tar zxvf $1.tar.gz\r\n    pushd $1\r\n    .\/configure $2\r\n    make\r\n    make install\r\n    popd\r\n}\r\n\r\n# APR\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u30d1\u30b9\u3092\u767b\u9332\r\nsetldconfig(){\r\n    echo ${APRDIR}\/lib > \/etc\/ld.so.conf.d\/apr.conf\r\n    if [ ${APRDIR} != ${APRUTILDIR} ]; then\r\n        echo ${APRUTILDIR}\/lib >> \/etc\/ld.so.conf.d\/apr.conf\r\n    fi\r\n    ldconfig\r\n}\r\n\r\n\r\n# \u8d77\u52d5\u30b9\u30af\u30ea\u30d7\u30c8\u8a2d\u5b9a\r\n#   build\/rpm\/httpd.init \u3092\u30d9\u30fc\u30b9\u306b\u3002\r\n#   \u4ee5\u524d\u306f\u8d77\u52d5\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u4e2d\u8eab\u81ea\u4f53\u3092\u3044\u3058\u3063\u3066\u30d1\u30b9\u3092\u5909\u66f4\u3057\u3066\u3044\u305f\u304c\u3001\r\n#   \/etc\/sysconfig\/httpd \u3092\u4f7f\u3063\u3066\u5909\u66f4\u3059\u308b\u65b9\u304c\u6b63\u653b\u6cd5\u306a\u6c17\u304c\u3059\u308b\u306e\u3067\r\n#   \u305d\u3063\u3061\u3067\u5bfe\u5fdc\u3002\r\n#   \u305f\u3060\u3057\u3001check13 \u306b\u3064\u3044\u3066\u306f\u5b9f\u884c\u3059\u308b\u610f\u5473\u306f\u307b\u307c\u306a\u3044\u306e\u3067\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\r\nsethttpdinit(){\r\n\r\n# \/etc\/rc.d\/init.d\/httpd\r\nsed -e 's\/check13 .* exit 1\/# \\0\/g' ${HTTPDPACK}\/build\/rpm\/httpd.init > ${HTTPDINIT}\r\nchmod +x ${HTTPDINIT}\r\n\r\n\r\n# \/etc\/sysconfig\/httpd\r\ncat << '_EOT_' > ${HTTPDSYSCONF}\r\nHTTPDROOT=\/usr\/local\/apache2\r\n\r\nHTTPD=${HTTPDROOT}\/bin\/httpd\r\nPIDFILE=${HTTPDROOT}\/logs\/httpd.pid\r\n_EOT_\r\n}\r\n\r\nchkdir\r\ncd ${SCRDIR}\/apr\r\n\r\ninstpack ${APRPACK} \"--prefix=${APRDIR}\" apr\r\ninstpack ${APRUTILPACK} \"--prefix=${APRUTILDIR} --with-apr=${APRDIR}\" apr\r\nsetldconfig\r\n\r\ncd ..\/httpd\r\n\r\nyum list installed | grep pcre-devel || yum install -y pcre-devel\r\ninstpack ${HTTPDPACK} \"--with-apr=${APRDIR}\/ --with-apr-util=${APRUTILDIR}\/ --enable-mods-shared=all\" httpd\r\nsethttpdinit\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>CentOS 6\u7cfb\u306e\u74b0\u5883\u306bhttpd-2.4\u7cfb\u3092\u30bd\u30fc\u30b9\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5834\u5408\u306b\u4f7f\u3048\u308b\u6c7a\u3081\u6253\u3061\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3002 \u9014\u4e2d\u3067\u4f55\u304b\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u306a\u3044\u306a\u3069\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u305d\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\uff08yum install ** [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[67],"tags":[],"class_list":["post-1351","post","type-post","status-publish","format-standard","hentry","category-httpd-2-4"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":1179,"url":"https:\/\/wp.kaz.bz\/tech\/2012\/05\/25\/1179.html","url_meta":{"origin":1351,"position":0},"title":"1\u3064\u306eIP\u30a2\u30c9\u30ec\u30b9\u3067\u8907\u6570\u306e\u30b3\u30e2\u30f3\u30cd\u30fc\u30e0\u306eSSL\u8a3c\u660e\u66f8\u3092\u5229\u7528\u3059\u308b\uff08\uff1dSNI\uff09\u3002","author":"kaz. Suenaga","date":"2012\/05\/25","format":false,"excerpt":"\u53c2\u7167\uff09 http:\/\/e-garakuta.net\/techinfo\/doku.php\/linux\/\u2026","rel":"","context":"Apache","block_context":{"text":"Apache","link":"https:\/\/wp.kaz.bz\/tech\/category\/servers\/apache"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1136,"url":"https:\/\/wp.kaz.bz\/tech\/2012\/02\/23\/1136.html","url_meta":{"origin":1351,"position":1},"title":"Apache HTTP Server 2.4.1 \u304c\u30ea\u30ea\u30fc\u30b9\u3002","author":"kaz. Suenaga","date":"2012\/02\/23","format":false,"excerpt":"\u30ea\u30ea\u30fc\u30b9 2.2\u304b\u3089\u306f\u3060\u3044\u3076\u5909\u308f\u3063\u3066\u3044\u308b\u3088\u3046\u306a\u306e\u3067\u3001\u3053\u306e\u5148\u3061\u307e\u3061\u307e\u30e1\u30e2\u3092\u3042\u3052\u3066\u3044\u304d\u307e\u3059\u3002 \u73fe\u6642\u70b9\u3067\u308f\u2026","rel":"","context":"Apache 2.4","block_context":{"text":"Apache 2.4","link":"https:\/\/wp.kaz.bz\/tech\/category\/servers\/apache\/httpd-2-4"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":634,"url":"https:\/\/wp.kaz.bz\/tech\/2011\/02\/03\/634.html","url_meta":{"origin":1351,"position":2},"title":"daemontools + ucspi-tcp + djbdns(dnscache) + netqmail =","author":"kaz. Suenaga","date":"2011\/02\/03","format":false,"excerpt":"\u4e00\u6c17\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u6c7a\u3081\u3046\u3061\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3059\u3002 \/usr\/local\/src\/djb \u3068\u304b\u306b ins\u2026","rel":"","context":"DJB","block_context":{"text":"DJB","link":"https:\/\/wp.kaz.bz\/tech\/category\/servers\/djb"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":93,"url":"https:\/\/wp.kaz.bz\/tech\/2006\/06\/12\/93.html","url_meta":{"origin":1351,"position":3},"title":"OpenSSL \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b9\u30af\u30ea\u30d7\u30c8","author":"kaz. Suenaga","date":"2006\/06\/12","format":false,"excerpt":"[code lang=text] #! \/bin\/sh # Config PACK=openssl-\u2026","rel":"","context":"OpenSSL","block_context":{"text":"OpenSSL","link":"https:\/\/wp.kaz.bz\/tech\/category\/web\/openssl"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":26,"url":"https:\/\/wp.kaz.bz\/tech\/2008\/12\/09\/26.html","url_meta":{"origin":1351,"position":4},"title":"\u30bd\u30fc\u30b9\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5834\u5408\u306eapache2\u306e\u8d77\u52d5\u30b9\u30af\u30ea\u30d7\u30c8\u3002","author":"kaz. Suenaga","date":"2008\/12\/09","format":false,"excerpt":"\uff08\u30bd\u30fc\u30b9\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\uff09\/build\/rpm\/httpd.init \u3068\u3057\u3066\u3001RPM\u7248\u306e\u5834\u5408\u306e\u8d77\u52d5\u30b9\u30af\u30ea\u2026","rel":"","context":"Apache","block_context":{"text":"Apache","link":"https:\/\/wp.kaz.bz\/tech\/category\/servers\/apache"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2663,"url":"https:\/\/wp.kaz.bz\/tech\/2021\/09\/21\/2663.html","url_meta":{"origin":1351,"position":5},"title":"AlmaLinux 8 \u6a19\u6e96\u30ea\u30dd\u30b8\u30c8\u30ea\u3067 WordPress \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u74b0\u5883\u69cb\u7bc9\u3002","author":"kaz. Suenaga","date":"2021\/09\/21","format":false,"excerpt":"remi \u3092\u4f7f\u308f\u305a\u306b\u8a2d\u5b9a\u3059\u308b\u30e1\u30e2\u3002 epel \u306f\u4f7f\u3046\u3002powertools \u3082\u4f7f\u3046\u3002 httpd 2\u2026","rel":"","context":"AlmaLinux","block_context":{"text":"AlmaLinux","link":"https:\/\/wp.kaz.bz\/tech\/category\/lin\/almalinux"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/posts\/1351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/comments?post=1351"}],"version-history":[{"count":0,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/posts\/1351\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/media?parent=1351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/categories?post=1351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/tags?post=1351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}