In this guide, we’ll explore different methods to adjust the maximum upload file size for WordPress and other PHP applications. This involves modifying the upload_max_filesize and post_max_size settings in both the php.ini file and the .htaccess file.
You might need to increase the maximum upload file size for various reasons, especially when installing WordPress themes and plugins that require larger file sizes than the default settings in cPanel.
Using Basic Mode:
post_max_size and upload_max_filesize, then click Save.Using Editor Mode:
In cPanel, go to the Software tab and select MultiPHP INI Editor.
Switch to Editor Mode and select the domain you wish to modify.
Add the following lines, replacing XX with your desired megabyte value:
php_value upload_max_filesize XXM
php_value post_max_size XXM
For example:
php_value upload_max_filesize 582M
This sets the maximum upload size to 582MB.
If you prefer to modify the .htaccess file directly, follow these steps:
Go to File Manager and locate the .htaccess file.
Add the following lines, again replacing XX with your chosen value:
php_value post_max_size XXM
php_value upload_max_filesize XXM
For example:
php_value upload_max_filesize 582M
Both methods above will effectively adjust the maximum upload file size. If you continue to experience issues, please log in to your hosting account and submit a support ticket for assistance.