The server encountered an internal error or misconfiguration... How to solve this problem?

Hi, My system config - LAMP stack with centos 6.

I am sending emails through smtp by mandrill to about 5k users. When I send after a while it my script (script is a PHP script) gives me this error

The server encountered an internal error or misconfiguration and was unable to complete your request.

“Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log.”

In apache error log file i get this error “mod_fcgid: read data timeout in 31 seconds”

I have put set_time_limit (300); to increase the execution time limit for the script, but the same error.

Please help , how can I solve this problem

Thanks in advance.

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

@hypersol: You should be able to do that using a FcgidCmdOptions directive. Check out: <br> <br>

Thanks for your reply. <br>I think this will change the maximum time limit for every script. <br>Is there any way to change the maximum time limit for some scripts or on run time? <br> <br>Thanks for your help <br>

The maximum time limit in php.ini does not have any effect on FastCGI, you need to modify fastcgid.conf and change the ‘FcgidIOTimeout’ to a higher value.