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 cPanel.
In order to do that, access your cPanel → Software section → Select PHP Version:
Then, you can select Options, where you can locate the upload_max_filesize and set the maximum value available in your plan.
That’s it! Increasing the upload_max_filesize value should automatically fix the error 🚀
If the errors persist, you can increase additional PHP limits by adding a few lines of code to 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.