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 ...