歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Unix知識 >> Unix教程

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

FreeBSDApache

 一、安裝apache2.2.8

  首先去http://www.apache.org網站上下載apache2.2.8源碼包

  解壓縮

  #tar zxvf httpd-2.2.8.tar.gz

  得到 httpd-2.2.8文件夾

  #cd httpd-2.2.8

  配置

  #./configure --prefix=/usr/local/apache --enable-so --enable-module=rewrite

  編譯

  #make

  安裝

  #make install

  安裝完成

  測試一下安裝效果

  #cd /usr/local/apache

  #cd bin

  # ./apachectl start

  httpd: apr_sockaddr_info_get() failed for

  httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

  [Thu Apr 03 09:37:41 2008] [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter

  出現上述提示

  #vi /usr/local/apache/conf/httpd.conf

  修改SeverName一項即可解決(1)錯誤提示

  產生(2)的原因是:FreeBSD 系統還提供了http filter,會自動過濾掉不完整的HTTP請求。

 一、安裝apache2.2.8

  首先去http://www.apache.org網站上下載apache2.2.8源碼包

  解壓縮

  #tar zxvf httpd-2.2.8.tar.gz

  得到 httpd-2.2.8文件夾

  #cd httpd-2.2.8

  配置

  #./configure --prefix=/usr/local/apache --enable-so --enable-module=rewrite

  編譯

  #make

  安裝

  #make install

  安裝完成

  測試一下安裝效果

  #cd /usr/local/apache

  #cd bin

  # ./apachectl start

  httpd: apr_sockaddr_info_get() failed for

  httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

  [Thu Apr 03 09:37:41 2008] [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter

  出現上述提示

  #vi /usr/local/apache/conf/httpd.conf

  修改SeverName一項即可解決(1)錯誤提示

  產生(2)的原因是:FreeBSD 系統還提供了http filter,會自動過濾掉不完整的HTTP請求。

Copyright © Linux教程網 All Rights Reserved