Skip to main content
NextcloudAIO
NextcloudAIO Partner Disclosure: Outbound /go/ links marked rel="sponsored" may earn a referral commission at zero extra cost (Partner Disclosure).
Stack Matrix Hub (11)

Nextcloud Core + Apache/PHP + Postgres 16 + Redis Baseline

Size php-custom.ini memory_limit, pm.max_children, Postgres shared_buffers, and Redis file locking for 5-250 team sync seats.

1,280 MB base · +18 MB/seat · Redis oc_file_locks

Nextcloud Core + Apache/PHP + Postgres 16 + Redis Baseline
Telemetry verified 2026-11-15 by TeamDrive Storage.

Why Core AIO Pairs Apache/PHP-FPM with Postgres 16 & Redis

Nextcloud All-in-One deploys Apache + PHP-FPM behind 127.0.0.1:11000 alongside dedicated PostgreSQL 16 and Redis 7 containers. Redis absorbs 100% of transactional oc_file_locks traffic so desktop sync clients never block Postgres connections during concurrent folder updates.

Sizing PHP-FPM Workers and OPcache JIT

Reserve 18 MB per active team seat above the 1,280 MB core baseline. Pin NEXTCLOUD_MEMORY_LIMIT to 512M for teams under 120 seats (1024M above 120 seats) and allocate 192-256 MB to opcache.memory_consumption with opcache.jit=1255.

Measured Thresholds & Configuration

Team SeatsCore + DB + Redis RAMpm.max_childrenOPcache / PHP Limit
5-25 Seats1.4 - 1.7 GB16 workers192M / 512M
45-80 Seats2.1 - 2.8 GB30-48 workers256M / 512M
120-250 Seats3.5 - 6.0 GB72-140 workers256M / 1024M
1,280 MB base · +18 MB/seat · Redis oc_file_locks InterServer ($6/TB)UltaHost VDS ($37.50)