歡迎您光臨本站 註冊首頁

Apache伺服器的正確安裝和配置

←手機掃碼閱讀     火星人 @ 2014-03-09 , reply:0

  一、 安裝APACHE1.3.9 (配置conf目錄下的httpd.conf文件)
  1.#BindAddress * 改為 BindAddress 127.0.0.1
  #Servername new.host.name 改為 Servername localhost或(您的IP地下址).
  設置您的埠.如果您安裝了IIS則要改您的埠號.則在confhttpd.conf:Port 80(默認).
  則在瀏覽器中輸入http//localhost:80/時能訪問IIS.
  2.設置管員的信箱 修改ServerAdmin yourname@your.address
  3.讓你的APACHE來支持PHP4. 加上下面這麼幾句:
  ScriptAlias /php4/ "C:/php4/"
  AddType application/x-httpd-php4 .php
  AddType application/x-httpd-php4 .php3
  AddType application/x-httpd-php4 .php4
  Action application/x-httpd-php4 "/php4/php.exe"
  4.
  3.設置Apache虛擬目錄,加入以下行:
  Alias /test/ "c:/php3/test/"
  Alias /jjjj/ "d:/timenet/"
  4.增加默認啟動文檔:
  DirectoryIndex index.html
  DirectoryIndex index.htm
  DirectoryIndex index.php
  DirectoryIndex index.php3
  DirectoryIndex index.php4
  5.測試文件info.php:
  在瀏覽器中輸入http// localhost/info.php
  
  


[火星人 ] Apache伺服器的正確安裝和配置已經有650次圍觀

http://coctec.com/docs/linux/show-post-55819.html