code-8
code-8

Reputation: 58692

Illuminate \ Http \ Exceptions \ PostTooLargeException - Laravel 5

I use PHP 7.0, I also use Apache on my Ubunutu server.

I've already updated my php.ini

cat /etc/php/7.2/fpm/php.ini                                                                                                                                                                                              
post_max_size = 2000M                                                                                                              
upload_max_filesize = 2000M
memory_limit = 4000M   

I already restart the service

service php7.2-fpm restart

I still getting

Illuminate \ Http \ Exceptions \ PostTooLargeException

enter image desmiss?on here

What do I still miss? Is there anything I should do with the Apache ?

Upvotes: 3

Views: 8690

Answers (1)

code-8
code-8

Reputation: 58692

enter image description here

Note: I was updating the wrong file as I would have use Nginx.

Since I use Apache, I should update this file instead

/etc/php/7.2/apache2/php.ini

After made changes to the right file, and restart, every working as expected now.

cat /etc/php/7.2/apache2/php.ini | grep -E 'post_max_size|upload_max_filesize|memory_limit'                             
memory_limit = 500M                                                                                                         
post_max_size = 500M                                                                                                        
upload_max_filesize = 500M 

Upvotes: 6

Related Questions