0

How can I modify the 8 Mo limit of PHP ?

I'm using a form using files, and I want to upload Big files but PHP limits the size of the files.

25th Dec 2016, 11:08 PM
Hickacou
Hickacou - avatar
1 Answer
+ 2
Several options exists in the php.ini file for limit file size upload... so, you need have access and write rights to it, and try to modify: memory_limit = 32M upload_max_filesize = 24M post_max_size = 32M And restart the server. ( "/etc/init.d/httpd restart" on debian/linux ) WARNING: if upload_max_filesize or post_max_size larger than memory_limit, you must increase it so that's larger than them... and don't forgot that uploaded files are "posted", so post_max_size is important to determine size limit ;)
26th Dec 2016, 9:35 AM
visph
visph - avatar