So PHP 7 was released a few weeks back. Which is great but I don’t want to move to it right now. I do want to move to PHP 7 some time in the next few months – but not today. Not on version 7.0.0.
Problem is, every time I
vagrant up after PHP 7 was released it says
php5-fpm: unrecognized service, and when I SSH in to the box and do
service --status-all it says that I’ve got
php7.0-fpm running (but
php5-fpm is not there).
So obviously the box has updated itself to PHP 7. Which I don’t want. But how to fix it?
So the solution was to simply tell the homestead-oracle box to use version 0.3.3 of the base box, by adding the line
config.vm.box_version = "~> 0.3" just under
config.vm.box = settings["box"] ||= "laravel/homestead" in the
scripts/homestead.rb file (as per this pull request).
And now it’s all fixed. 🙂