Maximum execution time of 30 seconds exceeded with fastcgi_read_timeout 2400 max_execution_time = 2400 and max_input_time = 2400

StackOverflow https://stackoverflow.com/questions/22791586

  •  25-06-2023
  •  | 
  •  

Question

I have:

 FatalErrorException: Error: Maximum execution time of 30 seconds exceeded    

My php settings are:

 fastcgi_read_timeout 2400;
 fastcgi_param  PHP_VALUE  "max_execution_time = 2400";
 fastcgi_param  PHP_VALUE  "max_input_time = 2400";
 fastcgi_param  PHP_VALUE  "memory_limit = 1024M";

I'm doing massive doctrine-mongodb and neo4j flush operations

Any Ideas?

Was it helpful?

Solution

You are overwriting the PHP_VALUE every time, only setting the memory_limit. Try

fastcgi_param  PHP_VALUE  "max_execution_time = 2400
                           max_input_time = 2400
                           memory_limit = 1024M";
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top