php upload for fastcgi

找到C:\Windows\System32\inetsrv\config\applicationHost.config,在directoryBrowse enabled="false"后面添加

<directoryBrowse enabled="false" />


        <fastCgi>
            <application fullPath="D:\php5\php-cgi.exe" monitorChangesTo="C:\Windows\php.ini" activityTimeout="600" requestTimeout="600" instanceMaxRequests="10000">
                <environmentVariables>
                    <environmentVariable name="PHP_FCGI_MAX_REQUESTS" value="10000" />
                    <environmentVariable name="PHPRC" value="C:\Windows\php.ini" />
                </environmentVariables>
            </application>
        </fastCgi>


其中<environmentVariable name="PHPRC" value="C:\Windows\php.ini" />是configuration file路径,

<location path="sitename">
        <system.webServer>
            <asp>
                <limits bufferingLimit="2000000000" maxRequestEntityAllowed="2000000000" />
            </asp>
            <webdav>
                <authoring maxAllowedXmlRequestLength="1073741824" />
            </webdav>
        </system.webServer>
    </location>

 

然后,修改php.ini

cgi.force_redirect = 0

fastcgi.impersonate = 1

post_max_size = 256M

 

posted @ 2013-07-21 19:07  visense  阅读(221)  评论(0编辑  收藏  举报