"Problem" after ppa failure: ondrej / php5

Today I updated PHP 5.5 on my LEMP stack to version 5.5.35. After the update, I received a screen message saying that repo ppa: ondrej / php5 is out of date, and if I want to continue to receive php updates, I have to go to ppa: ondrej / php which now includes PHP 5.5, PHP 5.6 and PHP 7.0 in one place . Previously, these versions were in different repositories.

I followed Ondřej's advice and I ran:

sudo add-apt-repository ppa:ondrej/php

And then:

sudo apt-get update
sudo apt-get upgrade --show-upgraded

Everything went fine, except that two packages were hidden: php-pear and pkg-php-tools . This, of course, happens from time to time when package dependencies change, so I run:

sudo apt-get install php-pear pkg-php-tools

, :

php-cli php-common php-xml php7.0-cli php7.0-common php7.0-json php7.0-opcache php7.0-readline php7.0-xml

, - . , , PHP 7.0, PHP 5.5? , , . , , . , , PHP ?

php -v

:

PHP 7.0.6-1+donate.sury.org~trusty...

, , ? PHP 7.0 / ? nginx php-fpm, nginx.conf, , nginx php5-fpm.sock, php5-fpm . , , PHP .

, phpinfo. , PHP 5.5.35. , , ssh , PHP 7.0.6, phpinfo , PHP 5.5.35.

, :

sudo apt-get remove php7.0-common

php7.0 , , .

, PHP SSH, 5.5.35. , . , php-pear pkg-php-tools, php7.0 .

/etc/php5 /etc/php. 7.0, cli .

- , ? php5 php7.0 ? , LEMP + Wordpress?

+4
1

php-pear pkg-php-tools PHP CLI PHP PHP 7.0. php-cli php7.0-cli, /usr/bin/php7.0 (70), /usr/bin/php.

PHP CLI- , PHP . :

  • , . php <script> php5.6 <script>
  • update-alternatives /usr/bin/php PHP: a) update-alternatives --set php /usr/bin/php5.6 b) update-alternatives --config php

DEB.SURY.ORG Wiki.

FPM PHP, :

sudo apt-get install php5.5-fpm # for PHP 5.5
sudo apt-get install php5.6-fpm # for PHP 5.6
sudo apt-get install php7.0-fpm # for PHP 7.0

, FPM :

sudo editor /etc/php/X.Y/fpm/pool.d/www.conf

( /run/php/phpX.Y-fpm.sock ).

+1

All Articles