Increase the maximum allowed size for uploaded files

If you need to upload big files to your application, you will need to tweak some PHP settings, by default the max_upload_size option is 2MB and post_max_size is 8MB.

To update these options, you need follow these steps:
  • Log into your cPanel account
  • Go to the "Select PHP Version" module
  • Click on the  "Switch to PHP Options" link

On that page, you will want to update both max_upload_size and post_max_size to fit your needs.

Be advised that uploading very big files using PHP means having a single PHP script running for a long time (for each upload), this means having one entry process running (for each upload), reducing the number of concurrent visitors your site can handle, use this option with caution.

Was this answer helpful?

 Print this Article

Also Read

How do I disable server-side caching?

We use Varnish to cache images for 30 minutes and all dynamic content (html, php, etc) files for...

How do I change my cPanel username

You can change your cPanel username by logging into our customer portal.  Once logged in,...

How long does it take for my WHOIS privacy to be enabled?

At this time, WHOIS Privacy is not an instant change.    When you request WHOIS privacy, it goes...

How do I block an IP address from reaching my website?

Please view our video tutorial at: http://www.cpanel.net/media/tutorials/ipdeny.htm  

How do I get to cPanel?

The easiest way is to go to http://yourdomain.com/cpanel