php - 500 Server error: Premature end of script headers: -


i have website in php works solr indexation server, based on codeigniter.

we got lot of new content, flushed database, , had reindex content (about 168,000 elements). created script index contents slices of 500 – when script finishes, launch next indexing.

it works on local test environment, on production 500 error:

[thu dec 02 ...] [error] [client ip] premature end of script headers: index.php 

there absolutely nothing in php.log, apache error_log returns it. i've seen happen on other pages of website once or twice, during indexing.

any ideas?

this error (sometimes) caused fastcgi setup of fcgidiotimeout directive (old name: ipccommtimeout).

that number of seconds io timeout, default 40 seconds. timeout means

"the fastcgi application must begin generating response within period of time. increase directive necessary handle applications take relatively long period of time respond."

you can try solve putting vhost.conf:

<ifmodule mod_fcgid.c>   # 5 minutes io timeout, default 40 seconds   fcgidiotimeout 300 </ifmodule> 

you can increase need , restore original value once reindexing process complete.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -