php-apc and Nginx

Jim Ohlstein nginx-forum at
Wed Sep 9 02:03:20 MSD 2009

Michael Baudino Wrote:
> Hello everyone,
> I'm running OpenUpload 0.4.1 (a RapidShare-like
> web-app) on nginx-0.6.32
> with php-5.2.6 and php-apc-3.0.19 (all but
> openupload are from debian
> stable repositories).
> Everything is working fine, except that OpenUpload
> is supposed to
> display progress information during upload of a
> file using APC.
> It does not on my config :-(
> According to Alessandro Briosi, OpenUpload
> developer, the problem might
> come from nginx not passing some information to
> php.

This is almost certainly the case.

When nginx uploads a file it uploads the entire file before passing it to PHP. Consequently the script has no way to know how much of the file has been uploaded until the upload is complete.

> My full thread with him is here :
> 854594&group_id=242018&atid=1117805
> Could anyone here confirm that it could be the
> source of the problem ?

See above

> And do you have any way to fix this ?

You can recode the app to use some third party nginx modules, but short of that probably not. More practical would be to show a different GIF than what you are showing now - one which includes a message to the user that their file is being uploaded and to wait until it is completed.

> Thanks in advance
> -- 
> Michael Baudino
> KameHouse Prod.

Posted at Nginx Forum:,6021,6030#msg-6030

More information about the nginx mailing list