<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Increase Nextcloud PHP memory limit]]></title><description><![CDATA[<p dir="auto">I'm getting an error <code>Apr 12 16:27:12 [Tue Apr 12 23:27:12.433970 2022] [php7:error] [pid 285] [client 172.18.0.1:57230] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 33554440 bytes) in /app/data/apps/dav/lib/CardDAV/CardDavBackend.php on line 996</code>, and I'm trying to increase the memory limit to 1025M.</p>
<p dir="auto">So far I've added</p>
<ul>
<li><code>'memory_limit' =&gt; '1024M'</code> to <code>/app/data/config/config.php</code>,</li>
<li><code>memory_limit=1024M</code> to <code>/app/data/.user.ini</code></li>
<li><code>memory_limit=1024M</code> to <code>/app/data/php.ini</code></li>
<li><code>PHP_MEMORY_LIMIT=1024M</code> to <code>/app/data/config.env</code></li>
</ul>
<p dir="auto">But none of these seems to have worked. Any ideas where I should be able to make this adjustment? The server itself is already allocated to up to 1.5Gb, and the error seems to be PHP related, but I'm not sure where to set this.</p>
]]></description><link>https://forum.cloudron.io/topic/6813/increase-nextcloud-php-memory-limit</link><generator>RSS for Node</generator><lastBuildDate>Wed, 10 Jun 2026 16:12:11 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/6813.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 12 Apr 2022 23:33:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Increase Nextcloud PHP memory limit on Thu, 14 Apr 2022 20:47:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/iamthefij" aria-label="Profile: iamthefij">@<bdi>iamthefij</bdi></a> Is it still the same memory limit error? I would start out by disabling plugins. Do you use any ?</p>
]]></description><link>https://forum.cloudron.io/post/46179</link><guid isPermaLink="true">https://forum.cloudron.io/post/46179</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Thu, 14 Apr 2022 20:47:04 GMT</pubDate></item><item><title><![CDATA[Reply to Increase Nextcloud PHP memory limit on Thu, 14 Apr 2022 19:19:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/iamthefij" aria-label="Profile: iamthefij">@<bdi>iamthefij</bdi></a> I should say... it worked to increase the limit. My contacts still don't load.</p>
]]></description><link>https://forum.cloudron.io/post/46176</link><guid isPermaLink="true">https://forum.cloudron.io/post/46176</guid><dc:creator><![CDATA[iamthefij]]></dc:creator><pubDate>Thu, 14 Apr 2022 19:19:55 GMT</pubDate></item><item><title><![CDATA[Reply to Increase Nextcloud PHP memory limit on Thu, 14 Apr 2022 19:18:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> said in <a href="/post/46174">Increase Nextcloud PHP memory limit</a>:</p>
<blockquote>
<p dir="auto">/app/data/php.ini</p>
</blockquote>
<p dir="auto">I undid everything I set, but then I grepped through <code>/app/data</code> and found <code>php_value memory_limit 512M</code> in <code>/app/data/htaccess</code>. It's not present in <code>/app/data/.htaccess</code> though. I'm confused as to why both of these exist in the first place.</p>
<p dir="auto">But anyway, I commented out the lines in <code>/app/data/htaccess</code>, restarted and it looks like it worked!</p>
<p dir="auto">Thanks for the help.</p>
]]></description><link>https://forum.cloudron.io/post/46175</link><guid isPermaLink="true">https://forum.cloudron.io/post/46175</guid><dc:creator><![CDATA[iamthefij]]></dc:creator><pubDate>Thu, 14 Apr 2022 19:18:01 GMT</pubDate></item><item><title><![CDATA[Reply to Increase Nextcloud PHP memory limit on Thu, 14 Apr 2022 19:10:14 GMT]]></title><description><![CDATA[<p dir="auto">maybe you have some memory_limit leftover in some other config file. The only place to have it should be in <code>/app/data/php.ini</code></p>
]]></description><link>https://forum.cloudron.io/post/46174</link><guid isPermaLink="true">https://forum.cloudron.io/post/46174</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Thu, 14 Apr 2022 19:10:14 GMT</pubDate></item><item><title><![CDATA[Reply to Increase Nextcloud PHP memory limit on Thu, 14 Apr 2022 19:07:05 GMT]]></title><description><![CDATA[<p dir="auto">I know very little about PHP, so I'm running low on things to try. I've tried grepping through <code>/app/code</code> for other places where <code>memory_limit</code> is referenced, and I don't see anything else limiting it.</p>
]]></description><link>https://forum.cloudron.io/post/46173</link><guid isPermaLink="true">https://forum.cloudron.io/post/46173</guid><dc:creator><![CDATA[iamthefij]]></dc:creator><pubDate>Thu, 14 Apr 2022 19:07:05 GMT</pubDate></item><item><title><![CDATA[Reply to Increase Nextcloud PHP memory limit on Thu, 14 Apr 2022 18:31:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> deleted and restarted. Nextcloud still says 512MB but <code>php -i</code> shows <code>memory_limit =&gt; 1024M =&gt; 1024M</code>.</p>
]]></description><link>https://forum.cloudron.io/post/46172</link><guid isPermaLink="true">https://forum.cloudron.io/post/46172</guid><dc:creator><![CDATA[iamthefij]]></dc:creator><pubDate>Thu, 14 Apr 2022 18:31:59 GMT</pubDate></item><item><title><![CDATA[Reply to Increase Nextcloud PHP memory limit on Wed, 13 Apr 2022 22:13:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/iamthefij" aria-label="Profile: iamthefij">@<bdi>iamthefij</bdi></a> Interesting. The Cloudron package does not create it and AFAIK neither does nextcloud itself. But yes, you can delete that file entirely.</p>
]]></description><link>https://forum.cloudron.io/post/46139</link><guid isPermaLink="true">https://forum.cloudron.io/post/46139</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Wed, 13 Apr 2022 22:13:50 GMT</pubDate></item><item><title><![CDATA[Reply to Increase Nextcloud PHP memory limit on Wed, 13 Apr 2022 17:50:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> I had updated the <code>.user.ini</code> because it had previously said <code>memory_limit=512M</code>, so that's why I changed it. Should I remove it or change it back? I've already removed it from everywhere else.</p>
]]></description><link>https://forum.cloudron.io/post/46132</link><guid isPermaLink="true">https://forum.cloudron.io/post/46132</guid><dc:creator><![CDATA[iamthefij]]></dc:creator><pubDate>Wed, 13 Apr 2022 17:50:12 GMT</pubDate></item><item><title><![CDATA[Reply to Increase Nextcloud PHP memory limit on Wed, 13 Apr 2022 16:48:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/iamthefij" aria-label="Profile: iamthefij">@<bdi>iamthefij</bdi></a> Interesting. So, all I did was to add <code>memory_limit=1024M</code> in <code>/app/data/php.ini</code>.</p>
<p dir="auto"><img src="/assets/uploads/files/1649868378747-78aa3c6f-203b-4a70-8bb9-e0b63a05565d-image-resized.png" alt="78aa3c6f-203b-4a70-8bb9-e0b63a05565d-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">And then, after a restart:</p>
<p dir="auto"><img src="/assets/uploads/files/1649868399899-b5cead64-2738-4076-b14f-00dd28794992-image.png" alt="b5cead64-2738-4076-b14f-00dd28794992-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Maybe you can remove all the other changes? Can you check by removing all other configs other than this one?</p>
]]></description><link>https://forum.cloudron.io/post/46122</link><guid isPermaLink="true">https://forum.cloudron.io/post/46122</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Wed, 13 Apr 2022 16:48:47 GMT</pubDate></item><item><title><![CDATA[Reply to Increase Nextcloud PHP memory limit on Wed, 13 Apr 2022 16:29:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> I've restarted the app with all those values set and Settings &gt; System still shows <code> Memory Limit: 512 MB</code></p>
]]></description><link>https://forum.cloudron.io/post/46120</link><guid isPermaLink="true">https://forum.cloudron.io/post/46120</guid><dc:creator><![CDATA[iamthefij]]></dc:creator><pubDate>Wed, 13 Apr 2022 16:29:43 GMT</pubDate></item><item><title><![CDATA[Reply to Increase Nextcloud PHP memory limit on Wed, 13 Apr 2022 15:45:26 GMT]]></title><description><![CDATA[<p dir="auto">The app restart is important for apache to pick up the changes.</p>
]]></description><link>https://forum.cloudron.io/post/46114</link><guid isPermaLink="true">https://forum.cloudron.io/post/46114</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Wed, 13 Apr 2022 15:45:26 GMT</pubDate></item><item><title><![CDATA[Reply to Increase Nextcloud PHP memory limit on Wed, 13 Apr 2022 12:27:11 GMT]]></title><description><![CDATA[<p dir="auto">So I have tried this now and setting the <code>memory_limit</code> in <code>/app/data/php.ini</code> works. But the app needs to be restarted afterwards!</p>
]]></description><link>https://forum.cloudron.io/post/46104</link><guid isPermaLink="true">https://forum.cloudron.io/post/46104</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Wed, 13 Apr 2022 12:27:11 GMT</pubDate></item><item><title><![CDATA[Reply to Increase Nextcloud PHP memory limit on Wed, 13 Apr 2022 12:12:01 GMT]]></title><description><![CDATA[<p dir="auto">Looks like you are setting it in the correct places. Adjusting <code>/app/data/php.ini</code> or <code>/app/data/config/config.php</code> might be sufficient though. Can you take a look at Nextcloud's Settings -&gt; System on what it displays as the PHP memory limit?</p>
]]></description><link>https://forum.cloudron.io/post/46101</link><guid isPermaLink="true">https://forum.cloudron.io/post/46101</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Wed, 13 Apr 2022 12:12:01 GMT</pubDate></item></channel></rss>