Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| os_nextcloud [2025/03/18 02:32] – [Required packages] Júne Park | os_nextcloud [2025/04/14 08:48] (current) – [Edit - Panel] Júne Park | ||
|---|---|---|---|
| Line 142: | Line 142: | ||
| === Additional PHP-FPM Settings === | === Additional PHP-FPM Settings === | ||
| + | Edit ''/ | ||
| + | |||
| + | < | ||
| <code ini> | <code ini> | ||
| request_terminate_timeout = 300 | request_terminate_timeout = 300 | ||
| Line 152: | Line 155: | ||
| ---- | ---- | ||
| + | Optimal configuration for ''/ | ||
| + | |||
| + | <panel title=" | ||
| + | <code ini> | ||
| + | ; configuration for php opcache module | ||
| + | ; priority=10 | ||
| + | opcache.enable = 1 | ||
| + | ; Enable OPcache. | ||
| + | |||
| + | opcache.memory_consumption = 128 | ||
| + | ; Memory for cached scripts (128 MB is a good starting point; increase to 256 MB if RAM allows). | ||
| + | |||
| + | opcache.interned_strings_buffer = 8 | ||
| + | ; Memory for string interning (8 MB is sufficient for most cases). | ||
| + | |||
| + | opcache.max_accelerated_files = 10000 | ||
| + | ; Max number of files to cache; adjust based on Nextcloud’s file count. | ||
| + | |||
| + | opcache.revalidate_freq = 60 | ||
| + | ; How often to check for file changes (60 seconds balances performance and freshness). | ||
| + | |||
| + | opcache.save_comments = 1 | ||
| + | ; Required by Nextcloud to preserve code comments in bytecode. | ||
| + | |||
| + | zend_extension=opcache.so | ||
| + | opcache.enable_cli = 1 | ||
| + | ; Disable for CLI to avoid unnecessary overhead in cron jobs. | ||
| + | ; | ||
| + | opcache.jit_buffer_size = 100M | ||
| + | opcache.jit = tracing | ||
| + | ; " | ||
| + | ; | ||
| + | opcache.interned_strings_buffer = 16 | ||
| + | opcache.memory_consumption = 256 | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | |||
| + | ---- | ||
| ==== Nextcloud-Specific Tweaks ==== | ==== Nextcloud-Specific Tweaks ==== | ||
| Line 237: | Line 280: | ||
| ---- | ---- | ||
| + | ===== Alter datadirectory after installation ===== | ||
| + | |||
| + | <code ini> | ||
| + | ncdir='/ | ||
| + | olddata='/ | ||
| + | newdata='/ | ||
| + | </ | ||
| + | |||
| + | Turn maintenance mode on | ||
| + | |||
| + | <code bash> | ||
| + | sudo -u www-data php " | ||
| + | </ | ||
| + | |||
| + | Move / Copy datadirectory for your purpose. | ||
| + | |||
| + | Change '' | ||
| + | |||
| + | <code bash> | ||
| + | sudo sed -i " | ||
| + | </ | ||
| + | |||
| + | Before change database dataset, backup database for your safety. | ||
| + | |||
| + | Adjust '' | ||
| + | |||
| + | <code mysql> | ||
| + | mysql -u" | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| ===== Solved Problems ===== | ===== Solved Problems ===== | ||