HostSlim

How do I increase the PHP upload limit or memory limit?

Errors such as "The uploaded file exceeds the upload_max_filesize directive" or "Allowed memory size exhausted" mean a PHP limit is too low for your…

  • Shared Hosting

Errors such as "The uploaded file exceeds the upload_max_filesize directive" or "Allowed memory size exhausted" mean a PHP limit is too low for your website.

  1. Log in to your hosting control panel.
  2. Open the PHP settings (PHP selector / options).
  3. Increase values such as upload_max_filesize, post_max_size and memory_limit within the limits of your package.
  4. Save and reload your website.

Can't find these settings or need higher limits than your package allows? Open a ticket and tell us which values you need and why.

More from the knowledge base

Need something that is not on the list?

Custom builds, private VLANs, BGP sessions, multi-rack deployments. Tell us what you are running and an engineer replies, usually within the hour.