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.
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.