• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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