Do you need to increase the memory limit in WordPress? Getting an error about memory Exhausted? The memory limit is one of the most common WordPress errors as the default limit of memory in WordPress is only set to 64mb! But there's good news! The Memory Exhausted error is one of the easiest to fix by increasing the default memory limit in WordPress.
What is WordPressMemory Exhausted Error?
WordPress is written in PHP, a server-side programming language. PHP has a default memory limit, but to get this limit beyond 64MB you will need to update the WordPressmemory limit. This limit is important to allow your WordPressplugins and themes to function properly. When your installation of WordPress requires more than the default 64MB of memory, You will see the following error:
Fatal error: Allowed memory size of 3345435452 bytes exhausted (tried to allocate 2348617 bytes) in /home/website/public_html/wp-includes/plugin.php on line xxx
How To Increase The Memory Limit in WordPress
To increase the default WordPressmemory limit, you will need to find and edit your wp-config.php file. With our WordPress hosting, you can login to your cPanel control panel and use the file manager to edit the file directly. You can also use FTP to connect to your site and go to the public_html folder and download the file, edit and upload. When editing the wp-config.php file, just after the line
‘That’s all, stop editing! Happy blogging.’
Add the following code:
define( 'WP_MEMORY_LIMIT', '256M' );
This code tells WordPress it can use a PHPmemory limit of 256MB which gives much more headroom than the WordPress default memory limit of 64MB. Once this code has been added and saved/uploaded you can instantly try the WordPress site again and the memory exhausted error should stop appearing. Note: If this coding fix does not work for you, then this means your web hosting service provider does not allow WordPress to increase PHPmemory limit. You will need to ask your web hosting provider to increase your PHPmemory limit manually.
You can create an email email filters through your cPanel control panel which is where you manage your hosting account. Email filters can be set up to target specific word, subject, from or to. Emails that are filtered out can be sent to a different email, deleted, delivered to a...
If you find your cPanel disk space filling up, or an email address has hit its disk space quota, cPanel has a helpful built in Email Disk Usage tool. This will provide you with a simple to understand breakdown of how much disk space each folder for a particular email...
Although WHM will normally automatically keep itself up to date, you may want to manually check for server updates / push through an update that is pending, or it may be that you have automatic updates switched off on your cPanel server. In this guide we will show you how...