将PHP-FPM 5.4安装到Debian 7(使用操作系统自带的方式)
首先
在Debian7上默认安装了PHP-FPM5.4
原文链接:PHP、PHP-FPM各种安装方法和EOL总结
记录
安装
# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 7 (wheezy)"
NAME="Debian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"
ID=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support/"
BUG_REPORT_URL="http://bugs.debian.org/"
# echo deb http://archive.debian.org/debian wheezy main > /etc/apt/sources.list
# echo deb http://archive.debian.org/debian-security wheezy/updates main >> /etc/apt/sources.list
# apt-get -o Acquire::Check-Valid-Until=false update
# apt-get update;apt-get install php5-fpm
... 略
确认的方式多种多样
# which php5
# which php5-fpm
/usr/sbin/php5-fpm
# php5-fpm -v
PHP 5.4.45-0+deb7u14 (fpm-fcgi) (built: May 9 2018 16:54:02)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
# dpkg -p php5-fpm
Package: php5-fpm
Priority: optional
Section: php
Installed-Size: 8377
Maintainer: Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>
Architecture: amd64
Source: php5
Version: 5.4.45-0+deb7u14
Provides: phpapi-20100525
Depends: libbz2-1.0, libc6 (>= 2.11), libcomerr2 (>= 1.01), libdb5.1, libgssapi-krb5-2 (>= 1.6.dfsg.2), libk5crypto3 (>= 1.6.dfsg.2), libkrb5-3 (>= 1.6.dfsg.2), libonig2 (>= 5.2.0), libpcre3 (>= 8.10), libqdbm14 (>= 1.8.74), libssl1.0.0 (>= 1.0.0), libxml2 (>= 2.8.0), zlib1g (>= 1:1.1.4), mime-support, php5-common (= 5.4.45-0+deb7u14), libmagic1, ucf, tzdata
Pre-Depends: dpkg (>= 1.16.1~)
Suggests: php-pear
Size: 2615564
Description: server-side, HTML-embedded scripting language (FPM-CGI binary)
This package provides the Fast Process Manager interpreter that runs
as a daemon and receives Fast/CGI requests. Note that MOST Apache users
probably want the libapache2-mod-php5 package.
The following extensions are built in: bcmath bz2 calendar Core ctype date
dba dom ereg exif fileinfo filter ftp gettext hash iconv json libxml
mbstring mhash openssl pcre Phar posix Reflection session shmop SimpleXML
soap sockets SPL standard sysvmsg sysvsem sysvshm tokenizer wddx xml
xmlreader xmlwriter zip zlib.
.
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used
open source general-purpose scripting language that is especially suited
for web development and can be embedded into HTML.
Homepage: http://www.php.net/