Black Friday sale is now on! 50% off Laravel: The Modular Way. Learn more

Fixing mod_fcgid: read data timeout

David Carr

Tutorials Development

    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 Book by David Carr

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

    Subscribe to my newsletter

    Subscribe and get my books and product announcements.

    © 2009 - 2022 DC Blog. All code MIT license. All rights reserved.