Accredited Registrar Accredited Registrar

Frequently Asked Question

FAQ / Linux Shared Hosting


How to increase wordpress memory and php memory limit ?


Increasing PHP Memory Limit and Wordpress Memory Limit :

when doing something on your site,if you see an error like below means, that PHP has hit the maximum memory limit allocated for your hosting in server.

fatal error: allowed memory size of *** bytes exhausted ...

To resolve this issues,you need to increase the memory limit for your hosting.

Increasing PHP Memory Limit

php memory limit can be increased either through php.ini or .htaccess

Increase Memory Limit by php.ini

memory_limit = 128M

Create php.ini file under your web root directory public_html folder and mention above line in that file

Increasing Memory Limit by .htaccess

You can also increase php memory limit via the .htaccess file. Add the following line into your .htaccess file (if you try to set 128M meory limit):

php_value memory_limit 128M

Increasing WordPress Memory Limit

If you are uploading a file through server via media uploader of wordPress and its gives a memory error means then you need to increase your wordPress memory limit in wordpress config file.

Edit your wp-config.php file and add a below line in that file.

define('WP_MEMORY_LIMIT', '128');

How this faq is helpful:

Not at all
helpful
Not much
helpful
Some what
helpful
Very
helpful
Extremely
helpful

What could be better? (Optional)
X
  Not related to my issue
  Too complicated explanations
  Too much information
  Incorrect information
  Unclear information
  Incomplete information
  Too old information
Do you have any other feedback about this faq ?
1000