I am running a webserver with the following configuration:
- Ubuntu 14.04
- PHP 5.5.9
- PHP-FPM
- Nginx
When I upload a file in a Symfony application I am getting the error The file is too large. Allowed maximum size is 2 MiB.
. I already altered the maxFileSize annotation in the entity but the problem seems to rely in the server configuration.
If I run phpinfo() it returns me the following path to my php.ini: /etc/php5/fpm/php.ini
In this php.ini I have changed the following settings:
upload_max_filesize = 8M
post_max_size = 8M
Then I restarted php-fpm (service php-fpm restart) but the changes don't appear on the phpinfo page because it still says: upload_max_filesize 2M
.
Do I miss something?