加入add value=' index。PHP '/default document enabled=' true ' files add value=' default。htm '/add value=' default。ASP '/add value=' index。html '/add value=' IIS start。htm '/add value=' default。aspx '/add value=' index。PHP '//files/default文档
fastCgiapplication fullPath='C:\php\php-cgi.exe' monitorChangesTo='php.ini' activityTimeout='600' requestTimeout='600' instanceMaxRequests='10000'environmentVariablesenvironmentVariable name='PHP_FCGI_MAX_REQUESTS' value='10000' /environmentVariable name='PHPRC' value='C:Program Files (x86)iis expressPHPv5.4' //environmentVariables/application/fastCgi
3、找到手球,加入add name='PHP_FastCGI' path='* .php' verb='GET,HEAD,POST ' modules=' FastCgiModule '脚本处理器=' C:\ PHP \ PHP-CGI。“资源类型=”要么'/尤其要注意的一是,
6.同样在web.config中,Wordpress重写的完整web.config文件如下:
configurationsystem.webServerrewriterulesrule name='wordpress' patternSyntax='Wildcard'match url='*' /conditionsadd input='{REQUEST_FILENAME}' matchType='IsFile' negate='true' /add input='{REQUEST_FILENAME}' matchType='IsDirectory' negate='true' //conditionsaction type='Rewrite' url='index.php' //rule/rules/rewrite/system.webServersystem.webServerurlCompression doStaticCompression='true' doDynamicCompression='true' //system.webServer/configuration
这样就完全配置好了。然后,在IIS7 Express目录中,找到IISExpress.exe并双击它运行。
或者使用命令行指定要加载的站点。请访问1'iisexpress.exe /site:'网站名称1 ' iisexexpress.exe/site:'网站名称2 '
你会发现访问速度比windows下用apache快很多,少运行一个nginx,内存占用整体上也少很多。