When setting some value for "
max_execution_time" parameter in PHP settings of a domain, generally, the same value is set for "
FcgidIOTimeout" in virtual host configuration. However, when setting "
max_execution_time" to 0, which means "
FcgidIOTimeout" is not set in virtual host configuration and therefore the following error may appear in apache error logs:
[Tue Nov 17 19:01:06 2015] [warn] [client 10.10.10.10] mod_fcgid: read data timeout in 45 seconds [Tue Nov 17 19:01:06 2015] [error] [client 10.10.10.10] Premature end of script headers: somescript.php
This is a software issue with internal ID PPPM-3638. It will be fixed in future product updates.
As a workaround, when you set "
max_execution_time" to 0, set appropriate value for FcgidIOTimeout in Additional directives for HTTP under Home - Subscriptions - example.com - Websites & Settings - Apache & nginx Settings
<IfModule mod_fcgid.c> FcgidIOTimeout 120 </IfModule>