nginx:413 request entity too large

vi /etc/nginx/nginx.conf
#add in http {}
client_max_body_size 20m;
:wq

vi /etc/php5/cli/php.ini
vi /etc/php5/fpm/php.ini
#add:
upload_max_filesize = 20M
post_max_size = 20M
:wq

service php5-fpm restart
service nginx restart

上一篇: