• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved Disable output buffering

Patashoow

Basic Pleskian
Server operating system version
Ubuntu 20.04
Plesk version and microupdate number
18.0.68
Hello,

I'm really struggling trying to find how to disable output buffering on my server.

I'm using Apache 2.4.41 with Nginx in proxy mode. I also have ModSecurity enabled with Comodo rules (free) and use PHP-FPM served by Apache.
I have set, in my "php.ini" file, the value of "output_buffering" to "8192" but as it's PHP related configuration, whenever I want to flush data, I can simply do it using PHP code.
But in my case, the requests always wait to complete before sending the whole result at once even when the code asks to flush the buffer.

So how is the output buffering controlled on Plesk? Is it possible to completely turn it off or even better, disabling it for a specific script?
 
The flushpackets option should help here, i.e. you can place the following option somewhere in the Apache2 configuration.

Code:
# disable output buffering for php-fpm/proxy_fcgi
<IfModule proxy_fcgi_module>
  <Proxy fcgi://127.0.0.1:9000 enablereuse=off flushpackets=on>
  </Proxy>
</IfModule>
 
Oh! My! Gawd! I've been trying for like 8 hours straight! You saved me so much time.
Thanks a lot! That indeed worked.

So from there, can I only apply it for a specific script and not the whole server?
 
For only one vHost, you should be able to put that config snippet into the "Additional Apache directives" option on the "Apache & nginx Settings" page in Plesk.

For only a specific script...well, never done that, no clue if something with <FilesMatch> or <Location> around that config snippet may work.
 
  • Like
Reactions: mow
I was about to answer myself.
It is indeed by using <FilesMatch>.
So thank you again! (so much!) I owe you a drink ;)

EDIT: I still don't know how to mark the question as solved.
 
Back
Top