Remember, I'm not a sysadmin, I'm just a developer. I can’t find anyone with the exact problem, as I just look alike, and none of their “fixes” seem to work.
I am currently running an instance of Amazon EC2.
CentOS 6.2 Nginx 1.2.2 PHP 5.3.16 with APC Percona 5.5.24 // not currently using this as I am using an RDS
I set my php.ini settings (/etc/php.ini) to the following
upload_max_filesize=10M post_max_filesize=20M
After reloading the configuration using php -i via ssh, these settings seemed to be loaded. Mapping upload_max_filesize=10M etc.
When using phpinfo() or ini_get both options are returned as 4M
phpinfo() indicates that the file I am editing is uploaded ( /etc/php.ini ).
I also launched php -i | grep "\.ini" php -i | grep "\.ini" to check which files are downloaded and there are no extra configurations loaded. I even looked at each downloaded file separately to check that they had no settings inside.
In addition, I was offered to try using the .user.ini configuration file. It also did not change the meaning.
ini_set() does not work either.
I lost a little.
EDIT: not sure if this will help, but I am using this AMI http://megumi-cloud.com/
Matt edmonston
source share