This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux:webserver:php [2017/02/22 19:02] tkilla |
linux:webserver:php [2023/03/25 10:58] (current) tkilla [Install PHP 7.4 in Debian Buster / SURY REPO] |
||
---|---|---|---|
Line 46: | Line 46: | ||
+ | ===== PHP Modules ===== | ||
+ | |||
+ | Wordpress required: | ||
+ | |||
+ | apt install php-iconv php-exif php-memcached php-soap | ||
===== Apache & PHP-FPM ===== | ===== Apache & PHP-FPM ===== | ||
Line 174: | Line 179: | ||
include hhvm.conf; | include hhvm.conf; | ||
+ | |||
+ | |||
+ | ===== PHP5-FPM and PHP7.0 parallel Setup ===== | ||
+ | |||
+ | On debian jessie this works very well. Just install all php7.0 packages from backports. | ||
+ | |||
+ | ==== Install packages: ==== | ||
+ | |||
+ | | ||
+ | |||
+ | ==== Check which version is the default now and adjust: ==== | ||
+ | |||
+ | php -v | ||
+ | update-alternatives --co==== Headline ==== | ||
+ | nfig php | ||
+ | |||
+ | ==== Nginx Config - just replace the socket: ==== | ||
+ | |||
+ | fastcgi_pass unix:/ | ||
+ | |||
+ | fastcgi.conf, | ||
+ | |||
+ | ==== PHP7.0-FPM Config: ==== | ||
+ | |||
+ | edit or copy configs from php5: | ||
+ | * / | ||
+ | * / | ||
+ | * all configs in / | ||
+ | |||
+ | Pools: | ||
+ | Move a site-pool from php5 or create a new one in: / | ||
+ | |||
+ | You only need to adjust the socket line, to point to / | ||
+ | |||
+ | Check, if all required php modules are installed and configured.. good luck :) | ||
+ | |||
+ | ===== Install PHP 7.4 in Debian Buster / SURY REPO ===== | ||
+ | |||
+ | php7.4-fpm needs systemd :( | ||
+ | |||
+ | Add Sury Repo: | ||
+ | apt -y install lsb-release apt-transport-https ca-certificates | ||
+ | wget -O / | ||
+ | echo "deb https:// | ||
+ | apt update | ||
+ | apt install php7.4 | ||
+ | |||
+ | Install Modules: | ||
+ | apt-get install php7.4-{fpm, | ||
+ | |||
+ | / | ||