Step 1 : Open MultIPHP INI Editor:
Log in to your cPanel account. Scroll down to the Software section. You will see a tool called MultIPHP INI Editor to click on it.
This tool allows you to change PHP configuration values for your domain. It writes directly to your .htaccess, .user.ini, and php.ini files depending on which file type is valid for your server setup.
Step 2 : Select Your Domain:
Once the MultIPHP INI Editor opens, you will be on the Basic Mode tab by default. You will see a dropdown that says Select a location
Click the dropdown and you will see three options:
- Select a location
- Home Directory
- aicraftedsalt.com
- my.aicraftedsalt.com
Select your main domain in this case aicraftedsalt.com and click Apply.
If you have multiple domains or subdomains on your cPanel account, make sure you select the correct one where your WordPress site is installed.
Step 3 : Understand the PHP Directives:
After selecting your domain, the editor will load a list of PHP directives with their current settings. These are the values that control how PHP behaves on your server. Here are the key ones relevant to upload size:
upload_max_filesize This is the maximum size of a single uploaded file. It is currently set to 512M. This means users can upload files up to 512 megabytes in one go.
post_max_size This sets the maximum amount of POST data allowed. Since file uploads go through POST requests, this value must always be larger than upload_max_filesize. It is currently set to 512M as well.
Important: If post_max_size is smaller than upload_max_filesize, your uploads will still fail even if you increased the file size limit. Always keep post_max_size equal to or larger than upload_max_filesize.
memory_limit: This sets the maximum memory a script can use. It is currently set to 512M. For large uploads, your memory limit should be at least equal to or greater than your post_max_size.
max_execution_time: Currently set to 300 seconds. This is how long a PHP script is allowed to run before the server terminates it. For large file uploads on slow connections, you may want to increase this value.
max_input_time: Currently set to 120 seconds. This controls how long PHP is allowed to parse input data such as POST data and file uploads. If you are uploading very large files, increase this value too.
max_input_vars: Currently set to 2000. This is the maximum number of input variables per request. This is generally not related to upload size but can affect complex forms.
session.gc_maxlifetime: Set to 1440 seconds. This defines how long session data is kept before it is marked as garbage.
session.save_path: This defines where session files are stored on the server. The value shown is /var/cpanel/php/sessions/ea-php8.
display_errors: Currently Disabled. This controls whether PHP errors are shown on screen. It is recommended to keep this disabled on a live production site.
zlib.output_compression: Currently Disabled. This controls whether pages are automatically compressed. Enabling it can improve performance but is separate from upload limits.
Step 4 : Change the Upload Size Values:
To increase your upload limit, update these two values:
upload_max_filesize set this to your desired limit, for example 256M or 512M
post_max_size set this to the same or a larger value than upload_max_filesize
You can also increase memory_limit and max_execution_time if you are dealing with very large files or slow connections.
After making your changes, you will see a blue notification in the top right corner saying:
You must click Apply to apply the new changes.
Click the Apply button to save all changes.
Step 5 :Verify the Change in WordPress:
After applying the changes, log in to your WordPress dashboard. Go to Media → Add New. You should now see the updated maximum upload size reflected at the bottom of the upload area.
You can also verify by going to Tools → Site Health → Info → Server in WordPress, where it shows the curret upload_max_filesize and post_max_size values pulled directly from your server.