Increase PHP-FPM's max upload/post size
Nginx
client_max_body_size
PHP
post_max_size
upload_max_filesize
And restart or reload php fpm.
Source: http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size
Instead of changing php.ini file, I add all information in the nginx sites-available files. I see you got your answer long time ago, but this is the way I do it:
In my virtualhost under server {} block, I added:
client_max_body_size 128m;
Then in the location ~ .php$ {} block I added:
fastcgi_param PHP_VALUE "upload_max_filesize=128M \n post_max_size=128M";
I had a problem with restarting so I just killed the process and started it manually.
sudo pkill php5-fpm
sudo service php5-fpm start
The issue was with the restarting of php5-fpm. It seems there is a bug where sometimes some child processes are not terminated upon restart. I had to manually kill the processes with kill <process id>
having identified them with ps -ef
.
I was then able to fully restart php5-fpm which enacted my config changes.