Need to migrate your e-mails to a new server? Free and paid versions of our online tool available.
Hero Image

Server Setup Guides

Tune PHP OPcache on AlmaLinux 9

Tune PHP OPcache on AlmaLinux 9

Edit /etc/php.d/10-opcache.ini

opcache.enable=1
opcache.enable_cli=0
opcache.memory_consumption=256
opcache.interned_strings_buffer=16
opcache.max_accelerated_files=20000
opcache.revalidate_freq=60
opcache.validate_timestamps=1
; JIT (PHP 8.x)
opcache.jit=tracing...
7th May 2026

Tune PHP OPcache on Arch Linux

Tune PHP OPcache on Arch Linux

Edit /etc/php/conf.d/opcache.ini

opcache.enable=1
opcache.enable_cli=0
opcache.memory_consumption=256
opcache.interned_strings_buffer=16
opcache.max_accelerated_files=20000
opcache.revalidate_freq=60
opcache.validate_timestamps=1
; JIT (PHP 8.x)
opcache.jit=tracin...
7th May 2026

Tune PHP OPcache on Debian 12

Tune PHP OPcache on Debian 12

Edit /etc/php/8.2/fpm/conf.d/10-opcache.ini

opcache.enable=1
opcache.enable_cli=0
opcache.memory_consumption=256
opcache.interned_strings_buffer=16
opcache.max_accelerated_files=20000
opcache.revalidate_freq=60
opcache.validate_timestamps=1
; JIT (PHP 8.x)
opcache....
7th May 2026

Tune PHP OPcache on Gentoo Linux

Tune PHP OPcache on Gentoo Linux

Edit /etc/php/fpm-php8.2/ext-active/opcache.ini

opcache.enable=1
opcache.enable_cli=0
opcache.memory_consumption=256
opcache.interned_strings_buffer=16
opcache.max_accelerated_files=20000
opcache.revalidate_freq=60
opcache.validate_timestamps=1
; JIT (PHP 8.x)
o...
7th May 2026

Tune PHP OPcache on NetBSD 10

Tune PHP OPcache on NetBSD 10

Edit /etc/php.d/opcache.ini

opcache.enable=1
opcache.enable_cli=0
opcache.memory_consumption=256
opcache.interned_strings_buffer=16
opcache.max_accelerated_files=20000
opcache.revalidate_freq=60
opcache.validate_timestamps=1
; JIT (PHP 8.x)
opcache.jit=tracing
opca...
7th May 2026

Tune PHP OPcache on OpenBSD 7.5

Tune PHP OPcache on OpenBSD 7.5

Edit /etc/php.d/opcache.ini

opcache.enable=1
opcache.enable_cli=0
opcache.memory_consumption=256
opcache.interned_strings_buffer=16
opcache.max_accelerated_files=20000
opcache.revalidate_freq=60
opcache.validate_timestamps=1
; JIT (PHP 8.x)
opcache.jit=tracing
op...
7th May 2026

Tune PHP OPcache on RHEL 9

Tune PHP OPcache on RHEL 9

Edit /etc/php.d/10-opcache.ini

opcache.enable=1
opcache.enable_cli=0
opcache.memory_consumption=256
opcache.interned_strings_buffer=16
opcache.max_accelerated_files=20000
opcache.revalidate_freq=60
opcache.validate_timestamps=1
; JIT (PHP 8.x)
opcache.jit=tracing
opca...
7th May 2026

Tune PHP OPcache on Ubuntu 24.04

Tune PHP OPcache on Ubuntu 24.04

Edit /etc/php/8.3/fpm/conf.d/10-opcache.ini

opcache.enable=1
opcache.enable_cli=0
opcache.memory_consumption=256
opcache.interned_strings_buffer=16
opcache.max_accelerated_files=20000
opcache.revalidate_freq=60
opcache.validate_timestamps=1
; JIT (PHP 8.x)
opcac...
7th May 2026

Tune PHP-FPM Performance on RHEL 9

Tune PHP-FPM Performance on RHEL 9

Estimate pm.max_children

ps -ylC php-fpm --no-headers | awk '{sum+=$8} END {print sum/NR/1024 " MB avg"}'
# Divide available RAM (minus OS+DB) by average size
pm = dynamic
pm.max_children      = 50
pm.start_servers     = 10
pm....
7th May 2026