When running an application, script, plugin, or even uploading a file via PHP, you may face an error because of exceeded limitations set by your web server.
To solve this, you can increase the default upload_max_filesize limit via cPanel 👇
Navigate to cPanel → Software → Select PHP Version:
Then, select Options, locate the upload_max_filesize, and set the maximum value available in your plan.
And that’s it! Increasing the upload_max_filesize value should automatically fix the error.
If the errors persist, increase other PHP limits by adding a few lines of code to your .htaccess file as described here: How to Increase Upload Max Filesize and PHP Values via .htaccess 💡
You may adjust the PHP limits to any desired values as long as your plan supports it
The maximum limits can also be found in the phpinfo file of your website