Premature end of script headers: index.php, mod_fcgid: read data timeout in 61 seconds

前端 未结 8 1627
轻奢々
轻奢々 2020-12-03 10:45

I wrote a simple crawling script (in php) at localhost (with 4 variations). All of them worked fine at localhost. But when I made move them to shared hosting, two of them wo

8条回答
  •  南方客
    南方客 (楼主)
    2020-12-03 11:22

    Essentially your scripts are running too long for the server configuration. mod_fcgid is waiting for php to respond, and its set to give up after 61 seconds. Since this shared hosting, you may not be allowed to change it.

    This is not something that should be run via browser/web server anyway. Write it as a console script.

提交回复
热议问题