在 Windows 上安裝 PHP 5.3 開發環境
<!-- ><xml><w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:PunctuationKerning/>
<w:DrawingGridVerticalSpacing>7.8 pt</w:DrawingGridVerticalSpacing>
<w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery>
<w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:Compatibility>
<w:SpaceForUL/>
<w:BalanceSingleByteDoubleByteWidth/>
<w:DoNotLeaveBackslashAlone/>
<w:ULTrailSpace/>
<w:DoNotExpandShiftReturn/>
<w:AdjustLineHeightInTable/>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:UseFELayout/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><!--><!-- ><xml>
<w:LatentStyles DefLockedState="false" LatentStyleCount="156">
</w:LatentStyles>
</xml><!--><!-- >
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:標準の表;
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
mso-bidi-language:#0400;}
</style>
<!-->
安裝 Apache 2.2
第一次安裝
首先執行
apache_2.2.xx-win32-x86-openssl-0.9.xx.msi
,大部份的都是直接選「
Next
」。不過特別注意安裝位置,這裡我會把它安裝在 D:/AppServ/Apache2.2
下,方法如下:
1.
安裝到 Setup Type
時選 Custom
,並按 Next
。
2.
把 Apache HTTP Server 2.2.xx
的 Install to
改到 D:/AppServ
,這樣下方 Apache Runtime
的 Install to
會自動變成 D:/AppServ/Apache2.2
。
至於其他選項就按照當時情況自行決定囉。
註:這裡我假設各位已經不使用 IIS
了,所以後面的說明將會以 Port 80
為主。
至於 Apache
的設定部份,我們在完成安裝 PHP
後再一起修改。
重灌系統後的安裝
假設我們的
D:/AppServ/Apache2.2
底下已經 Apache
的程式檔,只是重灌後使得系統設定消失。這樣的話,我們要先把D:/AppServ/Apache2.2/bin
加入系統變數 PATH
裡,接著再用以下方式重新建立服務 (
粗體字部份)
:
C:/>httpd -k install -D Apache2.2
最後用:
C:/>httpd -k start
來啟動服務。
页:
[1]