• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Resolved Unable to configure IIS FastCGI Settings for PHP through panel.ini

JanReilink

New Pleskian
I'm currently using Plesk Obsidian PANEL_18_0_40_WIN. In Plesk Obsidian's docs we find:
By editing the panel.ini file, you can make the following changes to this scenario:

  • Determine what predefined values a PHP parameter can take.
  • Change the default value for a PHP parameter.
  • Forbid specifying custom values for PHP parameters.
Following the documentation, I set into my panel.ini file:

INI:
[php]
settings.performance.memory_limit=512
settings.fastCgi.maxInstances=10
settings.fastCgi.instanceMaxRequests=10000
settings.fastCgi.activityTimeout=89
settings.fastCgi.requestTimeout=180

But unfortunately this is not picked up by Plesk when I create a new subscription and Plesk registers a new FastCGI application.

Using AppCmd I can determine currently configured values:

Code:
PS C:\Users\janreilink> appcmd list config "plesk.php.example.org" /section:FastCGI
<system.webServer>
  <fastCgi>
    <application fullPath="D:\pleskinstall\admin\engine\php-cgi.exe" arguments="-dauto_prepend_file=auth.php" maxInstances="12" idleTimeout="1800" activityTimeout="3600">
      <environmentVariables>
      </environmentVariables>
    </application>
    <application fullPath="D:\pleskinstall\Additional\PleskPHP80\php-cgi.exe" arguments="-d siteId=8">
      <environmentVariables>
        <environmentVariable name="TEMP" value="D:\www\plesk.php.example.org\tmp" />
        <environmentVariable name="TMP" value="D:\www\plesk.php.example.org\tmp" />
      </environmentVariables>
    </application>
  </fastCgi>
</system.webServer>

On a non-Plesk webserver, where I configured FastCGI settings, this is the result:

Code:
PS C:\Users\janreilink> appcmd list config "wordpress.example.net" /section:FastCGI
<system.webServer>
  <fastCgi>
    <application fullPath="d:\php\default\php-cgi.exe" stderrMode="ReturnStdErrIn500" maxInstances="10" activityTimeout="89" requestTimeout="180" instanceMaxRequests="10000" protocol="NamedPipe" flushNamedPipe="false">
      <environmentVariables>
        <environmentVariable name="PHP_FCGI_MAX_REQUESTS" value="10001" />
        <environmentVariable name="PHPRC" value="d:\php\default\php.ini" />
        <environmentVariable name="OPENSSL_CONF" value="d:\php\default\extras\ssl\openssl.cnf" />
      </environmentVariables>
    </application>
  </fastCgi>
</system.webServer>

Either I'm doing something wrong, the documentation is wrong, or I hit a bug.
 
Figured it out, I have to reconfigure the default settings, with `.default` added to the parameters in `panel.ini`:

Code:
settings.fastCgi.maxInstances.default=10
settings.fastCgi.instanceMaxRequests.default=10000
settings.fastCgi.activityTimeout.default=89
settings.fastCgi.requestTimeout.default=180
settings.fastCgi.queueLength.default=10
 
Back
Top