Page 1 of 1

Different versions of php web - console | nginx

Posted: Sat Aug 18, 2018 12:47 am
by alexd2
I have php 7.0 and 7.1 installed, php7.1 is displayed from the console but phpinfo shows php7.0
How can I assign php7.1 by default?

System
------
nginx
ubuntu 16.04

Web
=====
Image

Console
======
Image

php-fpm.service - LSB: starts php7.0-fpm

PHP 7.1.20-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Jul 25 2018 10:06:40) ( NTS )

How to set php7.1-fpm by default.

Other question, how to multiphp (7.0, 7.1 and 7.2) with Ubuntu?

Re: Different versions of php web - console | nginx

Posted: Sat Aug 18, 2018 9:52 am
by alexd2
There's really no easy way to do this?
I need to activate php7.1 in all environments.