Home > Server Error > Php Error 500 Timeout

Php Error 500 Timeout


But I hoped that there would be some kind of parallel processing of the Ajax requests that would keep things moving along. WouterRonline Kilo Poster Messages: 12 Hi everybody, I have the following problem: PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE Plesk 9.5.5 Windows 2008 Server (web edition) PHP safe mode: off PHP max_execution_time: 30 Avoiding 500 Internal Server Error Timeout in PHP Published: 8th Feb 2015 I found that this error was due to an infinite/deeply-nested loop in my code. Also, after putting set_time_limit(3600); into the code this same results happen.

WouterRonline, Jun 3, 2012 #2 WouterRonline Kilo Poster Messages: 12 Nobody has any idea? Also, this message always appears after about 40 secondes. Are there any specific logs or settings for this protocol? But alas it was not the case in my test server (WAMP) environment. you could try here

Http Error 500 Wordpress

So it has something to do with FastCGI. ACTUAL RESULT Both with and without the set_time_limit code: After about 40 seconds a 500 internal server error appears EXPECTED RESULT Without set_time_limit: After 30 seconds a message will appear saying I'm looking for possible solutions or ideas to further investigate the problem (like some tips about logs to check).

To get around this 500 Internal Server Error Timeout in PHP we can build into our recursive function a timer that triggers a break from the loop just short of the Well, I was testing on my local host server where it did not seem to continue beyond the first 500 error. We may have a recursive function (one that calls itself) that takes too long to complete (usually > 30s) and the sever maximum execution time is hit. 500 Internal Server Error Iis WouterRonline, Jun 5, 2012 #3

You can extend the timeout via code, but I think it is a bad idea unless the code is running in the background and you have another mechanism to break out Internal Server Error 500 And if you are on a shared hosting plan, it could get your account suspended if your script consumes excessive server resources. © 2016 Backend Coder Log in WouterRonline, Jun 3, 2012 #1 WouterRonline Kilo Poster Messages: 12 Additional note: when switching from FastCGI to CGI, the problem is solved. https://techjourney.net/read-data-timeout-in-31-seconds-php-500-error/ The Code class MyClass { private $max_time; public $result; public function myFunc() { sleep (1); if (time() > $this->max_time) $this->result = "Timed out"; else $this->myFunc(); return $this->result; } function __construct() {