http://windows.php.net/downloadphp
URL:http://sourceforge.net/projects/wincache/?source=typ_redirecthtml
https://dev.mysql.com/downloads/windows/installer/5.7.htmlmysql
確保IIS開啓FastCGIsql
Window7上配置窗口數據庫
Windows 2008 經過上配置窗口:windows
Run> CompMgmtLauncher>Add Roles>Add Role Servicesapp
「添加模塊映射」,並填寫以下內容ide
並建立測試頁面 phpinfo.php,頁面內容以下:測試
<html> <head> <title>PHP Test</title> </head> <body> <?php echo '<p>Hello World</p>'; ?> <?php phpinfo(); ?> </body> </html>
會報如下錯誤:ui
PHP Warning: phpinfo(): It is not safe to rely on the system's timezone settings.You are *required* to use the date.timezone setting or the date_default_timezone_set() function.In case you used any of those methods and you are still getting this warning,you most likely misspelled the timezone identifier.We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.in **\phpinfo.php on line 7
修改措施:
在PHP的配置文件php.ini 中給定時區便可。修改內容爲:
[Date] ; Defines the default timezone used by the date functions ; http://php.net/date.timezone date.timezone =Asia/Shanghai
記得重啓IIS哦。
拷貝文件到ext 文件夾下:
在php.ini文件中打開相應配置:
測試頁面會輸出以下結果:
https://secure.php.net/manual/en/pdo.drivers.php
Driver name | Supported databases |
PDO_MYSQL | MySQL 3.x/4.x/5.x |
PDO_PGSQL | PostgreSQL |
PDO_SQLITE | SQLite 3 and SQLite 2 |
PDO_SQLSRV | Microsoft SQL Server / SQL Azure |
PDO_OCI | Oracle Call Interface |
PDO_ODBC | ODBC v3 (IBM DB2, unixODBC and win32 ODBC) |
PDO and all the major drivers ship with PHP as shared extensions, and simply need to be activated by editing the php.ini file:
extension=php_pdo.dll
Note:
This step is not necessary for PHP 5.3 and above, as a DLL is no longer required for PDO.
Next, choose the other database-specific DLL files and either use dl() to load them at runtime, or enable them in php.ini below php_pdo.dll. For example:
;These DLLs should exist in the system's extension_dir. extension=php_pdo.dll extension=php_pdo_firebird.dll extension=php_pdo_informix.dll extension=php_pdo_mssql.dll extension=php_pdo_mysql.dll extension=php_pdo_oci.dll extension=php_pdo_oci8.dll extension=php_pdo_odbc.dll extension=php_pdo_pgsql.dll extension=php_pdo_sqlite.dll
此處我只用了SQLite,配置以下
;Install SQLite PDO By HQF extension = php_pdo_sqlite.dll
測試頁面會輸出下面結果:
下載地址:
http://windows.php.net/downloads/pecl/releases/imagick/
待處理
處理Unicode的擴展模塊
http://pecl.php.net/package/intl
解壓Wiki 包後,按以下步驟安裝便可。此處略去。。。
Installation on Windows systems(PHP)https://secure.php.net/manual/en/install.windows.php
PHP: System Timezone Setting error
Install the SQL Server Driver for PHP https://www.iis.net/learn/application-frameworks/install-and-configure-php-on-iis/install-the-sql-server-driver-for-php