While searching online you might have come across references to the PHP file size limit. Typically these are post_max_size and max_file_size You may be curious why you should increase post_max_size when you only want to increase the upload_max_filesize. To understand this we should first know what these methods do in PHP.
What is post_max_size
Typically this is set much higher however as an example, suppose your max_upload_file size is 8MB and in a page you are attempting to use images and perhaps a form with text. So if you have 3MB of text and 6MB of images your post size becomes 9MB which is more than your allowed post_max_size. Normally you want to keep post_max_size and upload_max_filesize the same.
What is upload_max_filesize
This is the size which is allowed to upload files. If upload_max_filesize is set to 150MB this means you cannot upload files larger than 150MB.
How to Modify the Values
MultiPHP INI Editor is included as part of cPanel and allows amongst other values, the post_max_size and upload_max_filesize to be modified.
You’ll first need to log into your cPanel account either directly through the server or your Client Area.
Under SOFTWARE click on MultiPHP INI Editor
The next step is to select the domain you wish to modify the PHP settings for. Under Configure PHP INI basic settings select the home directory or a domain’s document root to open the corresponding PHP configuration.
We now have access to the PHP settings. Scroll down to post_max_size and upload_max_filesize adjusting the values as needed.
Once these have been updated, click Apply at the bottom of the page.
To further confuse things, each application may have a way to modify their internal file upload size. For Omeka it’s the config.ini file. This is covered in a separate Help Article.