0

Spent several hours on this now, to no avail.

Simply trying to turn output buffering off on a clients WHM install, for a simple XHR response log. For testing, I have a very simple PHP script, which on the CLI does exactly what it needs to, however through a web browser, it executes the whole script before returning everything.

Environment - WHM, PHP 5.6, PHP FPM, Apache 2.4

Steps taken so far:

  1. Ensured gzip is off (confirmed via https://checkgzipcompression.com)
  2. In the .htaccess file added SetEnv no-gzip 1 (confirmed as it toggles the above step on/off
  3. Set in the php.ini file output_buffering = 0 and zlib.output_compression = Off
  4. Set in http.conf FcgidOutputBufferSize 0 and restarted apache

Any help or assistance would be gratefully received, I've done an extensive search on Stack Overflow and tried everything that I've found however with no luck.

Graeme Leighfield
  • 2,825
  • 3
  • 23
  • 38

0 Answers0