I updated the setting like you said. The weird thing is my two files which are not larger than 15MB, they ware uploaded correctly. But I got 502 Bad Gateway. If I refresh, files are Okay. Do you have encounter like this?
That looks like an nginx log, also check out the php-fpm log usually found in /var/log/php5-fpm.log, it may have more information. My guess is an issue in the code receiving the file, rather than the act of uploading a file itself. Usually errors due to file size are more explicit.
In addition to the client_max_body_size in nginx, did you check your php.ini settings?
; Maximum size of POST data that PHP will accept.
; Its value may be 0 to disable the limit. It is ignored if POST data reading
; is disabled through enable_post_data_reading.
; http://php.net/post-max-size
post_max_size = 128M
; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 128M
Hi @fideloper Thanks big guy. I'm a big fan of serverforhackers by the way.
I also check php5-fpm log but wasn't help. For me I check almost every solution from online and configured my settings. Finally I think I over configured LEMP settings which I didn't know what to do next. So I uninstalled everything and reinstall again (followed an article from digital ocean) and it works now.