I am assuming that you have downloaded and installed Apache 2.x on your windows machine.我假設您已經下載並安裝的Apache 2.x的在你的Windows機器。 Use the latest version 2.2, if you do not have plans to run Subversion on it.使用最新版本2.2 ,如果你不打算運行顛覆它。 Otherwise choose Apache 2.0.x.否則,選擇的Apache 2.0.x. Install it with the defaults.安裝它與默認值。 You may want to however changes the drive on which it is installed.您可能會想要,但變化的驅動器上安裝它。 Anyway so you have it running.無論如何,讓您有它運行。 Then you went to php.net and have downloaded and extracted the zip file to say c:\ or d:\.然後你去php.net和下載並解壓縮zip檔案說,為C : \或D : \ 。 I am assuming you have then changed the name of php.ini-recommended to php.ini.我假設你,然後改變名稱的php.ini -建議php.ini的影響。 So far all the steps are straight forward and their install guide is good enough.到目前為止,所有的步驟都直和發揚他們的安裝指南是不夠好。 Now you are feeling happy about it and want to integrate PHP with Apache, right?現在你的感覺感到高興,並想要整合的PHP與Apache ,對不對? That’s when the fun begins.這時候的樂趣開始。

To cut the long story short the instructions in PHP document doesn’t work and have obviously not been updated in a long while.削減長期的故事,短的指示,在PHP文件沒有工作,並有明顯尚未更新,在一個長期而。 So I will give you a 2 minute guide to glory.因此,我會給你2分鐘指南輝煌。

Open httpd.conf (in Drive:\Program Files\Apache Group\Apache2\conf) and search for LoadModule statements.開放的httpd.conf (在驅動器: \程序文件\阿帕奇組\ Apache2中\設置) ,並搜尋loadmodule報表。 At the end add:在去年底地址:
LoadModule php5_module "D:/php/php5apache2.dll" loadmodule php5_module的“ D : / php/php5apache2.dll ”

Then search for然後搜索 directives. 指令。 At the end add: 在去年底地址:

 AddType application/x-httpd-php .php  AddType application/x-httpd-php-source .phps 將AddType application / x -的httpd - PHP中。 PHP的將AddType application / x -的httpd - PHP的源。 phps 

Note: The last AddType is a nicety.注:最後將AddType是一個準確。 It allows you to view .phps files (php files with extension renamed) in htmlized and colorful format from your browser.它可以讓您的看法。 phps文件( PHP文件的擴展名與改名)在htmlized和豐富多彩的形式,從您的瀏覽器。

Now restart the server.現在重新啟動服務器。
Did I say you are done?我說你是做什麼? Well, you are.那麼,你是。 So go out and enjoy.因此,走出去和享受。

Note: If you are a wimp and you don’t need Subversion you may take the easy way out and install Xampp instead.注意:如果你是一個wimp和您不需要顛覆你可以採取簡單的方法,並安裝xampp不是。 It will do the dirty work for you.它也將這樣做骯髒的為您工作。