• aakapoor

    (@aakapoor)


    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

    (@leejosepho)

    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

    (@aakapoor)

    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

    (@leejosepho)

    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

    (@aakapoor)

    i don’t see any such options in mamp

    leejosepho

    (@leejosepho)

    Maybe try one or more of these…
    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.