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

Default php version? #756

steveheinsch opened this Issue Dec 9, 2017 · 3 comments


None yet
3 participants
Copy link

steveheinsch commented Dec 9, 2017

I know you can set the php version on a per site basis, but is there a way to set the default php version for all sites to use so it doesn't use whatever is the most current version as default if you don't specify a version per site?


This comment has been minimized.

Copy link

svpernova09 commented Dec 9, 2017

@svpernova09 svpernova09 closed this Dec 9, 2017


This comment has been minimized.

Copy link

piotr-cz commented Dec 10, 2017

I'd find it very handy, as setting site-specific PHP version doesn't work for apache type (#630).
That way I could at least choose global version.

workaround, assuming you want switch to php 7.0:

  1. add required php version to one of the sites and run provision which will install it: vagrant reload --provision
  2. to change default CLI, run sudo update-alternatives --config php
  3. switch apache modules
sudo a2dismod php7.2
sudo a2enmod php7.0
sudo service apache2 restart

This comment has been minimized.

Copy link

piotr-cz commented Jan 16, 2019

This has been resolved by #892, but still on have to run vagrant reload --provision to recreate sites.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment