Title: Cannot change PHP Memory Limit
Last modified: August 30, 2016

---

# Cannot change PHP Memory Limit

 *  [aakapoor](https://wordpress.org/support/users/aakapoor/)
 * (@aakapoor)
 * [11 years ago](https://wordpress.org/support/topic/cannot-change-php-memory-limit/)
 * I have set up MAMP and installed my Theme with no problem. The issue is that 
   the system status says that the memory limit is set for 40M and recommends that
   I increase it to 256M. I have gone through the steps on how to do this, but it
   just doesnt work! I have done the following:
 * 1. added the function to wp-config.php
 * 2. changed the value for memory_limit to 128M and 256M in php.ini in the wordpress
   folder
 * 3. created a new php.ini file in my root folder with the funciton to set memory_limit
   to 128M & 256M
 * 4. modified .htaccess to change memory_limit to 128M and 256M
 * 5. tried to set ini value for memory limit to 128M and 256M from wp-config.php
 * None of these changes the value and the system status still shows the warning
   and 40M.
 * If i change the value in wp-includes default-constants.php, then everything goes
   to hell and localhost does not load. Just a white screen and even changing the
   values back wont let it work. I have to delete that default-constants.php file
   and copy paste the original from my WP download back in, and then it works again
   with the warning of a memory limit of 40M
 * Please help! i dont know what to do. I have tried each of those steps individually
   and then finally collectively…
 * I am can attach screenshots of all of the files for your reference.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [leejosepho](https://wordpress.org/support/users/leejosepho/)
 * (@leejosepho)
 * [11 years ago](https://wordpress.org/support/topic/cannot-change-php-memory-limit/#post-6182523)
 * > I have set up MAMP…[and] the system status says that the memory limit is set
   > for 40M and recommends that I increase it to 256M.
 * For myself in Xampp, I have had to change its .ini settings that are in effect
   before WordPress is even loaded.
 *  Thread Starter [aakapoor](https://wordpress.org/support/users/aakapoor/)
 * (@aakapoor)
 * [11 years ago](https://wordpress.org/support/topic/cannot-change-php-memory-limit/#post-6182530)
 * I did change the php.ini file and restart WP and I also created a new php.ini
   file in the root directory of my WP install and even that did not help!
 *  [leejosepho](https://wordpress.org/support/users/leejosepho/)
 * (@leejosepho)
 * [11 years ago](https://wordpress.org/support/topic/cannot-change-php-memory-limit/#post-6182533)
 * The changes I am talking about would be in MAMP files and not in the WordPress
   directory. In Xampp, the file I edited is ‘my.ini’ and it is accessible from 
   the Xampp Control Panel.
 *  Thread Starter [aakapoor](https://wordpress.org/support/users/aakapoor/)
 * (@aakapoor)
 * [11 years ago](https://wordpress.org/support/topic/cannot-change-php-memory-limit/#post-6182550)
 * i don’t see any such options in mamp
 *  [leejosepho](https://wordpress.org/support/users/leejosepho/)
 * (@leejosepho)
 * [11 years ago](https://wordpress.org/support/topic/cannot-change-php-memory-limit/#post-6182555)
 * Maybe try one or more of these…
    [https://www.google.com/search?q=mamp+memory+limit](https://www.google.com/search?q=mamp+memory+limit)

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Cannot change PHP Memory Limit’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [leejosepho](https://wordpress.org/support/users/leejosepho/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/cannot-change-php-memory-limit/#post-6182555)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
