To raise the limit, create or edit an .user.ini file in your site’s document root. This is usually the domain or httpdocs.
In this file, enter the new values you want to use. Here are some common settings:
Raise PHP Memory Limit:
memory_limit = 256M ; You can change this to <Value>M - ie, 172M, 512M ; Sizes are in MB
Raise Maximum Upload Size: (You also need to raise post_max_size to the same value or more)
upload_max_filesize = 8M ; You can change this to <Value>M - ie, 8M, 16M ; Sizes are in MB
Raise Maximum POST Size:
post_max_size = 8M ; You can change this to <Value>M - ie, 8M, 16M ; Sizes are in MB
Don’t forget to save the file!
You may need to wait up to 5 minutes for the changes to take effect as the .user.ini file configurations are cached.
We recommend setting these values to “sane” values – extremely high values give little benefit and can cause issues with your site. These values almost never affect the performance of your site.