# The memory\_limit setting in your PHP configuration is lower than the suggested minimum limit of

**URL:** <https://forum.mautic.org/t/the-memory-limit-setting-in-your-php-configuration-is-lower-than-the-suggested-minimum-limit-of/24722>\
**Category:** Product Support\
**Created:** [July 8, 2022, 10:59am UTC](https://forum.mautic.org/t/the-memory-limit-setting-in-your-php-configuration-is-lower-than-the-suggested-minimum-limit-of/24722 "2022-07-08T10:59:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![4lead](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/4lead/32/7029_2.png) [@4lead](https://forum.mautic.org/u/4lead)\
**Post date:** [July 8, 2022, 10:59am UTC](https://forum.mautic.org/t/the-memory-limit-setting-in-your-php-configuration-is-lower-than-the-suggested-minimum-limit-of/24722/1 "2022-07-08T10:59:26Z")

</div>

**Your software**  
My Mautic version is:4.4.0  
My PHP version is: 8.0.20  
My Database type and version is: 10.3.34-MariaDB-0ubuntu0.20.04.1

**Your problem**  
My problem is:The memory\_limit setting in your PHP configuration is lower than the suggested minimum limit of

 ![Screenshot 2022-07-08 123943](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/c/cc969d6b10353428f6fdcd293c41c4e3517898cb.png)

These errors are showing in the log:

Steps I have tried to fix the problem:

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [July 8, 2022, 2:01pm UTC](https://forum.mautic.org/t/the-memory-limit-setting-in-your-php-configuration-is-lower-than-the-suggested-minimum-limit-of/24722/2 "2022-07-08T14:01:32Z")

</div>

Hi there! This warning is telling you that you have some configuration problems with PHP on your server:

- date.timezone is not set
- memory\_limit seems to not be detected correctly

Both of these will need you to check the php.ini file for PHP 8 and:

- set the date.timezone value - eg [datetime - Setting the Timezone for PHP in the php.ini file - Stack Overflow](https://stackoverflow.com/a/32227023/8997363)
- set a sensible memory limit - check the docs: [Working with php.ini resource limits | Mautic](https://docs.mautic.org/en/troubleshooting/working-with-php-ini-resource-limits)

---

<div class="post-metadata">

**Author:** ![4lead](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/4lead/32/7029_2.png) [@4lead](https://forum.mautic.org/u/4lead)\
**Post date:** [July 8, 2022, 3:24pm UTC](https://forum.mautic.org/t/the-memory-limit-setting-in-your-php-configuration-is-lower-than-the-suggested-minimum-limit-of/24722/3 "2022-07-08T15:24:59Z")

</div>

thanks rcheesley  
I don`t know if what I made is correct or not?  
I made upgrade to php from 7.4 to 8.0 for one week  
when I write  
sudo nano /etc/php/7.4/apache2/php.ini  
I found the nano file for php 7.4 and the **date.timezone** setting correctly

and, when write

sudo nano /etc/php/8.0/apache2/php.ini

I found another file for php 8 but the data.timezone not written

so, what is this mean?

is this right to find two files?

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [July 8, 2022, 3:28pm UTC](https://forum.mautic.org/t/the-memory-limit-setting-in-your-php-configuration-is-lower-than-the-suggested-minimum-limit-of/24722/4 "2022-07-08T15:28:26Z")

</div>

Exactly right. Each version of PHP has its own configuration file, as you might be running both at the same time in different contexts on the server.

So it looks like you just need to set your PHP 8 ini file up and you will be good to go 🙂

---

<div class="post-metadata">

**Author:** ![4lead](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/4lead/32/7029_2.png) [@4lead](https://forum.mautic.org/u/4lead)\
**Post date:** [July 8, 2022, 4:17pm UTC](https://forum.mautic.org/t/the-memory-limit-setting-in-your-php-configuration-is-lower-than-the-suggested-minimum-limit-of/24722/5 "2022-07-08T16:17:09Z")

</div>

thanks alot  
it`s okay now  
thanks agian

---

<div class="post-metadata">

**Author:** ![mika](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mika/32/12678_2.png) [@mika](https://forum.mautic.org/u/mika)\
**Post date:** [October 8, 2024, 8:59am UTC](https://forum.mautic.org/t/the-memory-limit-setting-in-your-php-configuration-is-lower-than-the-suggested-minimum-limit-of/24722/8 "2024-10-08T08:59:20Z")

</div>

What is the current memory limit recommendation? I found this post through Google while seeing the message in Mautic 5.1. According to PHP Info my limit is set to 256M.

Is 512M the recommended limit for Mautic 5.1 production? I found this page while looking for something else: [https://contribute.mautic.org/contributing-to-mautic/developer/local-environment-setup](https://contribute.mautic.org/contributing-to-mautic/developer/local-environment-setup)
