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:
- Ensured gzip is off (confirmed via https://checkgzipcompression.com)
- In the .htaccess file added
SetEnv no-gzip 1
(confirmed as it toggles the above step on/off - Set in the php.ini file
output_buffering = 0
andzlib.output_compression = Off
- 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.