Website is loading very slow. Changing PHP mode from CGI to FastCGI take no effect.

Refers to:

  • Plesk 12.5 for Linux
  • Plesk 11.5 for Windows
  • Plesk 12.0 for Windows

Created:

2016-11-16 13:20:09 UTC

Modified:

2016-12-21 20:29:10 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Website is loading very slow. Changing PHP mode from CGI to FastCGI take no effect.

Symptoms

Some websites running on PHP are loading very slow. Trying to change PHP mode from CGI to FastCGI has no effect. At the same time in IIS > domain.tld > Handler mappings we can see that handler was not changed and is still CgiModule.

Cause

Plesk writes website configuration to the '%windir%\\System32\\inetsrv\\config\\applicationHost.config' . The website has 'web.config' file in the 'httpdocs' directory that contains lines like bellow:

<configuration>
<system.webServer>
<handlers>
<clear />
<add name="Plesk_Handler_01223548686" path="*.php" verb="*" modules="CgiModule" scriptProcessor="C:\\Program Files (x86)\\Parallels\\Plesk\\Additional\\PleskPHP5\\php-cgi.exe" resourceType="Either" />
<add name="Plesk_Handler_01223548687" path="*.php3" verb="*" modules="CgiModule" scriptProcessor="C:\\Program Files (x86)\\Parallels\\Plesk\\Additional\\PleskPHP5\\php-cgi.exe" resourceType="Either" />
....

The directives in 'web.config' override settings that was made by Plesk.

Resolution

  • If the website needs a webserver settings customization that can not be done in Plesk then remove lines related to PHP handlers in application.Host.config :

    notepad %windir%\\System32\\inetsrv\\config\\applicationHost.config
    ...
    <add name="Plesk_Handler_01223548686" path="*.php" verb="*" modules="CgiModule"
    ...
  • If the website do not need any webserver settings customizations just rename or remove file 'web.config' from 'httpdocs' directory

Have more questions? Submit a request
Please sign in to leave a comment.