Recent version of PHP support the PHP_VALUE command for fcgi processes.
The trick is that multiple values need to be set in one "fastcgi_param PHP_VALUE" directive with a newline character as separator otherwise only the last one will be taken by the php process.
Example of increasing PHP's
upload_max_filesize ini setting via Nginx web server:
Code:
location ~ \.php$ {
fastcgi_param PHP_VALUE "upload_max_filesize = 50M \n post_max_size=51M";
}
Below example is INCORRECT:
Code:
location ~ \.php$ {
fastcgi_param PHP_VALUE "upload_max_filesize = 50M";
fastcgi_param PHP_VALUE "post_max_size=51M";
}