<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Httd - Tag - Mulinux | Linux &amp; DevOps Notes</title>
    <link>https://blog.mulinux.com/en/tags/httd/</link>
    <description>Mulinux - Linux Operations &amp; DevOps blog. Notes on Linux, Kubernetes, Docker and backend engineering.</description>
    <generator>Hugo 0.160.0 &amp; FixIt v0.4.5</generator>
    <language>en</language>
    <lastBuildDate>Thu, 24 Jan 2019 10:42:04 +0800</lastBuildDate>
    <atom:link href="https://blog.mulinux.com/en/tags/httd/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>CentOS7部署httpd2.4.8(需支持perl)</title>
      <link>https://blog.mulinux.com/en/centos7%E9%83%A8%E7%BD%B2httpd2.4.38/</link>
      <pubDate>Thu, 24 Jan 2019 10:42:04 +0800</pubDate>
      <guid>https://blog.mulinux.com/en/centos7%E9%83%A8%E7%BD%B2httpd2.4.38/</guid>
      <category domain="https://blog.mulinux.com/en/categories/operations/">Operations</category>
      <description>&lt;h2 class=&#34;heading-element&#34; id=&#34;依赖包安装&#34;&gt;&lt;span&gt;依赖包安装&lt;/span&gt;&#xA;  &lt;a href=&#34;#%e4%be%9d%e8%b5%96%e5%8c%85%e5%ae%89%e8%a3%85&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;yum -y install  gcc gcc-c&amp;#43;&amp;#43; make zlib zlib-devel openssl expat-devel  openssl-devel pcre pcre-devel&#xA;相关包下载地址：https://mirrors.tuna.tsinghua.edu.cn/apache/&#xA;apr-1.6.5.tar.gz&#xA;apr-util-1.6.1.tar.gz&#xA;httpd-2.4.37.tar.gz&lt;/code&gt;&lt;/pre&gt;&lt;h2 class=&#34;heading-element&#34; id=&#34;安装&#34;&gt;&lt;span&gt;安装&lt;/span&gt;&#xA;  &lt;a href=&#34;#%e5%ae%89%e8%a3%85&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;./configure --prefix=/usr/local/apr&#xA;#rm如果报错，修改configure文件，RM=&amp;#39;$RM&amp;#39; 修改为RM=&amp;#39;$RM -f&amp;#39;&#xA;make &amp;amp;&amp;amp; make install&#xA;安装apr-util&#xA;./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/&#xA;make &amp;amp;&amp;amp; make install&#xA;安装httpd&#xA;./configure \&#xA;--prefix=/usr/local/apache/ \&#xA;--with-apr=/usr/local/apr/ \&#xA;--with-apr-util=/usr/local/apr-util/ \&#xA;--enable-so \&#xA;--enable-ssl\&#xA;--enable-alib\&#xA;--with-ssl\&#xA;--with--pcre\&#xA;--enable-deflate=shared \&#xA;--enable-expires=shared \&#xA;--enable-rewrite=shared \&#xA;--enable-static-support&#xA;make &amp;amp;&amp;amp; make install&lt;/code&gt;&lt;/pre&gt;&lt;h2 class=&#34;heading-element&#34; id=&#34;mod_perl支持&#34;&gt;&lt;span&gt;mod_perl支持&lt;/span&gt;&#xA;  &lt;a href=&#34;#mod_perl%e6%94%af%e6%8c%81&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&lt;p&gt;otrs系统原本使用的是centos yum安装的httpd2.4.6版本，因安全基线要求，编译了2.4.38至/usr/local/apache目录下，因程序是perl，所以需要添加mod_perl支持&#xA;&lt;code&gt;cp /usr/lib64/httpd/modules/mod_perl.so /usr/local/apache/modules/&lt;/code&gt;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
