Increase File Size Limit Magento 2 Nginx Php Fpm
How to increase the file size limit for magento 2 import#
Ubuntu#
sudo vim /etc/nginx/sites-available/my-server.conf
Add this line in server
group:
client_max_body_size 5M;
- Change PHP Max upload
sudo vim /etc/php/7.0/fpm/php.ini
Add:
upload_max_filesize = 5M
- Restart
php-fpm
andnginx
sudo service php7.0-fpm restart sudo service nginx restart
Mac#
sudo vim /usr/local/etc/nginx
Add this line in server
group:
client_max_body_size 5M;
- Change PHP Max upload
sudo vim /usr/local/etc/php/7.0/php-fpm.conf
Add:
upload_max_filesize = 5M
- Brew restart
nginx
andphp-fpm
brew services restart nginx brew services restart php70