Home > Backend Development > PHP Tutorial > IIS_php5.3环境配置

IIS_php5.3环境配置

WBOY
Release: 2016-06-23 13:43:47
Original
849 people have browsed it

安装顺序
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"
============================================================================

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template