I have a PHP script which is timing out after 60 seconds. I have changed the following config values but they don't seem to have any affect:

  • max_execution_time
  • default_socket_timeout
  • mysql.connect_timeout
  • max_input_time

All of the above have values of 6000, but the script stops after 60 seconds. Can anyone suggest any other reasons the script would terminate?

  • You could start it via the commandline. The timelimit will not be a problem then: php loction/to/file.php
    – Martijn
    Jan 6 '15 at 11:02

Check your server's apache and php logs for any error. It might help you to narrow down your problem.

Besides PHP timeouts, there are also other timeouts in Apache and MySQL which might be causing your script to stop working after 60 seconds,

  1. FcgidIOTimeout and FcgidBusyTimeout (file: fcgid.conf)
    Ref: premature end of script

  2. connect-timeout of mysqld server (file:my.cnf)
    Ref: mysql connection timeout

  3. Timeout of apache server
    Ref: Apache Docs

also check apache and php - limits and timeouts for more details

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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