Trouble changing `upload_max_filesize` on nginx

admin

Administrator
Staff member
I've see a few other similar questions on here, but most of the answers are Apache specific (dealing with their .htaccess file) and I'm using nginx.

I'm having trouble making my change to the
Code:
upload_max_filesize
in php.ini stick. I'm using nginx, php5 and wordpress on Debian.

When I run phpinfo() I see the following output:

Code:
Loaded Configuration File /etc/php5/cgi/php.ini

I then go to the relevant .ini file, change a few values, and then restart nginx. When I fire up a phpinfo() plugin I got for wordpress, it reports the values as unchanged.

I'm at a loss because phpinfo() reports that it is loading config values from the file that I've changed, but it doesn't report the changes.