align php settings with recommendations opcache/jit from php.net (aligned for php 8.3 and 8.4), increased buffernumber to allow parallel requests without writing to file

This commit is contained in:
Benjamin Brummer
2024-12-02 11:53:27 +01:00
parent 79647d4f8c
commit 66408fccb2
3 changed files with 18 additions and 23 deletions

27
debian/php/php.ini vendored
View File

@@ -1,14 +1,17 @@
[core]
# https://www.php.net/manual/en/ini.core.php
memory_limit=512M
post_max_size = 60M
upload_max_filesize = 50M
post_max_size = 10M
upload_max_filesize = 10M
# https://www.php.net/manual/en/opcache.configuration.php
opcache.enable=1
opcache.preload=/var/www/html/preload.php
opcache.preload_user=www-data
opcache.max_accelerated_files=300000
opcache.revalidate_freq=30
opcache.jit_buffer_size=256M
opcache.jit=1205
opcache.memory_consumption=1024M
[opcache]
# https://www.php.net/manual/en/opcache.installation.php#opcache.installation.recommended
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.enable_cli=1
[jit]
# https://wiki.php.net/rfc/jit_config_defaults
opcache.jit=tracing
opcache.jit_buffer_size=64M