PHP support is currently set to: run as Fast CGI.
I keep getting these errors in my server log:
mod_fcgid: read data timeout in 45 seconds
Premature end of script headers: index.php
Should be quick fix I think, but I cant find the file to edit. Is this something I can change from Plesk.
Anyone know how to increase the timeout?
5
Answers
A solution provided in the forum of Plesk by Parallels staff
Hope it helps
R
My solution to this was to change the PHP settings in the plesk control pannel as per the screenshot.PHP Settings
In Plesk 12.x and similar go to Web Server Settings and set the following directives:
Additional directives for HTTP & HTTPS
Above lines will change the timeout for scripts that are quiet too long and take too long to execute.
Additional nginx directives
Above lines will change the proxy timeout.
If the problem persist, increase the values.
See also: Premature end of script headers: index.php, mod_fcgid: read data timeout
Check the screenshots for the guidance:
In the new version of Plesk the fcgid.conf file has moved to:
I had some issues importing an xml file into wordpress. It kept on giving a 500 Internal Error. The error log showed:
After following some advice – as the PHP.INI settings made no difference – i changed some settings as advised:
Original:
To:
Also added:
Worked like a charm. Thank you for your help.
After changing max_execution_time = 3600 in /etc/php.ini solved my problem.