Skip to content

Edoardo Vignati 👨🏻‍💻

› Always looking for awesome things

Menu
  • Studies
  • Publications
  • Skills
  • Portfolio
  • Projects
  • Career
  • Blog
  • 🇮🇹 Servizi
Menu

Increase PHP memory in Nextcloud

Posted on 02/11/202103/05/2022 by Edoardo
The PHP memory limit is below the recommended value of 512MB.

This is the typical Nextcloud error that warns you about the low level of php available memory. To increase this parameter you have to edit the php.ini file that could be in different locations depending on the operating system and the version of Apache that you are using. To locate the correct file put the following code into a php file info.php and run it:

<?php echo phpinfo(); ?>

Then find “Loaded Configuration File” as in the image below:

Edit the corresponding file adding or editing the following line:

memory_limit = 512M

Restart Apache (and fpm service if in use like in my case):

sudo service apache2 restart
sudo service php7.4-fpm restart

You can now reload the Nextcloud settings page and the warning should be solved.

For security reasons remember to delete the info.php file!


Buy Me A Coffee


This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

© 2025 Edoardo Vignati 👨🏻‍💻 | Powered by Minimalist Blog WordPress Theme