Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] Multiple PHP Versions? #604

Closed
divdax opened this issue Jun 28, 2017 · 7 comments

Comments

@divdax
Copy link

@divdax divdax commented Jun 28, 2017

It would be great to provide multiple php version at the same time in a box and specify the php version in the Homestead.yaml like so:

sites:
    - map: homestead.app
      to: /home/vagrant/www
      php: 7.0 <====================
    - map: homestead.app
      to: /home/vagrant/www
      php: 5.6 <====================

How do you think about this idea? 😄

@svpernova09

This comment has been minimized.

Copy link
Member

@svpernova09 svpernova09 commented Jun 28, 2017

This has been brought up a few times, and ultimately what it comes down to is this becomes a big configuration nightmare on our end.

My suggestion is to use different boxes for each version of PHP you need to support. Check out https://laravel.com/docs/5.4/homestead#old-versions if you want to use PHP 7.0. If you need to use 5.x have a look here: https://laravel-news.com/using-older-versions-of-homestead

@browner12

This comment has been minimized.

Copy link
Contributor

@browner12 browner12 commented Jun 28, 2017

if you're okay breaking out of the Laravel ecosystem, Local by Flywheel is pretty good. It is built with Wordpress as its primary target, but works good for most things. You may just miss out on some of the things Homestead installs by default, or your custom aliases.

https://local.getflywheel.com/

@lk77

This comment has been minimized.

Copy link

@lk77 lk77 commented Jul 23, 2017

it would be really cool to have such a functionality,
actually i'm using a script to install ondrej/php and php5.6/7.0/7.1 modules on the homestead vagrant box, it's working well, and i can switch versions easily, but it's not out-of-the-box, and need to be re-executed when creating new homestead instances.

@svpernova09

This comment has been minimized.

Copy link
Member

@svpernova09 svpernova09 commented Jul 24, 2017

Multiple PHP versions is coming in Homestead 6.0, Settler 3.0

Soon™

@clarknelson

This comment has been minimized.

Copy link

@clarknelson clarknelson commented Apr 18, 2018

Checking in, this is more useful now that Craft 2.6 uses php7.1 and Craft 3+ uses php7.2

@ivan006

This comment has been minimized.

Copy link

@ivan006 ivan006 commented Nov 21, 2018

that all good and well but when i make those changes jack squate changes thanks alot

@svpernova09

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants
You can’t perform that action at this time.