# Please increase your php memory limit

**URL:** <https://community.localwp.com/t/please-increase-your-php-memory-limit/50076>\
**Category:** Support\
**Created:** [May 8, 2025, 11:24am UTC](https://community.localwp.com/t/please-increase-your-php-memory-limit/50076 "2025-05-08T11:24:58Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![jupinder](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@jupinder](https://community.localwp.com/u/jupinder)\
**Post date:** [May 8, 2025, 11:24am UTC](https://community.localwp.com/t/please-increase-your-php-memory-limit/50076/1 "2025-05-08T11:24:58Z")

</div>

### What issue or error are you experiencing?

Im trying to import a spreadsheet and it keeps saying increase your php mempry limit. I have done this and increased to 256M? what else can i do? im at a loss?

* * *

### What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

* * *

### System Details

- **Local Version:**

- **Operating System (OS) and OS version:**

* * *

### Local Logs

Attach your Local Logs here ([Help Doc - Retrieving Local’s Log](https://localwp.com/help-docs/troubleshooting/retrieving-locals-log-file/))

* * *

_ **Security Reminder** _  
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [May 8, 2025, 12:56pm UTC](https://community.localwp.com/t/please-increase-your-php-memory-limit/50076/2 "2025-05-08T12:56:45Z")

</div>

Hi @jupinder! We have some detailed steps on our performance guide (at the bottom) for adjusting PHP resource limits. Once you edit the value and save it, you’ll want to make sure to Stop and reStart your Local site so that the changes can compile.

> **[Troubleshoot: Performance Issues](https://localwp.com/help-docs/troubleshooting/troubleshooting-performance-issues-in-local/)**
>
> Performance issues can be hard to fix! The best thing to do is zero in on where the slowness is occurring. Here are some suggestions to help set you up for success and ensure things are running as…

---

<div class="post-metadata">

**Author:** ![jupinder](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@jupinder](https://community.localwp.com/u/jupinder)\
**Post date:** [May 8, 2025, 1:30pm UTC](https://community.localwp.com/t/please-increase-your-php-memory-limit/50076/3 "2025-05-08T13:30:42Z")

</div>

There are no slowness issues when im uploading excel sheets it is coming up with error to say that increase your php memory limit. however i have done this already and increased to the max but its still not working, and preventing me from up loading excel sheets

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [May 8, 2025, 1:34pm UTC](https://community.localwp.com/t/please-increase-your-php-memory-limit/50076/4 "2025-05-08T13:34:26Z")

</div>

Understood @jupinder I was just trying to direct you to this section:

> Adjusting PHP settings like memory\_limit, max\_execution\_time and max\_input\_vars may improve performance. These values can be edited in the php.ini.hbs file within the site’s conf/php/ folder. After making any adjustments, be sure to stop the site and re-start it so that Local can compile and use those new settings.

Are you adjusting the memory in your `php.ini.hbs` file? If not can you give that a try and then be sure to Stop and Restart your site after?

---

<div class="post-metadata">

**Author:** ![jupinder](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@jupinder](https://community.localwp.com/u/jupinder)\
**Post date:** [May 9, 2025, 9:40am UTC](https://community.localwp.com/t/please-increase-your-php-memory-limit/50076/5 "2025-05-09T09:40:56Z")

</div>

I have updated the php file but its still not working?

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [May 12, 2025, 1:34pm UTC](https://community.localwp.com/t/please-increase-your-php-memory-limit/50076/6 "2025-05-12T13:34:11Z")

</div>

Could you send a screenshot of what you updated?

And you Stopped and Restarted the site after saving the file change?

---

<div class="post-metadata">

**Author:** ![wendybreaksout](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/wendybreaksout/32/19078_2.png) [@wendybreaksout](https://community.localwp.com/u/wendybreaksout)\
**Post date:** [June 20, 2025, 1:43am UTC](https://community.localwp.com/t/please-increase-your-php-memory-limit/50076/7 "2025-06-20T01:43:54Z")

</div>

This is so frustrating. I’ve edited the php.ini.hbs file in order to increase my memory\_limti to 512M. I’ve tried editing the compiled file in the Library/…/run folder. I even tried to force a recompile of that directory by removing it. No matter what, I get get 256M. Ahhh! This so much fun when you’re trying hit deadline. R$#WR#RQ!!! Please advise.  
\

---

<div class="post-metadata">

**Author:** ![wendybreaksout](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/wendybreaksout/32/19078_2.png) [@wendybreaksout](https://community.localwp.com/u/wendybreaksout)\
**Post date:** [June 20, 2025, 1:46am UTC](https://community.localwp.com/t/please-increase-your-php-memory-limit/50076/8 "2025-06-20T01:46:26Z")

</div>

I did restart the site as well as the app.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [June 20, 2025, 1:21pm UTC](https://community.localwp.com/t/please-increase-your-php-memory-limit/50076/9 "2025-06-20T13:21:10Z")

</div>

I just tested this on my end. To verify, I clicked on Site Folder and then navigated to `Conf` \> `PHP` \> and then opened my `php.ini.hbs` file in Sublime Text editor, updated my memory limit to 512mb, and saved. Then I stopped and started my Local site again and logged in to check if the memory limit was updated in the Site Health section.

 ![Screenshot 2025-06-20 at 8.19.32 AM](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/2/7/27ee42c6a390139c256931caf3551866b38f69b7.png)

 ![Screenshot 2025-06-20 at 8.17.59 AM](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/d/c/dcb84569a03df26533f7f4414f0ce043bb9758e2.png)

Does all of that line up with what you tried @wendybreaksout?

---

<div class="post-metadata">

**Author:** ![wendybreaksout](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/wendybreaksout/32/19078_2.png) [@wendybreaksout](https://community.localwp.com/u/wendybreaksout)\
**Post date:** [June 20, 2025, 3:56pm UTC](https://community.localwp.com/t/please-increase-your-php-memory-limit/50076/10 "2025-06-20T15:56:12Z")

</div>

Thank you. That follows what I did. I used a different editor and checked to see if the configuration was recognized via the phpinfo() output generated by the “Details” link next to the PHP Version in the site Overview tab. The loaded configution file is listed as:

/Users/wendyemerson/Library/Application Support/Local/run/JayW-ngAK/conf/php/php.ini

I tried editing that directly. Evidentally, the file is rewritten when restarting the site. My change is set back to 256M. (Dog chasing tail emoji goes here).

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [June 20, 2025, 4:46pm UTC](https://community.localwp.com/t/please-increase-your-php-memory-limit/50076/11 "2025-06-20T16:46:28Z")

</div>

Can you share your OS, Local version and logs here @wendybreaksout? We can take a look and see if anything is amiss.

Out of curiosity have you tried this on multiple sites? If you spin up a new, blank site in Local does the behavior persist if you try to upgrade the memory there?

---

<div class="post-metadata">

**Author:** ![wendybreaksout](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/wendybreaksout/32/19078_2.png) [@wendybreaksout](https://community.localwp.com/u/wendybreaksout)\
**Post date:** [June 20, 2025, 10:43pm UTC](https://community.localwp.com/t/please-increase-your-php-memory-limit/50076/12 "2025-06-20T22:43:11Z")

</div>

I tried another site and it worked. When I went back and checked the one I’m having trouble with by going to the command line to see things without all the clutter, I saw the php directory. I was modifying the config file in the php-8.2.27 which I thought was the active configuration. Anyway, sorry. Problem solved. 🤦‍♀️ Thank you for your help.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [June 23, 2025, 12:48pm UTC](https://community.localwp.com/t/please-increase-your-php-memory-limit/50076/13 "2025-06-23T12:48:30Z")

</div>

No problem @wendybreaksout! I’m glad you were able to get it sorted. Happy Developing 💚

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [June 25, 2025, 12:48am UTC](https://community.localwp.com/t/please-increase-your-php-memory-limit/50076/14 "2025-06-25T00:48:36Z")

</div>

Closed on June 25, 2025, 12:48am UTC

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
