sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
apt install php7.3-common php7.3-cli php7.3-zip php7.3-opcache php7.3-mysql php7.3-mbstring php7.3-json php7.3-intl php7.3-gd php7.3-fpm php7.3-curl php7.3-bz2 php7.3-bcmath php7.3-imap php7.3-recode php7.3-soap php7.3-xml php7.3-imagick php7.3-memcache php7.3-memcached php7.3-igbinary php7.3-msgpack php7.3-redis
Copy the php7.3-fpm pool configuration from php7.0-fpm
cp -f /etc/php/7.0/fpm/pool.d/www.conf /etc/php/7.3/fpm/pool.d/www.conf
Edit the listening port of php7.3-fpm (for example 9073 instead of 9070)
nano /etc/php/7.3/fpm/pool.d/www.conf
Replace the line listen = 127.0.0.1:9070
by listen = 127.0.0.1:9073
Restart the service
service php7.3-fpm restart
Then to use php7.3-fpm, you have the choice between
In this case just edit the file /etc/nginx/conf.d/upstream.conf and replace the line server 127.0.0.1:9070;
by server 127.0.0.1:9073;
nano /etc/nginx/conf.d/upstream.conf
Then reload nginx
service nginx restart
Add the following lines in /etc/nginx/conf.d/upstream.conf
upstream php73 {
server 127.0.0.1:9073;
}
then copy the files /etc/nginx/common/php7.conf into /etc/nginx/common/php73.conf
And into this copy replace the line fastcgi_pass php7;
by fastcgi_pass php73;
Reload nginx and you can replace the line include common/php7.conf;
by include common/php73.conf;
in the vhosts of your choice
and if i install the WP site with --wpfc fastcgi_cache, i have, in vhosts
include/common/wpfc-php7.conf;
not
include/common/php7.conf;
how can i make this work?
Thanks