Nginx + php7.1 + Vagrant


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

2 answers


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: ""
memory: 2048
cpus: 4
provider: virtualbox
answered by 28.12.2016 / 18:35

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