Table of Contents
Uploaded File Exceeds The Upload_Max_Filesize CyberPanel
Sometimes, you get the following error when unloading a file to your WordPress website. The website is created by the CyberPanel.
![S2WgWHukF0Y6PwzcSyWfOYKjUWo4LWgc1pHmiDfxKwVFoQDZeCZcL68Fhhce](https://s3.amazonaws.com/s3.bonben365.com/files/2023/S2WgWHukF0Y6PwzcSyWfOYKjUWo4LWgc1pHmiDfxKwVFoQDZeCZcL68Fhhce.jpg)
In the WordPress admin dashboard. You can check the current maximum upload file size for the site.
![I5jSYaBkeI5i36RXw4etRWzMGqxhe8txMYeeyTRiIIQs25EbAJ4vsxm2f8kt](https://s3.amazonaws.com/s3.bonben365.com/files/2023/I5jSYaBkeI5i36RXw4etRWzMGqxhe8txMYeeyTRiIIQs25EbAJ4vsxm2f8kt.jpg)
Check your website’s current PHP version
1. First, you need to check the website’s current PHP version by creating an info.php file in the directory containing your source code and inserting the code below.
![P0lvJdMG87vMJHsgdhE1JzmYgTfcAiTSHG7OATFbJyeTWc4AaNmdwKtLD3su](https://s3.amazonaws.com/s3.bonben365.com/files/2023/P0lvJdMG87vMJHsgdhE1JzmYgTfcAiTSHG7OATFbJyeTWc4AaNmdwKtLD3su.jpg)
<?php
phpinfo();
?>
![gCqUiHPQBrvvv45R1dZgIsHXJyqxKemDvChKECZWrYWY5J6ZumOVAHj3SBWz](https://s3.amazonaws.com/s3.bonben365.com/files/2023/gCqUiHPQBrvvv45R1dZgIsHXJyqxKemDvChKECZWrYWY5J6ZumOVAHj3SBWz.jpg)
2. Then visit the created path to check, for example, https://ezbpm.me/info.php, and as shown, the site is running with PHP version 8.0.
![8Dn9mIHZyO84meeZcUo11F7yN6OsGWAyqmkBoJ6kivpNxt5FFvNBuyizKh0N](https://s3.amazonaws.com/s3.bonben365.com/files/2023/8Dn9mIHZyO84meeZcUo11F7yN6OsGWAyqmkBoJ6kivpNxt5FFvNBuyizKh0N.jpg)
3. Next, go to the CyberPanel admin console, then navigate to PHP → Edit PHP Configs in the left navigation menu.
![yIYE5WADeSu4L3cnKKhNMmg98wRDZN9L4rGPqpPD0UOkj55BsyaH4NaEgUf5](https://s3.amazonaws.com/s3.bonben365.com/files/2023/yIYE5WADeSu4L3cnKKhNMmg98wRDZN9L4rGPqpPD0UOkj55BsyaH4NaEgUf5.jpg)
3. Select the PHP version that matches the current PHP version of your website. Then, change the upload_max_filesize and post_max_size as you need.
![p4aEueKwh7DGhg0fSSN8SvZl2TRDaLJaGrfDpJnCnhozCmJsd0pVmDsKUStx](https://s3.amazonaws.com/s3.bonben365.com/files/2023/p4aEueKwh7DGhg0fSSN8SvZl2TRDaLJaGrfDpJnCnhozCmJsd0pVmDsKUStx.jpg)
4. Save Changes → Restart PHP, then go to the WordPress dashboard to see if the changes have gone into effect.
![eP5ZzcEaDUgSswyXkU4AAujCrBPhsRGYkpJl6edQaaJCtiLlQw4pjQLm5HNO](https://s3.amazonaws.com/s3.bonben365.com/files/2023/eP5ZzcEaDUgSswyXkU4AAujCrBPhsRGYkpJl6edQaaJCtiLlQw4pjQLm5HNO.jpg)
Re-upload the file to the site. This time, the error should be gone.
Not a reader? Watch this related video tutorial: