• 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

shawn

Well-known member
#1
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?
 

D.O.A.

Well-known member
#2
You'd have to be more specific where/what those variables are, but anyway
Code:
php.ini
memory_limit = 200M
post_max_size = 150M
upload_max_filesize = 100M
 
nginx.conf
client_max_body_size 100m;
does it for me.