Nextcloud Installation & Optimization Guide#
Antigracity-cli chat during last update: agy –conversation=208181d3-885d-4b18-8544-403c7747e6d1
1. PHP Configuration#
Ensure PHP 8.3 is tuned for Nextcloud performance.
Edit php.ini#
nano /etc/php/8.3/apache2/php.iniModify these values (remove the ; prefix):
memory_limit = 512M
upload_max_filesize = 200M
max_execution_time = 360
post_max_size = 200M
date.timezone = America/Toronto
; OPcache Settings
opcache.enable=1
opcache.interned_strings_buffer=16
opcache.max_accelerated_files=10000
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=1Enable Apache Modules & APCu#
a2enmod dir env headers mime rewrite sslsystemctl restart apache2# Enable CLI for memory caching
nano /etc/php/8.3/mods-available/apcu.iniAdd: