php-fpm

Установка и настройка PHP-FPM

$ aptitude purge `dpkg -l | grep php | grep -w 5 | awk '{print $2}' | xargs`
$ aptitude purge `dpkg -l | grep php5 | grep -w 5 | awk '{print $2}' | xargs`

nano /etc/apt/sources.list

deb http://snapshot.debian.org/archive/debian/20120221T041601Z/ unstable main
deb-src http://snapshot.debian.org/archive/debian/20120221T041601Z/ unstable main

Обновляем пакеты

$ apt-get -o Acquire::Check-Valid-Until=false update
$ aptitude -o Acquire::Check-Valid-Until=false update

Универсальный установщик php с указанием версии

#!/usr/bin/sh
 
VERSION="5.3.10-2" # CHANGES THIS WITH YOUR VERSION OF PACKAGE
 
aptitude install php5=$VERSION php5-cli=$VERSION php5-common=$VERSION
aptitude install php-pear=$VERSION php5-curl=$VERSION php5-gd=$VERSION php5-intl=$VERSION php5-mysql=$VERSION php5-pspell=$VERSION php5-recode=$VERSION php5-snmp=$VERSION php5-sqlite=$VERSION php5-tidy=$VERSION php5-xmlrpc=$VERSION php5-xsl=$VERSION php5-dev=$VERSION

Установка PHP-FPM

 

nano /etc/apt/sources.list

deb http://snapshot.debian.org/archive/debian/20151027T184729Z/ unstable main
deb-src http://snapshot.debian.org/archive/debian/20151027T184729Z/ unstable main

Обновляем пакеты

$ apt-get -o Acquire::Check-Valid-Until=false update
$ aptitude -o Acquire::Check-Valid-Until=false update

Универсальный установщик php с указанием версии

#!/usr/bin/sh
 
VERSION="5.4.45-0+deb7u2" # CHANGES THIS WITH YOUR VERSION OF PACKAGE
 
aptitude install php5=$VERSION php5-cli=$VERSION php5-common=$VERSION php5-fpm=$VERSION
aptitude install php-pear=$VERSION php5-curl=$VERSION php5-gd=$VERSION php5-intl=$VERSION php5-mysql=$VERSION php5-pspell=$VERSION php5-recode=$VERSION php5-snmp=$VERSION php5-sqlite=$VERSION php5-tidy=$VERSION php5-xmlrpc=$VERSION php5-xsl=$VERSION php5-dev=$VERSION
# Wheezy repo for PHP 5.4
deb http://packages.dotdeb.org wheezy all
deb-src http://packages.dotdeb.org wheezy all
deb http://ftp.ru.debian.org/debian/ wheezy main
deb-src http://ftp.ru.debian.org/debian/ wheezy main
deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main
deb http://ftp.ru.debian.org/debian/ wheezy-updates main
deb-src http://ftp.ru.debian.org/debian/ wheezy-updates main
$ apt-get update
$ PHPVER='5.4.44-0+deb7u1' && apt-get install libapache2-mod-php5=$PHPVER php-pear=$PHPVER php5=$PHPVER php5-cgi=$PHPVER php5-cli=$PHPVER php5-common=$PHPVER php5-curl=$PHPVER php5-dev=$PHPVER php5-fpm=$PHPVER php5-gd=$PHPVER php5-intl=$PHPVER php5-mysql=$PHPVER php5-pspell=$PHPVER php5-recode=$PHPVER php5-sqlite=$PHPVER php5-tidy=$PHPVER php5-xmlrpc=$PHPVER php5-xsl=$PHPVER php5-json=1.3.6-1 php5-memcached=2.2.0-2 php5-xcache=3.2.0-1
$ apt-get install python-software-properties
$ add-apt-repository ppa:ondrej/php-7.0
  • php-fpm.txt
  • Последнее изменение: 2016/09/20 02:43
  • mirocow