How to increase memory limit and upload limit from cpanel

Image upload errors in WordPress can be very frustrating!

Some of the most common include memory limit exhaustedimage size exceeds upload limit, and a general http error.

Thankfully the majority of these can be solved without having to make any edits to the code of your website.

Increase PHP Limits

The first step to troubleshooting these errors is to login to cPanel and increase your PHP limits.

You can do this by going to cPanel-> Select PHP Version -> Switch To PHP Options:

Personally, I like to set my memory_limit to at least 128M, my post_max_size to at least 32M, and my upload_max_filesize to at least 32M.

You can go higher, but most of the time these will solve 99% of the upload issues you’re having.

  • increase memory limit and upload limit
  • 108 Users Found This Useful
Was this answer helpful?

Related Articles

How To Add DKIM And SPF Email Authentication Records

If you login to your cPanel -> Authentication (under email) you can easily make sure your...

How to install auto SSL on Linux shared hosting?

Requirements For Free SSL Certificates There are two main requirements for a domain or subdomain...

What Is A Cloudflare Railgun?

  What is Railgun? Railgun is a WAN optimization technology that we offer our hosting...

How to create and connect SSH and SFTP

how to connect to your HostPlax hosting account via SSH and SFTP. First, it’s important to note...

Powered by WHMCompleteSolution