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:03] – [Optimized PHP-FPM Configuration] Júne Parkos_nextcloud [2025/04/14 08:48] (current) – [Edit - Panel] Júne Park
Line 144: Line 144:
 Edit ''/etc/php/8.1/fpm/pool.d/www.conf''  Edit ''/etc/php/8.1/fpm/pool.d/www.conf'' 
  
 +<accordion> 
 <code ini>  <code ini> 
 request_terminate_timeout = 300 request_terminate_timeout = 300
Line 153: Line 154:
  
 ---- ----
 +
 Optimal configuration for ''/etc/php/8.2/fpm/conf.d/10-opcache.ini ''  Optimal configuration for ''/etc/php/8.2/fpm/conf.d/10-opcache.ini '' 
  
 +<panel title="Optimal configuration for 10-opcache.ini">
 <code ini>  <code ini> 
 ; configuration for php opcache module ; configuration for php opcache module
Line 185: Line 188:
 ; ;
 opcache.interned_strings_buffer = 16 opcache.interned_strings_buffer = 16
 +opcache.memory_consumption = 256
 </code>  </code> 
 +</panel>
 +</accordion> 
 +
 +
 +----
 ==== Nextcloud-Specific Tweaks ====  ==== Nextcloud-Specific Tweaks ==== 
  
Line 271: Line 280:
  
 ---- ----
 +===== Alter datadirectory after installation ===== 
 +
 +<code ini> 
 +ncdir='/path/to/nextcloud'
 +olddata='/old/path/to/data'
 +newdata='/new/path/to/data'
 +</code> 
 +
 +Turn maintenance mode on 
 +
 +<code bash> 
 +sudo -u www-data php "$ncdir/occ" maintenance:mode --on
 +</code> 
 +
 +Move / Copy datadirectory for your purpose. 
 +
 +Change ''datadirectory'' value in ''.../config/config.php'' 
 +
 +<code bash> 
 +sudo sed -i "s|$olddata|$newdata|" "$ncdir/config/config.php"
 +</code> 
 +
 +Before change database dataset, backup database for your safety. 
 +
 +Adjust ''oc_storages'' database table to reflect the new data folder location. 
 +
 +<code mysql> 
 +mysql -u"$dbuser" -p"$dbpass" -e "update $dbname.oc_storages set id='local::$newdata/' where id='local::$olddata/';"
 +</code> 
 +
 +----
 +
 ===== Solved Problems =====  ===== Solved Problems ===== 
  
  • os_nextcloud.1744617804
  • Last modified: 2025/04/14 08:03
  • by Júne Park