
Sed -i "s| emergency_restart_interval.*|emergency_restart_interval = 1m|g" /etc/php/8.0/fpm/nf Sed -i "s| emergency_restart_threshold.*|emergency_restart_threshold = 10|g" /etc/php/8.0/fpm/nf Sed -i "s/ opcache.save_comments=.*/opcache.save_comments=1/" /etc/php/8.0/fpm/php.ini Sed -i "s/ opcache.revalidate_freq=.*/opcache.revalidate_freq=1/" /etc/php/8.0/fpm/php.ini Sed -i "s/ opcache.max_accelerated_files=.*/opcache.max_accelerated_files=10000/" /etc/php/8.0/fpm/php.ini Sed -i "s/ opcache.interned_strings_buffer=.*/opcache.interned_strings_buffer=8/" /etc/php/8.0/fpm/php.ini Sed -i "s/ mory_consumption=.*/mory_consumption=128/" /etc/php/8.0/fpm/php.ini Sed -i "s/ opcache.enable_cli=.*/opcache.enable_cli=1/" /etc/php/8.0/fpm/php.ini Sed -i "s/ opcache.enable=.*/opcache.enable=1/" /etc/php/8.0/fpm/php.ini Sed -i "s/ okie_secure.*/okie_secure = True/" /etc/php/8.0/fpm/php.ini Sed -i "s/output_buffering =.*/output_buffering = 'Off'/" /etc/php/8.0/fpm/php.ini Sed -i "s/output_buffering =.*/output_buffering = 'Off'/" /etc/php/8.0/cli/php.ini

Sed -i 's/pm.min_spare_servers =.*/pm.min_spare_servers = '$PMinSS'/' /etc/php/8.0/fpm/pool.d/www.conf Sed -i 's/pm.start_servers =.*/pm.start_servers = '$PStartS'/' /etc/php/8.0/fpm/pool.d/www.conf

Sed -i 's/pm.max_children =.*/pm.max_children = '$FPMS'/' /etc/php/8.0/fpm/pool.d/www.conf
Php 8 new switch install#
Install the required packages: apt update -q4 & apt install -y redis-server libapache2-mod-php8.0 php8.0-')Īdd additional configuration parameters: sed -i "s/ env\ = /env = /" /etc/php/8.0/fpm/pool.d/www.conf PHP-FPM and Redis-Server 4.1 Install packages and configure PHP Ubuntu: add-apt-repository -y ppa:ondrej/phpĬlick me 4. My configuartion is based on Carsten Rieger’s tutorial and I haven’t had any of the issues that keep popping up here in the forums… Add the repositories: sudo apt install software-properties-common ca-certificates lsb-release apt-transport-https curl wgetĭebian: sudo sh -c 'echo "deb $(lsb_release -sc) main" > /etc/apt//php.list' I use PHP packages from Ondrej Sury maintainer of PHP in Debian. ``symfony/event-dispatcher`` needs an update of ``symfony/event-dispatcher-contracts`` ``symfony/event-dispatcher-contracts``: fixed with ()/()

``scssphp/scssphp``: anything after 1.0.4 should satisfy php8 ``php-opencloud/openstack``:, is requires for guzzle7 ``php-http/guzzle6-adapter``: "*guzzle 6 does not work with php 8*" ``patchwork/utf8``: ~~needs a fix replaced with symfony polyfill ``guzzlehttp/guzzle``: 6.x is not compatible, we need 7.x ``doctrine/event-manager``: 1.1.1 required
