56gt 发表于 2017-4-12 11:00:14

在 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><!--><!--><mce: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-fareast-font-family:"Times New Roman";mso-ansi-language:#0400;mso-fareast-language:#0400;mso-bidi-language:#0400;}--><!-- -->
2009年9月7日
前陣子把部份測試主機環境升級到PHP 5.3 來跑一些專案,整體上沒什麼狀況,所以我就決定讓公司的工作環境全部都轉移到 PHP 5.3 上了。
本文主要介紹如何在 WindowsXP 上建置 Apache 2.2 + PHP 5.3 + MySQL 5.1 的開發環境,以供有興趣的朋友參考。
下載
Apache 2.2
Apache 2.2 可以在以下網址下載,因為我們多數網站都需要 SSL 支援,所以請記得抓取包含 OpenSSL 的版本。
http://httpd.apache.org/download.cgi(Win32 Binary including OpenSSL)
註:Apache2.2 特色概觀。
PHP 5.3
如果要讓 PHP 5.3 作為 Apache 2.2 的 module 來執行,那麼記得我們要抓取的是 VC6 x86 Thread Safe 的版本。
而因為我們是要手動安裝,所以需要下載的是沒有安裝檔的 PHP 5.3 zip package ,可從以下網址找到:
http://windows.php.net/download/(VC6 x86 Thread Safe)
MySQL 5.1
MySQL 因為我們也要手動安裝,所以同樣也是用沒有安裝程式的 zip package ,可以從以下的網址下載:
http://dev.mysql.com/downloads/mysql/5.1.html#win32(Without installer)
Xdebug 2.0
這是開發 PHP 時很好用的除錯工具,可以從以下的網址下載:
http://www.xdebug.org/download.php(Windows binaries: 5.3 VC6 (32 bit))
註:不要下載到 Xdebug2.0.4 版,這個版本會沒辦法被 PHP 載入。
页: [1]
查看完整版本: 在 Windows 上安裝 PHP 5.3 開發環境