Pak Jiddat

Read: In the name of thy Lord Who createth, Createth man from a clot. Read: And thy Lord is the Most Bounteous, Who teacheth by the pen, Teacheth man that which he knew not. Nay, but verily man is rebellious That he thinketh himself independent!. Lo! unto thy Lord is the return. (Sura Alalaq 96:8)

Disabling output buffering with mod_fcgid

Created On: 22 Nov, 2017: 19:11:38 - Tags : web servers


Output buffering in Php allows output from a Php script to be stored in a buffer. When the buffer is flushed, the output is displayed to the user. Sometimes we may want to disable output buffering, so we can quickly access the output from a Php script. For example it is useful to be able to view the output from long running scripts.

The output from a Php script can be buffered by other tools such as the web server, intermediate proxy servers, web server modules, web browser etc.

Disabling Php output buffering is simple when using mod_php. We only need to disable the output buffering in the php.ini configuration, but when using Php in a CGI or FastCGI environment it can be a bit tricky. Apache can use different modules for communicating with Php in a FastCGI environment. For example mod_fcgid

To disable output buffering in a FastCGI environment, the following steps can be taken:

  • output buffering can be disabled for Php by adding these lines to php.ini:
    zlib.output_compression = 0;
    output_buffering = 0;
  • The mod_fcgid buffering can be disabled by adding:FcgidOutputBufferSize 0 to the virtual host configuration.
  • The buffering by Apache can be disabled by disabling the mod_deflate Apache module

Related Articles

  1. PrivateTmp systemd option prevents access to tmp folder
  2. Generating free SSL certificate from LetsEncrypt on localhost
  3. INADEQUATE_SECURITY - SSL Cipher problems with HTTP2
  4. Preventing browsers from caching content
  5. Making HTTP POST requests from Google Chrome
  6. Increasing web server timeout
  7. Redirect http to https with Apache
  8. Creating and Installing Apache Self Signed Certificate
  9. Using flags with rewrite rule
  10. Redirecting without mod_rewrite using regular expressions in htaccess
  11. Generate Certificate Signing Request (CSR) for ssl certificates
  12. Configuring Apache mod status
  13. Allowing Cross Origin Requests using htaccess
  14. Redirect http to https with Nginx
  15. Blocking visitors by http method using LimitExcept Apache directive
  16. Access control directives for Apache
  17. Passing query parameters to proxy server in Nginx
  18. Use of Preflight request in HTTP Cross Origin Resourse Sharing (CORS)
  19. Using RewriteCond directives