I have a Symfony application using Sonata admin and Sonata media my client uses to upload mp4 videos. The problem is these files are getting bigger and bigger (> 1go) and I now have trouble with "out of memory" apache errors.
The website is hosted on an AWS EC2 ubuntu instance (PHP, Apache2).
I set the php.ini
parameters like this:
upload_max_filesize = 1G
post_max_size = 2G
memory_limit = -1
I did this for cli and apache2 under /etc/php/7.0/. I tried various combinations and higher values. Always restart apache afterwards. I even tried rebooting the instance. I can't get to upload more than 350mo.