The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'General Discussion' started by ITGabs, Feb 8, 2016.

  1. ITGabs

    ITGabs Well-Known Member

    Joined:
    Jul 30, 2013
    Messages:
    81
    Likes Received:
    0
    Trophy Points:
    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?
     
  2. ITGabs

    ITGabs Well-Known Member

    Joined:
    Jul 30, 2013
    Messages:
    81
    Likes Received:
    0
    Trophy Points:
    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
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...
Similar Threads - Flush output buffer
  1. Valetia
    Replies:
    1
    Views:
    418

Share This Page