# The PHP memory limit is below the recommended value of 512MB

**URL:** <https://help.nextcloud.com/t/the-php-memory-limit-is-below-the-recommended-value-of-512mb/42719>\
**Category:** ℹ️ Support\
**Tags:** nc14, php\
**Created:** [December 7, 2018, 3:48am UTC](https://help.nextcloud.com/t/the-php-memory-limit-is-below-the-recommended-value-of-512mb/42719 "2018-12-07T03:48:37Z")\
**Posts on this page:** 1\
**Showing post:** 21

<div class="post-metadata">

**Author:** ![timetrax](https://help.nextcloud.com/letter_avatar/timetrax/32/5_5575768a8748004e209b776fc1b2916d.png) [@timetrax](https://help.nextcloud.com/u/timetrax)\
**Post date:** [May 21, 2019, 8:48pm UTC](https://help.nextcloud.com/t/the-php-memory-limit-is-below-the-recommended-value-of-512mb/42719/21 "2019-05-21T20:48:43Z")

</div>

I am using php-fpm, so what helped was:  
modifying the .user.ini in your nextcloud install directory.  
append:

upload\_max\_filesize=10G  
post\_max\_size=10G  
memory\_limit=512M

of course you should adapt the values to fit your need.  
afterwards restart your php fpm service and your web server service:  
e.g.: sudo service php7.2-fpm restart && sudo service ngxin restart

---

_[View the full topic](https://help.nextcloud.com/t/the-php-memory-limit-is-below-the-recommended-value-of-512mb/42719)._
