Nginx + php7.1 + Vagrant

1

Good I installed homestead the last version that runs with php 7.1, but I really have project created in laravel 4.2 and using php 5.6, the problem is that every time I run my environment in vagrant I reconfigure the nginx with php 7.1 and I want to keep it with 7.0 I've already set it manually but it goes back to 7.1 every time I give vagrant up or vagrant reload --provision. PD: the projects have run perfectly with php 7.0 any version

    
asked by Eduardo Herrera 28.12.2016 в 18:22
source

2 answers

2

Modify the file homestead.yaml and on the line where it says version: change to:

version: 0.6.0

Example file homestead.yaml :

box: laravel/homestead
version: 0.6.0
ip: "192.168.20.20"
memory: 2048
cpus: 4
provider: virtualbox
    
answered by 28.12.2016 / 18:35
source
0

I had the same problem, and I have done the following, to remove the php7.1:

sudo apt-get install ppa-purge

and then:

sudo ppa-purge ppa:ondrej/php-7.1

I hope I have helped you!

    
answered by 28.02.2017 в 05:34