Flush the output buffer in https / ssl, change the 64kb default

ITGabs

Well-Known Member
Jul 30, 2013
81
0
6
cPanel Access Level
Root Administrator
Hi,

I can't find anything about how to change that 64kb buffer in https / ssl
in http:// work just fine using fcgid or suphp

PHP:
<?php
ini_set('output_buffering','off');
ini_set('zlib.output_compression',off);
header('Content-Type: text/plain; charset=utf-8');
for($i=0;$i<100;$i++){
      echo $i."<br \>";
      ob_flush();
      flush();
      sleep(1);
}
?>
but in https:// i need to send 64kb or the buffer never flush

how I can make https calls behave exactly as a http:// call?

Just Notice that WHM is using this feature to show a log progress like in Easy Apache or Software Update (the link)

https://mywhm.com:2087/cpsess1xxxxxx571/cgi/tail_upcp2.cgi

I tried many things in the php.ini apache.conf and in the fcgid wrapper, what I am missing?
 

ITGabs

Well-Known Member
Jul 30, 2013
81
0
6
cPanel Access Level
Root Administrator
I was missing run /usr/local/cpanel/bin/build_apache_conf after I added the new setting

FcgidOutputBufferSize 0

in /usr/local/apache/conf/userdata/ssl/2_2/myuser/mysite/fcgid.conf

everything work as expected :)

Thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

I am happy to see you were able to address the issue. Thank you for updating us with the outcome.