Apache has a default timeout of 60 seconds, you can increase default timeout by creating a custom template in CentOS Web Panel.
Follow these basic steps to increase the PHP timeout when using PHP-FPM :
Copy the default templates and save/create it as timeout tpl and stpl:
cp default.stpl timeout.stpl
cp default.tpl timeout.tpl
Then you have to edit both the templates, "timeout.tpl" and "timeout.stpl" and apply the below line.
Under the below-mentioned line and save that.
** ProxyTimeout 110 is the limit that permits the script to run for 110 seconds before it becomes hit with the timeout threshold.
You can increase the default timeout depending on your requirements, and please mind that don't use too high numbers to avoid server overloads.
We give an example below:
Now all you need is to form a custom configuration on webserver domain config and select the template or choose this template as a default in the webserver domain config.