The upload_max_filesize value controls the largest file you can upload through PHP, for example in WordPress media. Raise it if uploads fail with a size error.
You can modify PHP’s upload_max_filesize as per your needs using CloudLinux’s PHP Selector in cPanel.
1. Log in to your cPanel account.
2. In the Software section, click on Select PHP Version.
![]()
3. Click on the Options menu.

Note: If the Options page shows an error related to the native PHP version, change it to a non-native version first.
4. Look for upload_max_filesize and click on the drop-down option displayed in front of it. Then choose the appropriate limit as per your requirements.

Choose a sensible value
Pick a value slightly above the largest file you need to upload. Also check post_max_size so it is not smaller.
If the Options page shows an error
Switch to a non-native PHP version first, then open Options again. Save your change and reload your website to test it.
Frequently asked questions
Will this change affect my whole account? It applies to the PHP version and domain you are editing in Select PHP Version.
How do I know the value is too high? Very high values can use more server resources. Raise it in small steps until your script works.
Related guides
Need cPanel hosting in Kenya? See KickHost hosting plans or contact our team.
Found this useful? Share it.
