Windows 2000下PHP伺服器安裝攻略

來源:互聯網
上載者:User
一、前期準備情況 Apache2(Win32) 完全模組化安裝perl,php,ssl
  1、一個安裝好的WIN2000伺服器,注意:如果你的機器上已經安裝了IIS,將IIS裡的所有web網站停掉或連接埠先改成別的。
  2、下載軟體
APACHE 2.0.48
Perl 4.3.1
PHP 4.3.1
MYSQL 4.0.12
ZendOptimizer
  還有幾個小東西,很重要,後面的安裝會用到(不會全用到,有些檔案是編譯好的,可以直接用)
  下載地址1: http://www.xdiy.net/soft/serv.rar
  下載地址1: http://www.techxy.com/xdiy/serv.zip
  包裡面是:mod_perl 1.9/ mod_ssl 2.0.43/ OpenSSL 0.9.6h/ mod_jk/ ApacheModuleGzip.dll
  gd 2.0.9/ gdpm/ perldiver 1.1/ 中文php.ini/editplus /php_gd_gif.dll 等
  二、安裝開始
  1、APACHE安裝
  1.1:運行apache_2.0.44-win32-x86-no_ssl.msi,
  假設我的安裝的預設路徑是 X: ,這樣就安裝在x盤下的APACHE2的路徑下,同時預設域為domain.com。
  1.2:(作一個虛擬機器主機,此步可以不做)
  編輯X:apache2confhttpd.conf
  找到 #NameVirtualHost *
  修改為 NameVirtualHost 192.168.0.1 #注意這個IP為你自己主機設的IP
  找到 ServerName domain.com 修改為 #ServerName domain.com
  找到ServerAdmin * (*是你安裝apache時所填寫的郵箱地址)修改為 #ServerAdmin
  接下來添加以下語句:#……的是我的注釋,不用加,看一下就可以了
<VirtualHost 192.168.0.1>
ServerAdmin webmaster@domain.com
#主機管理員(連絡人)的郵箱地址
ServerName domain.com
#主機名稱(主機頭名)
ServerAlias domain.com www1.domain.com
#主機名稱(同樣可以生效的主機頭名)
document.oot X:/VirtualHost/domain.com/www.domain/wwwroot
#該虛擬機器主機的的www根目錄.
ErrorLog X:/VirtualHost/domain.com/www.domain/logs/www.domain-error_log
#錯誤記錄檔文檔,也可以是../logs/www.domain-error_log
CustomLog X:/VirtualHost/domain.com/www.domain/logs/www.domain-access_log common
ScriptAlias /cgi-bin /cgi-bin
#指定perl指令碼運行目錄,當然,不指定的話整個目錄全部可以運行
ScriptAlias /php4/ "/php-bin"
#指定php指令碼運行目錄,當然,不指定的話整個目錄全部可以運行

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.