Increasing PHP Memory

If you run a web application (for example wordpress) and you're seeing memory exhausted errors, this is often down to PHP Memory Limit.

You can change this in your web hosting panel. Here's how:

  1. Login to cPanel Control Panel
  2. Scroll to the Software Section
  3. Select Select PHP Version
  4. Click the Switch to PHP Options link on the right
  5. Look for memory_limit in the list. You will find this is probably set to 64M or 128M
  6. Click on the current value and select a new one. 256M should do it. If you do select any higher, it won't matter as the server is configured to only allow a max of 256M
  7. Click Apply. Click Save at the bottom of the screen
  8. Job done

If you are using Wordpress, you can also set this by adding the following to your wp-config.php file:

define('WP_MEMORY_LIMIT', '256M');

That shoudl fix it.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Changing the PHP Version on a Domain

Your account comes with a number of different PHP handlers - from 5.6 to 7.2. Changing these is...

Adding and Removing PHP Modules

If you run a web application (for example wordpress) and something you have installed is saying...

500 or 403 Errors

When a web browser shows either a 503, 500 or 403 message it means that something went wrong when...

My Website Won't Load

If your website won't load after installing, updating or making additions you'll need to find out...

Upload Limit Exceeded

If you see this message in WordPress or another application, it means the upload limit set in...