2012年8月4日 星期六

PHP 5.2.9-2 安裝


  PHP安裝篇 

Step 1. 
顯示開始安裝的介紹,按
 "Next "繼續。

Step 2. 顯示PHP授權安裝同意書,勾選"I accept the terms in the License Agreement",按"Next"繼續。

Step 3. PHP安裝預設路徑為"C:\Program Files\PHP\",若不便更路徑可直接按"Next"繼續,在此變更PHP安裝路徑為"C:\PHP\"

Step 4. 選擇系統網站伺服器的環境,系統安裝Apache 2.2.11,所以點選"Apache 2.2.x Module",按"Next"繼續。

Step 5. PHP5要與Apache所屬的conf資料夾設定相關路徑,按下"Browse.."找尋Apache所屬的conf資料夾,指定好conf資料夾後按"Next"繼續。

Step 6. 選擇所需要的應用模組,若沒其他需求系統會以預設模組進行安裝,這裡選擇增加Extensions」相關套件

Step 7. 對「Extensions」延伸配件展開,點選"Entire feature will be installed on local hard drive"安裝在硬碟上按"Next"繼續。

Step 8. 按"Install"開始安裝PHP 5

Step 9. 安裝程式進行PHP 5的安裝,稍等一下。

Step 10. 按"Finish"結束PHP 5安裝程式。

Step 11. 打開記事簿輸入如下的文字,存放在Apache2.2存放網頁的資料夾"htdocs",網頁名稱存成index.php 

Step 12開啟IE瀏覽器,輸入http://localhost/index.php 或 http://127.0.0.1/index.php若見到下面的顯示,即表示 PHP 5 安裝完成。

沒有留言:

張貼留言