Actually I suspect something is slowing down mail commands from PHP…40 seconds ought to be plenty of time to send an email. (Though sometimes I see fcgid timeout errors on our systems…it’s never been mail related, as far as I know.)
Try running a test email script from the command line to see how long it takes to send out a message from PHP. That might give you some clues.
You can adjust the timeout for Apache IPC (which I think is the only timeout that effects fcgid) using these two directives in httpd.conf:
Where exactly, in the VirtualMin/WebMin interface does one go to edit the IPCComTimeout?
We seem to be having this problem on our server, and, while I can edit the httpd.conf file directly, I like to learn where these things are in the VirtualMin GUI…which is maze like…can we PLEEEEZZE DADDY get a Search option added to the UI?
Well, first off, if you’d like to be able to search in the Virtualmin GUI, just click the Webmin link on the top-left, and look on the bottom of the left column – there’s a Search textbox there.
However, I believe the IPCComTimeout param is one that you’ll need to add manually to the Apache config.
Just go into Webmin -> Servers -> Apache Webserver -> Global configuration -> Edit Config Files, and add it to the end there somewhere.
-Eric
Are you sure your script is returning in reasonable time? I’m guessing 40 seconds is the maximum set in PHP, perhaps. I don’t really know as I’ve never run into this myself.