Debian - Symfony 2 - The file "file" exceeds your upload_max_filesize ini directive (limit is 2048 kb). (500 Internal Server Error)
apache, debian, file-upload, php, symfony
Solution
Thanks to the help of @nifr, I followed his instruction and I tried to get the php info with a php file by calling the method `phpinfo()`. The path of `Loaded Configuration file` given by this call is different of the path given by the command `php -i | grep "Configuration File"`.
If you want to make some changes for php, be sure to change the right php.ini. To be sure of the location of this file, just use the function `phpinfo()`. It's the best way
Problem
I'm trying to deploy my Symfony 2 application on debian server. The website works pretty well. However I meet this issue for the upload picture... I try to upload a picture and my RestFul API returns this error : ``` The file "file.JPG" exceeds your upload_max_filesize ini directive (limit is 2048 kb). (500 Internal Server Error) ``` I checked on internet how to resolve this problem. Apparently, I need to change the value of ``` upload_max_filesize = 2M ``` I changed the value for 20M. I've also changed the post_max_size. My new configuration is : ``` upload_max_filesize = 20M post_max_size = 20M ``` After updating, I did relaunch the server with this command : ``` /etc/init.d/apache2 reload ``` It doesn't change anything. I still have the same error :/ I'm root, so it's not a problem of permissions. With php info, I located the php.ini, so I guess that I change the right file. I don't see any other solutions ...