Yes, in order to change the upload max size, you need to edit both php.ini and nginx.conf , both located in c:\WinNMP\conf
- in php.ini: set upload_max_filesize and post_max_size
- in nginx.conf: set client_max_body_size
restart nginx, then go to phpinfo() and check if the new values are applied. Also check if 'Loaded Configuration File' matches the php.ini file you just edited.
Last edit: WTriple 2017-12-13
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have a local WordPress running fine with WinNMP but I'm unable to edit the max upload size, it stays at only 1M.
I edited post_max_size and upload_max_filesize in C:\WinNMP\conf\php.ini and restarted php-cgi.
Any idea ? Thank you.
Yes, in order to change the upload max size, you need to edit both
php.ini
andnginx.conf
, both located inc:\WinNMP\conf
- in
php.ini
: setupload_max_filesize
andpost_max_size
- in
nginx.conf
: setclient_max_body_size
restart nginx, then go to phpinfo() and check if the new values are applied. Also check if 'Loaded Configuration File' matches the php.ini file you just edited.
Last edit: WTriple 2017-12-13
Hi. Thank you. Everything seem to be fine in phpinfo() so I think my problem is WordPress related, I'll check.
Edit: It was the max size in WordPress multisite. Sorry for inconvenience :-)
Last edit: ced64k 2017-12-04
You also need to set in nginx.conf
client_max_body_size