Webhosting page flushing does not work

From GigaTux Wiki
Revision as of 09:45, 25 January 2012 by Cocodude (talk | contribs) (Created page with "This happens if a user's page should be outputting content as it goes along, but it doesn't (and you might only get output after processing has completed or it times out). We us...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This happens if a user's page should be outputting content as it goes along, but it doesn't (and you might only get output after processing has completed or it times out).

We use FastCGI on the cPanel servers and this implements its own buffer. We thus need to disable this for the user.

On the cPanel server, create a new file /usr/local/apache/conf/userdata/std/2/username/domainname.com/fastcgi.conf with the following contents:

 <IfModule mod_fcgid.c>
   FcgidOutputBufferSize 0
 </IfModule>

Then run '/usr/local/cpanel/bin/apache_conf_distiller --update' followed by '/usr/local/cpanel/bin/build_apache_conf'. Finally, restart apache by typing 'service httpd restart'.