When running an application, script, plugins, or even uploading a file via PHP, sometimes you might face an error when one of them exceeds the limitations set by your webserver. In this article, you will learn how to fix the error by increasing the default limit of upload_max_filesize through your hPanel.
In order to do that, access your Hosting area → Manage → Advanced section → PHP Configuration:
Then, you can select PHP Options, where you can locate the upload_max_filesize and set the maximum value available in your plan and then click on Save:
That’s it! Now you know how to increase upload_max_filesize along with other limits 🚀
If the errors persist, you can increase additional PHP limits by adding these some lines into your .htaccess file following this amazing article.
- Adjust the PHP limits to any desired values as long as your plan supports it.
- You can also locate the maximum limits available by checking the PHP info of your website.