安裝順序
1.IIS
2.FastCGI
3.php5.3
4.wincache
5.memcached
6.ZendLoader
(1)FastCGI->php
開啟C:\WINDOWS\system32\inetsrv\fcgiext.ini 檔案,在[Types]下面添加以下配置:
============================================================================
[Types]
php = PHP
[PHP]
ExePath = "D:\php\php-cgi.exe"
MaxInstances = 20
QueueLength = 1000
InstanceMaxRequests = 10000
EnvironmentVars = PHP_FCGI_MAX_REQUESTS:10000
RequestTimeout = 500
ActivityTimeout = 900
============================================================================
(2)PHP配置
開啟D:\php\php.ini
將以下這些常用擴充前面的分號“;”去掉:
============================================================================
extension_dir = "D:\php\ext"
fastcgi.impersonate = 1
cgi.rfc2616_headers = 1
memory_limit = 512M
date.timezone = Asia/Shanghai
============================================================================
(3)開啟GZIP
1.IIS->網站->屬性->服務->開啟 壓縮應用程式檔案和壓縮靜態檔案
2.停止IIS,開啟C:\WINDOWS\system32\inetsrv\MetaBase.xml.
3.分別修改"/LM/W3SVC/Filters/Compression/deflate"和"/LM/W3SVC/Filters/Compression/gzip"下面的參數.
============================================================================
HcDynamicCompressionLevel="1"
HcFileExtensions="htm
html
txt
css
js
jpg"
HcScriptFileExtensions="asp
php
dll
exe"
============================================================================
(3)開啟php的ZendLoader擴充
1.解壓出ZendLoader.dll放置到D:\Program Files\PHPWEB\php\ext\
2.在php.ini最後添加
============================================================================
[Zend.loader]
zend_loader.enable=1
zend_loader.disable_licensing=0
zend_loader.obfuscation_level_support=3
zend_loader.license_path=
zend_extension="D:\Program Files\PHPWEB\php\ext\ZendLoader.dll"
============================================================================