• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

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