<dfn id="is4kg"></dfn>
  • <ul id="is4kg"></ul>
  • <abbr id="is4kg"></abbr>
  • <ul id="is4kg"></ul>
    <bdo id="is4kg"></bdo>
    以文本方式查看主題

    -  曙海教育集團論壇  (http://www.hufushizhe.com/bbs/index.asp)
    --  SQL Server數據庫  (http://www.hufushizhe.com/bbs/list.asp?boardid=67)
    ----  PHP論壇for Windows安裝  (http://www.hufushizhe.com/bbs/dispbbs.asp?boardid=67&id=2526)

    --  作者:wangxinxin
    --  發布時間:2010-12-13 13:26:35
    --  PHP論壇for Windows安裝

     

     

    準備工作:
    1.一臺系統為Windows Server版的計算機(我這里用的是Windows Server 2003 EE)
    PHP論壇for Windows安裝 - Windows=
    步驟:
    1.將TCP/IP參數配置如下,并運行“sysocmgr /i:sysoc.inf”,打開Windows組件向導
    PHP論壇for Windows安裝 - Windows=
    2.勾上DNS和IIS點確定安裝
    PHP論壇for Windows安裝 - Windows=
    PHP論壇for Windows安裝 - Windows=
    3. 安裝PHP
    PHP我用的是PHP5.1.4版,所有工具都已經打包,將PHP5.1.4壓縮包解壓縮至E盤的根目錄,改名為PHP,即 E:\\PHP,并設置安全權限為Everone完全控制
    PHP論壇for Windows安裝 - Windows=
    4.將E盤PHP目錄下的16個.dll文件拷貝到C:\\WINDOWS\\system32目錄下,同時將PHP目錄中ext子目錄中的所有的文件也拷貝到 C:\\WINDOWS\\system32目錄下(我這里就搜索E:\\PHP下的*.dll全部復制到C:\\WINDOWS\\system32下),設置權限為Everone完全控制
    PHP論壇for Windows安裝 - Windows=
    5.將PHP目錄中的PHP.exe PHP-win.exe PHP.ini-dist三個文件拷貝到C盤windows的目錄下,(如果是Win2000系統,應為C 盤的WINNT目錄下),將PHP.ini-dis改名為PHP.ini,設置權限為Everone完全控制
    PHP論壇for Windows安裝 - Windows=
    6.打開C:\\windows下的PHP.ini,查找register_globals = off  改off為on
    PHP論壇for Windows安裝 - Windows=
    7.查找extension_dir =  將路徑指向PHP目錄中的ext目錄(即E:\\PHP\\ext)
    PHP論壇for Windows安裝 - Windows=
    8.查找下列語句,將其前面的 ; 符號去掉。這些語句幾乎是挨著的,不用逐個查找
    ;extension=php_dbase.dll
    ;extension=php_gd2.dll (用來支持GD庫,所以必須去掉)
    ;extension=php_ldap.dll
    ;extension=php_mbstring.dll (如果不去掉的話phpmyadmin會有紅色的提示)
    ;extension=php_mssql.dll  (支持MSSQL數據庫)
    ;extension=php_mysql.dll  (支持MYSQL數據庫)
    最后保存即可
    PHP論壇for Windows安裝 - Windows=
    9.配置DNS服務,目的就是為了用主機頭,讓一臺服務器多放幾個站,先新建一個站,并新建兩條A記錄如下
    PHP論壇for Windows安裝 - Windows=
    PHP論壇for Windows安裝 - Windows=
    10.打開IIS 管理器,把Web服務擴展全部起用
    PHP論壇for Windows安裝 - Windows=
    11. 打開 “網站屬性” ,“進入“ISAPI篩選器”,點擊 “添加”――篩選器名稱:PHP,可執行文件:E:\\php\\php5isapi.dll (盤符不同路徑也不同)
    PHP論壇for Windows安裝 - Windows=
    12. 回到“主目錄”――執行權限為 “純腳本”――配置――映射――添加――可執行文件:E:\\php\\php5isapi.dll擴展名:.php(可千萬不要忘記那個小點)
    PHP論壇for Windows安裝 - Windows=
    13. 回到“文檔”添加一個 index.php,不然就無法訪問主頁了
    PHP論壇for Windows安裝 - Windows=
    14.重起IIS服務,再打開“ISAPI篩選器”,可以看到PHP已經加載了,綠色的箭頭向上
    PHP論壇for Windows安裝 - Windows=
    PHP論壇for Windows安裝 - Windows=
    15.安裝MySQL Server 5.0數據庫,按默認即可,需要修改的地方我已經把圖貼出來了
    PHP論壇for Windows安裝 - Windows=
    PHP論壇for Windows安裝 - Windows=
    PHP論壇for Windows安裝 - Windows=
    PHP論壇for Windows安裝 - Windows=
    PHP論壇for Windows安裝 - Windows=
    PHP論壇for Windows安裝 - Windows=
    為了安全起見,這里設置了密碼,等下在MySQL管理目錄要修改個文件,把密碼輸進去
    PHP論壇for Windows安裝 - Windows=
    PHP論壇for Windows安裝 - Windows=
    16.這個文件夾下是MySQL管理目錄,等下要配置成一個網站,這里也需要設置權限
    PHP論壇for Windows安裝 - Windows=
    17.新建一個站(即MySQL管理站)
    PHP論壇for Windows安裝 - Windows= 
     
     19.瀏覽MySQL管理站,報一個密碼不對的錯誤,這是正常的