• 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!
  • 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.

How to set proxy_read_timeout in Plesk 11.5?

SoftCreatR

Basic Pleskian
Hi,

in the past, i've just set proxy_read_timeout within a custom template. Now it seems, that there's already a setting for this, but how can i modify the value?

Code:
<?php if ($VAR->domain->physicalHosting->scriptTimeout): ?>
    proxy_read_timeout <?php echo $VAR->domain->physicalHosting->scriptTimeout; ?>;
<?php endif; ?>

Where (within the Plesk GUI) can i set domain->physicalHosting->scriptTimeout?
 
I do not think that feature is yet there in GUI, but if it were then it would be "max_execution_time" perhaps
 
I already figured that out. However, i set it to 3600 but i still receive "504 Gateway Time-out" after 60 seconds. I guess it is a problem of php5-fpm for nginx, but i cant find a solution.
 
Today, i've received the "504 Gateway Time-out" again.

Code:
2013/09/21 23:15:59 [error] 23619#0: *28410 upstream timed out (110: Connection timed out) while reading response header from upstream

proxy_read_timeout is set to 3600, so this is not the issue.

After reading nginx's documentation, the needed configuration variable is fastcgi_read_timeout, so the solution is slightly different from the one above:

mkdir -p /usr/local/psa/admin/conf/templates/custom/domain/service
cp -p /usr/local/psa/admin/conf/templates/default/domain/service/fpm.php /usr/local/psa/admin/conf/templates/custom/domain/service/.

In the file /usr/local/psa/admin/conf/templates/custom/domain/service/fpm.php find the line:

Code:
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;

Put above:

Code:
        <?php if ($VAR->domain->physicalHosting->scriptTimeout): ?>
        fastcgi_read_timeout <?php echo $VAR->domain->physicalHosting->scriptTimeout; ?>;
        <?php endif; ?>

After that, save the file and run:

/usr/local/psa/admin/bin/httpdmng --reconfigure-all
 
Last edited:
Back
Top