php slow log? How fix flushOutput()?

pullvideos

Member
YetiShare User
Dec 15, 2013
88
1
8
Hi,
my server recorded php slow request log:
script_filename = /public/file_download.php
[0x00007ffecc32f818] flushOutput() /public/includes/functions.inc.php:2131
[0x00007ffecc32c380] flushOutput() /public/includes/class.file.php:397
[0x00007ffecc3294b0] download() /public/file_download.php:61

What is flushOutput?Anyone know how fix it?
Thank you!
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
It's used to send the downloads via PHP. The next version of the script (due any day!) will provide the option to bypass PHP and use XFileAccel on NGINX or X-Sendfile on Apache. This will clear the issue.
 

pullvideos

Member
YetiShare User
Dec 15, 2013
88
1
8
Thanks for your quick support!
My site is running on version 3.5.3.The option is in version 4 beta? How upgrade v3.5.3 to v4?
My site is configed NGINX and Apache working together so I will config XFileAccel on NGINX or X-Sendfile on Apache?
Thanks!
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
Yes it's in v4 beta. Other info about upgrading here:

http://forum.mfscripts.com/viewtopic.php?f=4&t=1544&p=5485

It depends how you have your setup configured. Whichever is serving PHP requests you should set for XFileAccel/X-Sendfile.
 

pullvideos

Member
YetiShare User
Dec 15, 2013
88
1
8
Upgraded to V4. When i enable XFileAccel or X-Sendfile, the video can't play with mediaplayer?So i disabled them.Please help Thanks!

php slow log:

script_filename = /public/index.php
[0x00007f88170c5858] friendlyErrorType() /public/core/includes/log.class.php:168
[0x00007f88170c50d8] friendlyErrorType() /public/core/includes/log.class.php:69
[0x00007fff77689680] globalErrorHandler() unknown:0
[0x00007f88170c4fd0] ob_flush() /public/core/includes/coreFunctions.class.php:402
[0x00007f88170c0f28] flushOutput() /public/core/includes/file.class.php:516
[0x00007f88170bdc50] download() /public/core/page/file_download.php:60
[0x00007f88170bd480] +++ dump failed

script_filename = /public/index.php
[0x00007f88170c0dc8] fgets() /public/core/includes/file.class.php:511
[0x00007f88170bdaf0] download() /public/core/page/file_download.php:60
[0x00007f88170bd320] +++ dump failed

script_filename = /public/index.php
[0x00007f88170c4e70] flush() /public/core/includes/coreFunctions.class.php:403
[0x00007f88170c0dc8] flushOutput() /public/core/includes/file.class.php:516
[0x00007f88170bdaf0] download() /public/core/page/file_download.php:60
[0x00007f88170bd320] +++ dump failed