1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Large attachment uploads failing with php-fpm

Discussion in 'Server Configuration and Hosting' started by shawn, Feb 29, 2012.

  1. shawn

    shawn Well-Known Member

    I can upload attachments, so all of that seems to be working. But if the attachment is big enough that it would need to be resized, it goes through the whole upload process/status bar, and then I get a pop-up saying "upload failed".

    If I swap out the config files so that Nginx runs php stuff through Apache, it all works perfectly.

    I've checked all of the php upload size/post size/etc variables, and they look fine. I'm wondering if it's not some fcgi stuff in the nginx conf. Maybe a connection timeout problem or buffering issue... not sure. Any suggestions on where to start looking?
  2. D.O.A.

    D.O.A. Well-Known Member

    You'd have to be more specific where/what those variables are, but anyway
    memory_limit = 200M
    post_max_size = 150M
    upload_max_filesize = 100M
    client_max_body_size 100m;
    does it for me.
    Ryan Mitchell likes this.
  3. shawn

    shawn Well-Known Member

    Yeah, I forgot about the other thread when I posted this one. I did have client_max_body_size, but I needed client_body_buffer_size, too

Share This Page