在Debian 10上安装PHP-FPM 7.3(使用操作系统自带的安装程序)

首先

Debian10中默认安装了PHP-FPM7.3。
原始文章:PHP和PHP-FPM的各种安装方法和EOL总结。

登录

安装

# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

# apt update -y;apt install -y php-fpm
... 略

不同的确认

# which php
/usr/bin/php

# which php-fpm7.3
/usr/sbin/php-fpm7.3

# php-fpm7.3 -v
PHP 7.3.9-1~deb10u1 (fpm-fcgi) (built: Sep 18 2019 10:33:23)
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.9, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.3.9-1~deb10u1, Copyright (c) 1999-2018, by Zend Technologies

# apt show php-fpm
Package: php-fpm
Version: 2:7.3+69
Priority: optional
Section: php
Source: php-defaults (69)
Maintainer: Debian PHP Maintainers <team+pkg-php@tracker.debian.org>
Installed-Size: 12.3 kB
Depends: php7.3-fpm
Download-Size: 6052 B
APT-Manual-Installed: yes
APT-Sources: http://deb.debian.org/debian buster/main amd64 Packages
Description: server-side, HTML-embedded scripting language (FPM-CGI binary) (default)