Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,961
    Likes Received:
    1,821
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    I am happy to see you were able to address the issue. Thank you for updating us with the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice