os_nextcloud

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
os_nextcloud [2025/04/14 08:48] – [Solved Problems] Júne Parkos_nextcloud [2026/05/19 00:57] (current) – [Force Deletion After Exactly 30 Days] Júne Park
Line 7: Line 7:
 <code bash>  <code bash> 
 sudo apt install php8.x php8.x-common php8.x-gmp php8.x-mbstring php8.x-readline php8.x-xmlrpc php8.x-bcmath php8.x-curl php8.x-igbinary php8.x-mcrypt php8.x-redis php8.x-zip php8.x-bz2 php8.x-fpm php8.x-imagick php8.x-mysql php8.x-soap php8.x-cli php8.x-gd php8.x-intl php8.x-opcache php8.x-xml     sudo apt install php8.x php8.x-common php8.x-gmp php8.x-mbstring php8.x-readline php8.x-xmlrpc php8.x-bcmath php8.x-curl php8.x-igbinary php8.x-mcrypt php8.x-redis php8.x-zip php8.x-bz2 php8.x-fpm php8.x-imagick php8.x-mysql php8.x-soap php8.x-cli php8.x-gd php8.x-intl php8.x-opcache php8.x-xml    
 +</code> 
 +
 +<code bash> 
 +sudo apt install php8.3-bcmath php8.3-common php8.3-gd php8.3-imagick php8.3-mcrypt php8.3-readline php8.3-xml php8.3 php8.3-bz2 php8.3-curl php8.3-gmp php8.3-intl php8.3-mysql php8.3-redis php8.3-xmlrpc php8.3-apcu php8.3-cli php8.3-fpm php8.3-igbinary php8.3-mbstring php8.3-opcache php8.3-soap php8.3-zip
 </code>  </code> 
  
Line 188: Line 192:
 ; ;
 opcache.interned_strings_buffer = 16 opcache.interned_strings_buffer = 16
 +opcache.memory_consumption = 256
 </code>  </code> 
 </panel> </panel>
Line 381: Line 386:
  
 </code> </code>
 +
 +----
 +
 +==== Force Deletion After Exactly 30 Days ==== 
 +
 +Locate and open your Nextcloud config.php file (typically found in ''/path/to/nextcloud/config/config.php'').
 +
 +Add or modify the following line inside the ''$CONFIG = array'' ( block: 
 +
 +<code php> 
 +'trashbin_retention_obligation' => '30, 30',
 +</code> 
 +
 +//(Setting both a minimum and maximum of 30 days guarantees the files will be purged exactly on that day).//
 +
 +Ensure your Nextcloud background jobs are running. To force the deletion of already expired files from the command line immediately, run: 
 +
 +<code bash> 
 +sudo -u www-data php /path/to/nextcloud/occ trashbin:expire
 +</code>
 +
  
 ---- ----
  • os_nextcloud.1744620492
  • Last modified: 2025/04/14 08:48
  • by Júne Park