黄季文 發表於 2008-9-8 18:49:20

Freebsd7.0 Apache2.2+MySQL5+PHP5安装和配置方法

<p> 一、安装apache2.2.8</p>
<p>  首先去http://www.apache.org 网站上下载apache2.2.8源码包</p>
<p>  解压缩</p>
<p>  #tar zxvf httpd-2.2.8.tar.gz</p>
<p>  得到 httpd-2.2.8文件夹</p>
<p>  #cd httpd-2.2.8</p>
<p>  配置</p>
<p>  #./configure --prefix=/usr/local/apache --enable-so --enable-module=rewrite</p>
<p>  编译</p>
<p>  #make</p>
<p>  安装</p>
<p>  #make install</p>
<p>  安装完成</p>
<p>  测试一下安装效果</p>
<p>  #cd /usr/local/apache</p>
<p>  #cd bin</p>
<p>  # ./apachectl start</p>
<p>  httpd: apr_sockaddr_info_get() failed for</p>
<p>  httpd: Could not reliably determine the server&#39;s fully qualified domain name, using 127.0.0.1 for ServerName</p>
<p>   (2)No such file or directory: Failed to enable the &#39;httpready&#39; Accept Filter</p>
<p>  出现上述提示</p>
<p>  #vi /usr/local/apache/conf/httpd.conf</p>
<p>  修改SeverName一项即可解决(1)错误提示</p>
<p>  产生(2)的原因是:FreeBSD 系统还提供了http filter,会自动过滤掉不完整的HTTP请求。</p>
<p> 一、安装apache2.2.8</p>
<p>  首先去http://www.apache.org 网站上下载apache2.2.8源码包</p>
<p>  解压缩</p>
<p>  #tar zxvf httpd-2.2.8.tar.gz</p>
<p>  得到 httpd-2.2.8文件夹</p>
<p>  #cd httpd-2.2.8</p>
<p>  配置</p>
<p>  #./configure --prefix=/usr/local/apache --enable-so --enable-module=rewrite</p>
<p>  编译</p>
<p>  #make</p>
<p>  安装</p>
<p>  #make install</p>
<p>  安装完成</p>
<p>  测试一下安装效果</p>
<p>  #cd /usr/local/apache</p>
<p>  #cd bin</p>
<p>  # ./apachectl start</p>
<p>  httpd: apr_sockaddr_info_get() failed for</p>
<p>  httpd: Could not reliably determine the server&#39;s fully qualified domain name, using 127.0.0.1 for ServerName</p>
<p>   (2)No such file or directory: Failed to enable the &#39;httpready&#39; Accept Filter</p>
<p>  出现上述提示</p>
<p>  #vi /usr/local/apache/conf/httpd.conf</p>
<p>  修改SeverName一项即可解决(1)错误提示</p>
<p>  产生(2)的原因是:FreeBSD 系统还提供了http filter,会自动过滤掉不完整的HTTP请求。</p>
<p>
                                                <div class="cupage"><a href='#'>上一页</a><strong>1</strong><a href='https://www.jb51.net/os/Unix/1538_2.html'>2</a> <a href='https://www.jb51.net/os/Unix/1538_3.html'>3</a> <a href='https://www.jb51.net/os/Unix/1538_2.html'>下一页</a> <a href='https://www.jb51.net/os/Unix/1538_all.html'>阅读全文</a></div>
頁: [1]
查看完整版本: Freebsd7.0 Apache2.2+MySQL5+PHP5安装和配置方法