Title: Php memory limit not updated
Last modified: August 19, 2016

---

# Php memory limit not updated

 *  [xphunt3r](https://wordpress.org/support/users/xphunt3r/)
 * (@xphunt3r)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/php-memory-limit-not-updated/)
 * Hi
    I am having the problem with php memory limit. I have increased php memory
   to 128MB in php.ini but it is not updated. It still show i have 32MB php memory
   limit. When I check php info file, it shows 128MB. When I check php limit information
   with TPC! Memory Usage plugin, it shows 32MB. I talk to web hosting, they told
   they have increased it to 128MB but why I am still having 32MB. When I add php_value
   memory_limit 16M to .htaccess file it shows 500 server error to my site. My wordpress
   memory limit is set to 128Mb so there is no problem with wp memory.
 * Any help?
 * kind regard

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/php-memory-limit-not-updated/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/php-memory-limit-not-updated/page/2/?output_format=md)

 *  [mykkal](https://wordpress.org/support/users/mykkal/)
 * (@mykkal)
 * [16 years ago](https://wordpress.org/support/topic/php-memory-limit-not-updated/#post-1522184)
 * Did you ever get this resolved? If so… how?
 *  [Chinmoy](https://wordpress.org/support/users/chinmoy/)
 * (@chinmoy)
 * [16 years ago](https://wordpress.org/support/topic/php-memory-limit-not-updated/#post-1522185)
 * write in wp-config.php file following code
    `define("WP_MEMORY_LIMIT", 128);`
 * One more thing that when you updare the php.ini file then need to restart the
   server(apache or IIS); After that you will get updating settings.
 *  [mykkal](https://wordpress.org/support/users/mykkal/)
 * (@mykkal)
 * [16 years ago](https://wordpress.org/support/topic/php-memory-limit-not-updated/#post-1522186)
 * I did and set it to 200mb
 * The max memory available is now 200mb but it still shows the memory limit as 
   90MB! See below. Any ideas…
 * *****************************************************
    Mem: WP 200M Usage 58%
   52.11M Limit 90M *
 * Server: OS Linux Software Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/0.9.8e-
   fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/
   5.2.13 Version 64Bit
    System: PHP 5.2.13 SQL 5.1.48 Build 5.1.48 WordPress: VER
   3.0.1 Max Post 500M Max Upload 500M Debug: State 0 Display 1 Log 0 Script 0 Deprecated
   0
 * SQL Uptime: 0 days, 1 hours, 9 minutes, 49 seconds
 * Default Theme: twentyten (since wp-3.0)
    Allow DB Repair: 0 (since wp-2.9) Auto-
   Save: 0 Interval 60 seconds (since wp-2.5) WP (Hyper – Super – W3 Total) Cache:
   1 (since wp-2.6) Magpie RSS Cache: 1 Age 3600 seconds (since wp-1.5) Post Revisions:
   1 (since wp-2.6) Trash: 0 Empity 30 days (since wp-2.9) Media 0 (wp-3.0?)
 * Need MU~LTI-SITE Version?
 * Legend 0=disabled 1=enabled * PHP or WP
 *  [Reuben](https://wordpress.org/support/users/greuben/)
 * (@greuben)
 * [16 years ago](https://wordpress.org/support/topic/php-memory-limit-not-updated/#post-1522187)
 * Did you restart apache after increasing the PHP limit?
 *  [mykkal](https://wordpress.org/support/users/mykkal/)
 * (@mykkal)
 * [16 years ago](https://wordpress.org/support/topic/php-memory-limit-not-updated/#post-1522188)
 * Sure did… Restarted many times. I think thats why I see the available memory 
   as 200mb. But setting the memory limit in the config file didn’t help.
 *  [Reuben](https://wordpress.org/support/users/greuben/)
 * (@greuben)
 * [16 years ago](https://wordpress.org/support/topic/php-memory-limit-not-updated/#post-1522189)
 * hmm…Just check if you inserted the code correctly in wp-congifg.php file…
    **
   Eg:-** `define('WP_MEMORY_LIMIT','200m');`
 *  [mykkal](https://wordpress.org/support/users/mykkal/)
 * (@mykkal)
 * [16 years ago](https://wordpress.org/support/topic/php-memory-limit-not-updated/#post-1522190)
 * man… this is weird. I actually cut and paste your statement verbatim… Plus I 
   restarted apache from the root account in ssh.
 * `define('WP_MEMORY_LIMIT','200m');`
 * The only difference was the lowercase ‘m’. But… no luck. still says the memory
   limit is 90.
 * I don’t get it? is this cached or in the database somewhere?
 *  [Reuben](https://wordpress.org/support/users/greuben/)
 * (@greuben)
 * [16 years ago](https://wordpress.org/support/topic/php-memory-limit-not-updated/#post-1522191)
 * Where are you adding this code? at the end of the file?
 *  [mykkal](https://wordpress.org/support/users/mykkal/)
 * (@mykkal)
 * [16 years ago](https://wordpress.org/support/topic/php-memory-limit-not-updated/#post-1522192)
 * Hey there… I’m putting it in the config.php file near the end. See below.
 *     ```
       /** WordPress absolute path to the WordPress directory. */
       if ( !defined('ABSPATH') )
       	define('ABSPATH', dirname(__FILE__) . '/');
   
       define('WP_MEMORY_LIMIT','200m');
   
       /** Sets up WordPress vars and included files. */
       require_once(ABSPATH . 'wp-settings.php');
       ```
   
 *  [Reuben](https://wordpress.org/support/users/greuben/)
 * (@greuben)
 * [16 years ago](https://wordpress.org/support/topic/php-memory-limit-not-updated/#post-1522193)
 * clear the cache & deactivate all cache plugins and see if it helps.
    if it doesn’t
   open wp-includes >> default-constants.php and check whether this code exists(
   on line 39) `@ini_set('memory_limit', WP_MEMORY_LIMIT);`
 *  [mykkal](https://wordpress.org/support/users/mykkal/)
 * (@mykkal)
 * [16 years ago](https://wordpress.org/support/topic/php-memory-limit-not-updated/#post-1522194)
 * hey there…
 * `@ini_set('memory_limit', WP_MEMORY_LIMIT);` does exist.
 * I also manually deleted the cache. that must be getting set somewhere. Arggh 
   🙁
 * Site is very slow sometimes.
 *  [Reuben](https://wordpress.org/support/users/greuben/)
 * (@greuben)
 * [16 years ago](https://wordpress.org/support/topic/php-memory-limit-not-updated/#post-1522195)
 * try to change that line and see if it works(also clear cache after changing it)
   `@
   ini_set('memory_limit', '200M');`
 *  [mykkal](https://wordpress.org/support/users/mykkal/)
 * (@mykkal)
 * [16 years ago](https://wordpress.org/support/topic/php-memory-limit-not-updated/#post-1522196)
 * didnt work. man!
 *  [einrad](https://wordpress.org/support/users/einrad/)
 * (@einrad)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/php-memory-limit-not-updated/#post-1522211)
 * I really need help on this too. I tried everything above, but in my case it looks
   like something is keeping it at a memory limit of 32M.
 * Allowed memory size of 33554432 bytes exhausted (tried to allocate 7680 bytes)
   in /home/mysite/public_html/blog/wp-includes/kses.php(550) : runtime-created 
   function
 * My host tried bumping it up to 64M and 80M but the same thing, exhausted at 32M.
   Help!
 *  [Kevin Cristiano](https://wordpress.org/support/users/kcristiano/)
 * (@kcristiano)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/php-memory-limit-not-updated/#post-1522212)
 * Give this Plugin a try: [Memory Bump ](http://wordpress.org/extend/plugins/memory-bump/)

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/php-memory-limit-not-updated/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/php-memory-limit-not-updated/page/2/?output_format=md)

The topic ‘Php memory limit not updated’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [php 5.3](https://wordpress.org/support/topic-tag/php-5-3/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 21 replies
 * 10 participants
 * Last reply from: [smithdoctah](https://wordpress.org/support/users/smithdoctah/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/php-memory-limit-not-updated/page/2/#post-1522226)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
