Freelance Web Designer in Dubai & SEO Expert in Kerala
01 / 01

Fatal error: WordPress Memory Exhausted

Fatal error: WordPress Memory Exhausted

Here you have 5 different methods for setting the PHP memory limit. If you have any difficulties with the PHP memory limit in WordPress you can use these methods. It will work on the GoDaddy, Hostgator and all hosting services

1. Set the PHP value in the index.php file of the installation

ini_set('memory_limit', '256M');

2. Create a php.ini file in the home directory and set the below values

memory_limit = 256M
<IfModule mod_php5.c>
 php_value memory_limit 256M
 </IfModule>

3. Create .htaccess file in the home directory or copy the below codes to .htaccess file

upload_max_filesize = 1000M
 post_max_size = 2000M
 memory_limit = 256M
 file_uploads = On
 max_execution_time = 180

4. setting up the .user.ini in your website root directory.

memory_limit = 256M

5. Setting up the memory limit in the PHP script.

ini_set('memory_limit', '256M');
by anvar
Published : May , 18

Post a comment

Your email address will not be published. Required fields are marked *

Categories

WhatsApp Logo Chat