Changing PHP Values and upload_max_filesize through cPanel
When running an application, script, plugins, or even uploading a file via PHP, sometimes you may face an error when one of them exceeds the limitations set by your webserver. In this article, you’ll learn how to fix the error by increasing the default limit of upload_max_filesize through your cPanel.
To do that, access your cPanel → Software section → Select PHP Version:
Then, you’ll choose Options, where you’ll 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’ll increase additional PHP limits by adding a couple of lines of code to your .htaccess file following this amazing article.
NOTES:
- 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.