I need to upload a file larger than 2MB. I have read this post
So I have modified the two lines on php.ini in this way:
; Maximum allowed size for uploaded files.
upload_max_filesize = 500M
; Must be greater than or equal to upload_max_filesize
post_max_size = 500M
Then I have restarted apache In truth, the correct name of the file that I have modified is php.ini.default in folder /etc/, but I think that the file is correct: in fact if i go on localhost/index.php to show php info, I see:
Configuration File (php.ini) Path: /etc
However if in terminal; I digit
php -i
I get this:
upload_max_filesize => 2M => 2M
post_max_size => 8M => 8M
It seems like the php.ini file is not been saved, in fact I'm able to upload <=2M but not larger
(sorry for my english )