Vagrantfile PHP v5.6 is specified, but v5.5 is installed

I have a Vaprobash VagrantFile creating a Unbuntu Nginx stack.

In it I point out PHP v5.6:

php_version = "5.6" //Options: 5.5 | 5.6

However i run

$ vagrant up

when i ssh in the field and do

$ php -v 

it shows PHP 5.5.9-1ubuntu4.20 (cli) (built: October 3, 2016 13:00:37).

Why has not been installed 5.6?

+4
source share
1 answer

I am not sure if this repo was updated for php after the ppa migration (see https://github.com/oerdnj/deb.sury.org/wiki/PPA-migration-to-ppa:ondrej-php )

basically in scripts/php.shyou need to replace ppa with

sudo add-apt-repository ppa:ondrej/php

( sudo apt-get update, ) - php5.6

sudo apt-get install -qq libapache2-mod-php5.6

,

vagrant@vaprobash:~$ php -v
PHP 5.6.28-1+deb.sury.org~trusty+1 (cli)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

php-, , 5.6 php,

sudo apt-get install -qq php5.6-fpm
+4

Source: https://habr.com/ru/post/1663065/


All Articles