Jump to content

php script times out - apache setting, I think..


coderb

Recommended Posts

Hi All,

I'm running an email script that is executed on form submit. This sends multiple emails to customers and can run for say 10 minutes, because each email is individaully built and it's own attachment (av size 800kb).

 

I've changed the max time (2000 seconds) and memory (16mb) php.ini settings for scripts, which is fine, however the script still aborts after 5 minutes exactly.

I then checked my phpinfo and noticed that apache has two settings that inidicate (to me) the problem:

 

apache2handler

Timeouts Connection: 300 - Keep-Alive: 5

 

Apache Environment

HTTP_KEEP_ALIVE 300

 

So, the questions are, how/where do I change these settings? Is it wise?

 

I've checked in my httpd.conf file and could not see any ref to these settings. Not even in the file comments?

 

any help greatly appreciated.

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.