Php-apc and Nginx

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 :frowning:

According to Alessandro Briosi, OpenUpload developer, the problem might
come from nginx not passing some information to php.

My full thread with him is here :
https://sourceforge.net/tracker/?func=detail&aid=2854594&group_id=242018&atid=1117805

Could anyone here confirm that it could be the source of the problem ?
And do you have any way to fix this ?

Thanks in advance

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 :frowning:

Does the upload progress module have anything to do with it?
http://wiki.nginx.org/NginxHttpUploadProgressModule

According to Alessandro Briosi, OpenUpload developer, the problem might
come from nginx not passing some information to php.

It does so through FastCGI, have you checked your parameters?

HTH,
Nuno Magalhães

Hello!

On Tue, Sep 08, 2009 at 11:11:45PM +0200, Michael Baudino wrote:

According to Alessandro Briosi, OpenUpload developer, the problem might
come from nginx not passing some information to php.

My full thread with him is here :
Open Upload / Support Requests / #19 Progress question

Could anyone here confirm that it could be the source of the problem ?
And do you have any way to fix this ?

Traditional backend-based uploaders do not work with nginx as
nginx only passes request to backend once it got full request.

You should use nginx modules for this instead. At least one is
listed on wiki.

Maxim D.

Michael Baudino Wrote:

display progress information during upload of a
file using APC.
It does not on my config :frowning:

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 :
https://sourceforge.net/tracker/?func=detail&aid=2
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: