Php flash stopped in IIS 8

Note: I know this seems like a duplicate of this question . I do not see how this is a duplicate. I already said that I checked this question and I tried all the answers, but that did not work.

Here is what I tried:

  • In response to Dario, I followed the steps but did not find php in the name section

  • In the accepted answer, I run the same code on the command line, but it shows:

    appcmd.exe set config /section:handlers "/[name='PHP55_via_FastCGI'].ResponseBufferLimit:0" 

    and returns this:

    ERROR (message: Cannot find the requested collection item.)

  • Then I checked the PHP manual:

    manual setting

    I did not find anything in this configuration file, for example _via_FastCGI

  • I checked the Plesk PHP setup and yes, my server is running in FastCGI mode.

So, I worked for so many hours on my development server for this part of the flash, and now it does not work on my real server. Any help would be greatly appreciated

Update 1:

as suggested by @artlung, I added a screenshot here:

FAST CGI HANDLERS

Update 2:

Here's what I found in Notepad ++ by searching for the keyword "FastCGI"

 <add name="FastCgiModule" lockItem="true" /> <add name="PleskEngine-FastCGI-html" path="*.html" verb="*" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\Parallels\Plesk\admin\bin\php-cgi.exe|-dauto_prepend_file=auth.php" resourceType="Either" responseBufferLimit="0" /> <add name="PleskEngine-FastCGI-html" path="*.html" verb="*" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\Parallels\Plesk\admin\bin\php-cgi.exe|-dauto_prepend_file=auth.php" resourceType="Either" responseBufferLimit="0" /> <add name="PleskEngine-FastCGI-php3" path="*.php3" verb="*" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\Parallels\Plesk\admin\bin\php-cgi.exe|-dauto_prepend_file=auth.php" resourceType="Either" responseBufferLimit="0" /> <add name="PleskEngine-FastCGI-php3" path="*.php3" verb="*" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\Parallels\Plesk\admin\bin\php-cgi.exe|-dauto_prepend_file=auth.php" resourceType="Either" responseBufferLimit="0" /> <add name="PleskEngine-FastCGI-php" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\Parallels\Plesk\admin\bin\php-cgi.exe|-dauto_prepend_file=auth.php" resourceType="Either" responseBufferLimit="0" /> <add name="PleskEngine-FastCGI-php" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\Parallels\Plesk\admin\bin\php-cgi.exe|-dauto_prepend_file=auth.php" resourceType="Either" responseBufferLimit="0" /> <add name="PHP-phtml" path="*.phtml" verb="GET,HEAD,POST" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP55\php-cgi.exe" resourceType="Either" /> <add name="PHP-php3" path="*.php3" verb="GET,HEAD,POST" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP55\php-cgi.exe" resourceType="Either" /> <add name="PHP-php" path="*.php" verb="GET,HEAD,POST" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP55\php-cgi.exe" resourceType="Either" /> <add name="PHP-phtml" path="*.phtml" verb="GET,HEAD,POST" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP55\php-cgi.exe" resourceType="Either" /> <add name="PHP-php3" path="*.php3" verb="GET,HEAD,POST" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP55\php-cgi.exe" resourceType="Either" /> <add name="PHP-php" path="*.php" verb="GET,HEAD,POST" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP55\php-cgi.exe" resourceType="Either" /> <add name="PHP-phtml" path="*.phtml" verb="GET,HEAD,POST" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP55\php-cgi.exe" resourceType="Either" /> <add name="PHP-php3" path="*.php3" verb="GET,HEAD,POST" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP55\php-cgi.exe" resourceType="Either" /> <add name="PHP-php" path="*.php" verb="GET,HEAD,POST" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP55\php-cgi.exe" resourceType="Either" /> 
+7
php iis iis-8 flush
source share
3 answers

appcmd.exe set config /section:handlers "/[name='NAME'].ResponseBufferLimit:0"

Change NAME to the name of the handler you want to update, for example. PHP7_via_FastCGI .

Check the paths, it should solve your problem, I had the same problem, and this method helped me.

+3
source share

There are many features and their settings that can conflict with each other in IIS.

It looks like you were unable to set responseBufferLimit for your handler.

You need to know what you first called a handler.

Open a command prompt and run:

 %windir%\system32\inetsrv\appcmd.exe list config -section:system.webServer/handlers | find "FastCGI" 

It is possible to have more than one handler, listed below, and this is normal. Yours is top , here is PHP53_via_FastCGI .

 <add name="PHP53_via_FastCGI" path="*.php" verb="GET,HEAD,POST" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\PHP\v5.3\php-cgi.exe" resourceType="Either" /> <add name="PHP54_via_FastCGI" path="*.php" verb="GET,HEAD,POST" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\PHP\v5.4\php-cgi.exe" resourceType="Either" / <add name="PHP55_via_FastCGI" path="*.php" verb="GET,HEAD,POST" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\PHP\v5.5\php-cgi.exe" resourceType="Either" /> <add name="PHP56_via_FastCGI" path="*.php" verb="GET,HEAD,POST" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\PHP\v5.6\php-cgi.exe" resourceType="Either" /> <add name="PHP70_via_FastCGI" path="*.php" verb="GET,HEAD,POST" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\PHP\v7.0\php-cgi.exe" resourceType="Either" /> 

Replacing PHP53_via_FastCGI with your own, run the following command to change responseBufferLimit :

 %windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/handlers /[name='PHP53_via_FastCGI'].responseBufferLimit:"0" /commit:apphost 

restart IIS by running:

 iisreset 

Retry php page loading.

If still not working properly, you can be sure that this is due to the dynamic compression of IIS. Since it by default processes all dynamic responses with the text/* content type when it is enabled, it can block the PHP response for compression.

You can temporarily disable dynamic compression to see if it works. Make a backup of your web.config website and add the following instead and try loading your PHP page.

web.config

 <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <urlCompression doDynamicCompression="false" /> </system.webServer> </configuration> 

If you do not want to disable dynamic compression for the entire website, there are other levels that you can disable dynamic compression for virtual applications, physical and virtual directories, or a specific file.

See HTTP Compression Performance Requirements for more information.

+3
source share

Find fcgiext.ini and uncomment / add the line ResponseBufferLimit=0 , then restart IIS.

+1
source share

All Articles