Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-14-2011, 07:24 PM   PM User | #1
soneen
New Coder

 
Join Date: Jun 2010
Posts: 54
Thanks: 4
Thanked 0 Times in 0 Posts
soneen is an unknown quantity at this point
Mysterious output buffering

The support ticket the Rackspace Cloud guys made sums it up the best, so here is the problem:
A simple (echo) PHP script is behaving differently on a Cloud Server compared to its original location:

Original - http://textspyder.com/chico/findSchedule.php
Cloud Server - http://50.56.81.54/test.php

The script:

# nano /home/andrew/public_html/test.php
Added:
</table width='900'>
<?php
$i=1;
while($i<=500000)
{
echo $i ." ";
$i++;
}
?>
</table>

Apache config update:

Changed: DocumentRoot /var/www > DocumentRoot /home/andrew/public_html
Changed: <Directory /var/www/> > <Directory /home/andrew/public_html/>

When 'implicit_flush' is on php.ini, the script behaves as it should. This is considered unnecessary, and simply a stop-gap solution
'output_buffering' is off, as well as compression (gzipping) on the server itself.

Similar behaviour is encountered with lighttpd.
soneen is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:18 AM.


Advertisement
Log in to turn off these ads.