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

前端 未结 8 1587
轻奢々
轻奢々 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.

    0 讨论(0)
  • 2020-12-03 11:24

    If any problem involve with mod_fcgid like below: _mod_fcgid: read data timeout in XX seconds _mod_fcgid: can't apply process slot for

    Please fix these issues with priority:

    _Increasing the memory limit of php (default 128M, up to 256, 384, ... then restart apache anh check it again)
    _Increasing the time out of FCGI, but not need if above is ok
    
    0 讨论(0)
提交回复
热议问题