jyr / MNPP

Mac + Nginx + Percona + PHP a high performance web server in a one-click installer
http://getmnpp.org
314 stars 49 forks source link

how to change upload limitation for mnpp #37

Closed nathan-zhu closed 11 years ago

nathan-zhu commented 12 years ago

I change php.ini upload_max_filesize = 200M at php52folder then restart it, but doesn't work also show 2M upload limitation, where can chang it?

jyr commented 12 years ago

you should change on https://github.com/jyr/MNPP/blob/master/conf/php53/php.ini or https://github.com/jyr/MNPP/blob/master/conf/php52/php.ini try creating a php file with phpinfo(); and look options

nathan-zhu commented 12 years ago

php.ini file in php53 folder, but no post_max_size setting in it. how to change it? just add new line for it?

jyr commented 12 years ago

On Sat, Apr 28, 2012 at 2:22 AM, nathan-zhu reply@reply.github.com wrote:

php.ini file in php53 folder, but no post_max_size setting in it. how to change it? just add new line for it?

sure, look http://www.php.net/manual/en/ini.core.php

nathan-zhu commented 12 years ago

Hi, jyr add php_admin_value[post_max_size] = 100M to php53/php.ini then restart also show 2M upload limitation, try post_max_size= 100M also not changed

jyr commented 12 years ago

On Sat, Apr 28, 2012 at 10:50 AM, nathan-zhu reply@reply.github.com wrote:

Hi, jyr  add php_admin_value[post_max_size] = 100M to php53/php.ini then restart also show 2M upload limitation, try post_max_size= 100M also not changed

You try reboot all services? need reboot mnpp

nathan-zhu commented 12 years ago

yes, i add this php_admin_value[post_max_size] = 100M to php53/php.ini then stop service quit mnpp, then restart it. but also get 2M upload size, try to add post_max_size = 100M to it then quit mnpp restart it, still 2M. strange.