早早起來配置一個php環境,配置若干個小時還沒有配置出來。網上提供了很多安裝方法,但都行不通。我還后悔修改了注冊表,還想重裝系統。最后決定只相信官網的說法。原來官網有一個installer的,一安裝,果然測試頁就顯示出來了。配置成功了?
但是也有擔憂的地方,官網上如是說,
"While the Windows installer is an easy way to make PHP work,it is restricted in many aspects as, for example, the automatic setup of extensions is not supported. Use of the installer isn't the preferred method for installing PHP."
也就是說,官網并不推薦用installer安裝,推薦手動安裝。installer限制了很多擴展功能,而且也不安全。所以我嚴格來說,我還是沒有配置好環境。日后發現有什么問題的話,我還是會毫不猶豫用手動安裝一次,即使重裝系統也在所不惜!