# Install
Code
# Install PHP extensions (add php8.3 on the list in case it's not (pre)installed).apt install php8.3 php8.3-fpm php8.3-cli php8.3-common php8.3-curl php8.3-gd php8.3-mbstring php8.3-mysql php8.3-opcache php8.3-readline php8.3-sqlite3 php8.3-xml php8.3-zip php8.3-apcu
# Configuration.
Code
# Configure APCu cache. Create '20-apcu.ini' file in case it does not exist.nano -w /etc/php/8.3/fpm/conf.d/20-apcu.ini# Place this there, for instance.
apc.shm_size="96M"# Set resources and timezone values for FPM.nano -w /etc/php/8.3/fpm/conf.d/60-custom.ini# Enter desired values there, for instance:; Maximum amount of memory a script may consume. Default is 128M
memory_limit = 1G; Maximum allowed size for uploaded files. Default is 2M.upload_max_filesize = 260M; Maximum size of POST data that PHP will accept. Default is 2M.post_max_size = 280M; The OPcache shared memory storage size. Default is 128opcache.memory_consumption=256; The amount of memory for interned strings in Mbytes. Default is 8.opcache.interned_strings_buffer=32; Set actual timezone.date.timezone = [your_timezone_string]# Set timezone to CLI php.nano -w /etc/php/8.3/cli/conf.d/60-custom.ini; Set actual timezone.date.timezone = Europe/Amsterdam