User Tools

Site Tools


wiki:nextcloud:nextcloud_config_php

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
wiki:nextcloud:nextcloud_config_php [2024/04/08 23:10] – created hmattalianowiki:nextcloud:nextcloud_config_php [2024/08/21 14:20] (current) – external edit 127.0.0.1
Line 8: Line 8:
  
 {{ :wiki:nextcloud:nextcloud_php_config02.png?1000 |}} {{ :wiki:nextcloud:nextcloud_php_config02.png?1000 |}}
 +
 +----
  
 ===== Configurer la limite mémoire PHP ===== ===== Configurer la limite mémoire PHP =====
 +
 +Éditer le fichier de configuration PHP.
 +
 +<code>sudo vim /etc/php/X.X/apache2/php.ini</code>
 +
 +Chercher la ligne **memory_limit = 128M**.
 +
 +//(128M étant la valeur de base)//
 +
 +{{ :wiki:nextcloud:nextcloud_php_config03.png?600 |}}
 +
 +Remplacer cette valeur par **512M**.
 +
 +{{ :wiki:nextcloud:nextcloud_php_config04.png?600 |}}
 +
 +Puis relancer le service **Apache2**.
 +
 +<code>sudo systemctl restart apache2.service</code>
 +
 +Rafraîchir l'interface web et vérifier si l'avertissement a disparu.
 +
 +----
  
 ===== Désactiver l'option « output_buffering » PHP ===== ===== Désactiver l'option « output_buffering » PHP =====
 +
 +Éditer le fichier de configuration PHP.
 +
 +<code>sudo vim /etc/php/X.X/apache2/php.ini</code>
 +
 +Chercher la ligne **output_buffering = 4096**.
 +
 +{{:wiki:nextcloud:nextcloud_php_config05.png?600|}}
 +
 +Remplacer cette valeur par **output_buffering = 0**.
 +
 +{{:wiki:nextcloud:nextcloud_php_config06.png?600|}}
 +
 +Puis relancer le service **Apache2**.
 +
 +<code>sudo systemctl restart apache2.service</code>
 +
 +Rafraîchir l'interface web et vérifier si l'avertissement a disparu.
  
wiki/nextcloud/nextcloud_config_php.1712610603.txt.gz · Last modified: 2024/08/21 14:20 (external edit)