Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In php.ini I have set "max_execution_time = 1200", phpinfo() confirms that, but my script stops after 300 seconds with message:

"PHP Fatal error: Maximum execution time of 300 seconds exceeded"

Nginx fastcgi_read_timeout is also set to 1200, however I think its more php issue. How to fix that problem?


It was CodeIgniter framework - it was setting max_execution_time to 300. Thank you for help. :)

share|improve this question
If you echo ini_get('max_execution_time'); from within the script does it output 300 or 1200? I'm just wondering if for some reason your script is using another ini file or no ini file. – DaveRandom Sep 28 '11 at 8:58
up vote 1 down vote accepted

Make sure that you didn't use set_time_limit in your PHP code.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.