You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by RJ White <rj...@moxad.com> on 2012/01/03 23:56:00 UTC
[users@httpd] Apache2-2.2.16 buffering output
Hi,
Here's what I have, after a brand new install:
Ubuntu 11.04
Apache 2.2.17
Perl 5.10.1
Even with a stock Apache install, it buffers my Perl CGI output.
(I've found this also happens on my home Ubuntu-10.10/Apache-2.2.16/Perl-5.10.1)
It's not the (Perl) CGI script.
It's not the browsers (tested with Firefox, Chrome both local & remote)
Everything works as intended on numerous other (RedHat) Linux systems
using older Apache (2.2.3).
A simple example Perl CGI program to illustrate this is:
#!/usr/bin/env perl
use CGI;
my $q = new CGI ;
$| = 1 ; # flush stdout
print $q->header( "text/html" ) ;
print $q->start_html( -title => "test" );
for ( my $i=0 ; $i < 5 ; $i++ ) {
print "<h2> $i ... </h2>" ;
sleep(1) ;
}
print $q->end_html . "\n" ;
Although this happens with a stock Apache config, a simple bare-bones
example in /etc/apache2/sites-enabled/my-machine is:
<VirtualHost *:80>
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
<Directory "/var/www/cgi-bin">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
According to what I've read, after Apache 1.3, output should not be buffered
and it isn't on my other systems.
I had high hopes that a similar description I found in the archives caused
by SSI using 'Options +Includes" might be it, but that doesn't apply here.
Any ideas? This is driving me nuts...
thanx,
-rj
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache2-2.2.16 buffering output
Posted by RJ White <rj...@moxad.com>.
found it!
It was being caused by mod_deflate:
cd /etc/apache2/mods-enabled
mkdir ../HIDE
mv *deflate* ../HIDE
/etc/init.d/apache2 restart
woohoo!
Sorry if I wasted anyones time.
-rj
-----Original Message-----
On Tue, Jan 03, 2012, rj@moxad.com wrote:
Hi,
Here's what I have, after a brand new install:
Ubuntu 11.04
Apache 2.2.17
Perl 5.10.1
Even with a stock Apache install, it buffers my Perl CGI output.
(I've found this also happens on my home Ubuntu-10.10/Apache-2.2.16/Perl-5.10.1)
It's not the (Perl) CGI script.
It's not the browsers (tested with Firefox, Chrome both local & remote)
Everything works as intended on numerous other (RedHat) Linux systems
using older Apache (2.2.3).
A simple example Perl CGI program to illustrate this is:
#!/usr/bin/env perl
use CGI;
my $q = new CGI ;
$| = 1 ; # flush stdout
print $q->header( "text/html" ) ;
print $q->start_html( -title => "test" );
for ( my $i=0 ; $i < 5 ; $i++ ) {
print "<h2> $i ... </h2>" ;
sleep(1) ;
}
print $q->end_html . "\n" ;
Although this happens with a stock Apache config, a simple bare-bones
example in /etc/apache2/sites-enabled/my-machine is:
<VirtualHost *:80>
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
<Directory "/var/www/cgi-bin">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
According to what I've read, after Apache 1.3, output should not be buffered
and it isn't on my other systems.
I had high hopes that a similar description I found in the archives caused
by SSI using 'Options +Includes" might be it, but that doesn't apply here.
Any ideas? This is driving me nuts...
thanx,
-rj
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org