Currently seeking new career opportunities in web development, particularly with Laravel, Hire Me

Fixing mod_fcgid: read data timeout

David Carr

Development Tutorials

Running a script longer then 45 seconds causes a mod_fcgid: read data timeout in 45 seconds, this may be plesk specific.

Looking up the error its very common, the usual solution recommended is to editing /etc/httpd/conf.d/fcgid.conf

Specifically, change

FcgidIOTimeout 45

To

FcgidIOTimeout 3600

3600 seconds = 1 hour.

Then restart the server. If you don't have root access to the server you'll need to ask your host to do it or another way is to increase the memory limit with php at the top of the file add:

ini_set('memory_limit', '256M');

This solves the problem without needing to edit the fcgid.conf file.

Laravel Modules Your Logo Your Logo Your Logo

Become a sponsor

Help support the blog so that I can continue creating new content!

Sponsor

My Latest Book

Modular Laravel Book - Laravel: The Modular way

Learn how to build modular applications with Laravel Find out more

Subscribe to my newsletter

Subscribe and get my books and product announcements.

Learn Laravel with Laracasts

Faster Laravel Hosting

© 2006 - 2024 DC Blog. All code MIT license. All rights reserved.