Skip to main content
All CollectionscPanelPHP
How to Increase Upload Max Filesize and PHP Values on cPanel
How to Increase Upload Max Filesize and PHP Values on cPanel

Changing PHP Values and upload_max_filesize through cPanel

Updated over a year ago

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 cPanelSoftware Select PHP Version:

The Select PHP Version option on the Software section on cPanel

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 💡

NOTES

  • 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

Did this answer your question?