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.

Apache buffer

Discussion in 'EasyApache' started by handreach, Aug 11, 2007.

  1. handreach

    handreach Member

    Joined:
    Jul 11, 2004
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    The Apache server (version 1.3.37) in my new hosting machine using Cpanel failed to flush the outputs from my CGI scripts and PHP scripts to the client side, i.e., there is a delay of output and the server seemed to buffer the script output and send it to clients only after the script finished. All my scripts worked flawlessly in my old hosting machine of RedHat 7.3 with Apache 1.3.37 and my home computer with CentOS 4.4. with Apache 2.0.52, i.e., they can flush contents immediately.

    According to the Apache website (http://httpd.apache.org/docs/1.3/new_features_1_3.html)
    "In previous versions of Apache, the output from CGI scripts would be internally buffered by the server, and wouldn't be forwarded to the client until either the buffers were full or the CGI script completed. As of Apache 1.3, the buffer to the client is flushed any time it contains something and the server is waiting for more information from the script. This allows CGI script to provide partial status reports during long processing operations."

    Therefore, I suspect that something is wrong with the Apache server on my new server. I'd appreciate if there are some experts in this site who could help me. I've recompile the Apache using /scripts/easyapache, but it doesn't work.
     
  2. handreach

    handreach Member

    Joined:
    Jul 11, 2004
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    The problem was found to be the gzip module in Apache. The problem disappeared after it was turned off.
     
Loading...

Share This Page