How to enable uploads of files larger than 2MB to your WordPress-site (using NGINX)
By Albin / 2020-01-28
I. Configure PHP-FPM
We start by editing the PHP-FPM configuration file php.ini, found here on Debian Buster (replace 7.3 with whatever version you’re running):
nano /etc/php/7.3/fpm/php.ini
Add the following lines at the very end of the file. (Check out what this actually does on https://www.php.net/manual/en/ini.core.php)
upload_max_filesize = 100M
post_max_size = 100M
Reload the PHP-FPM service:
systemctl reload php7.3-fpm
II. Configure NGINX
Now we configure the NGINX website configuration file on the host (note: not on the reverse proxy):
Read More