All php sites are being loaded for a long time.

Created:

2017-06-02 14:30:09 UTC

Modified:

2017-08-16 16:32:25 UTC

0

Was this article helpful?


Have more questions?

Submit a request

All php sites are being loaded for a long time.

Applicable to:

  • Plesk for Windows

Symptoms

All websites with php code are loading slowly, but regular ASP or static websites are loading fine.

Cause

MaxInstancies parameter is less than amount of fastcgi processes which are simultaneously running on the server. (PositionInQueue="24", MaxInstances="10")

Resolution

  1. Open IIS Manager

  2. Go to Server name > IIS > FastCGI Settings

  3. Choose PHP handler that is actual for your website, right click on it in Full path column and choose Edit

  4. Change value of MaxInstances setting (for example: 50)

If FastCGI Settings icon is not available in IIS user interface then MaxInstances parameter can be increased through applicationHost.config IIS configuration file :

  1. Make backup of %windir%\\system32\\inetsrv\\config\\applicationHost.config IIS configuration file.
  2. Then open it with text editor (e.g. Notepad) and modify <fastCgi> section as follows:

Before

     <fastCgi>
<application fullPath="C:\\Program Files (x86)\\Parallels\\Plesk\\admin\\bin\\php-cgi.exe" maxInstances="10" idleTimeout="1800" activityTimeout="3600" />
<application fullPath="C:\\Program Files (x86)\\Parallels\\Plesk\\Additional\\PleskPHP54\\php-cgi.exe" maxInstances="10"/>
</fastCgi>

After

     <fastCgi>
<application fullPath="C:\\Program Files (x86)\\Parallels\\Plesk\\admin\\bin\\php-cgi.exe" maxInstances="50" idleTimeout="1800" activityTimeout="3600" />
<application fullPath="C:\\Program Files (x86)\\Parallels\\Plesk\\Additional\\PleskPHP54\\php-cgi.exe" maxInstances="50" activityTimeout="3600"/>
</fastCgi>

It will increases MaxInstances parameter for PHP 5.4 handler.

  1. Restart IIS web server:
    iisreset /stop
    iisreset /start
Have more questions? Submit a request
Please sign in to leave a comment.