-
-
Notifications
You must be signed in to change notification settings - Fork 642
Followup #667, #714: Make it easier to switch between PHP versions #1043
Conversation
Aha, the matrix didn't work as I thought it did (travis-ci/travis-ci#1519). |
Tested locally:
|
@geerlingguy do you want me to add any test for building with another version than the default? Also do you remember what the opcache.ini naming issue was? Wondering if it's something I should test that doesn't creep up again. |
geerlingguy/ansible-role-php-xdebug#32 |
@oxyc - Working through the linked issues :) I'd say we should do a build for PHP 5.6 at least, maybe on Ubuntu 14.04 (or 16.04 if it's easier), since that will be an LTS we should support for a while. |
Also, as a note—I think I'd be okay with some 7.1 failures (and some failures switching versions here and there), and we can call the 'version switching' an experimental feature for now. Best option is to always destroy and rebuild (like we always have done), but you can try switching PHP versions on the fly if you want... something to that effect. Looks like you've already updated docs, and everything else I'm seeing looks wonderful. Plus, even if not switching on-the-fly, having the Version be a variable (by using Ondrej's repo in all cases) is quite a slick feature! Thanks for the work on this! After I kick the tires a tiny bit more, I'm planning on merging tonight. 🚂 All aboard the release train! |
Let me run a few more tests as well! I'll try and get 12.04 with redis as well as php 7.1 with xdebug working tonight. |
@oxyc - I'm all for it—you're on a roll, I don't think I want to slow you down :) Just give me the 👍 when you're ready for me to merge this (I'm running a couple builds now). |
c33fcf9
to
b9a8353
Compare
2.4mbit connection is slooooooooooow.... |
@geerlingguy geerlingguy/ansible-role-php-redis#2 fixed Ubuntu 12.04 for me. It runs with PHP 7.1 and redis. Let's just wait for travis to get back and then this gets my 👍 Only feature which doesn't work is XHProf on 7.1 |
That's just awesome! Thanks @thom8 for all your work on this. |
php-redis role is happy and now part of Drupal VM. Running through code one last time to make sure there's nothing major we're missing... |
|
||
Ondřej Surý's PPA for PHP is used to install PHP 7.0, but you can switch to using 5.6 or 7.1 packages by changing `php_version` inside `config.yml` to eg. `"7.1"`. | ||
|
||
If you're using Apache with `mod_php` you should also add `libapache2-mod-php7.1` to the `extra_packages` list. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to specify what to do for PHP 5.6 too—or reword this so it is less 7.1-specific.
@@ -4,38 +4,6 @@ vagrant_box: geerlingguy/ubuntu1204 | |||
|
|||
# Acquia Cloud defaults to PHP 5.6. | |||
php_version: "5.6" | |||
php_install_recommends: no |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reminder to self—I'll need to update BLT's internal config.yml once this stuff lands.
MERGED! |
Now, to retest things a couple more times... I'll either tag 4.0.0 tomorrow sometime (I have a car inspection scheduled...), or on Monday when I'm prepping for a trip to Baltimore. This one's getting a Twitter mention, a Blog post, the whole nine yards! |
FYI After switching to 5.6 from 7 I was getting the error:
A vagrant destroy and a vagrant up fixed it. Might want to add that to the docs and maybe change the release notes so that it doesn't imply you can just provision. Also the URL in default.config.vm docs is broken: Finally, I had previously specified the following php_packages in my config.yml (I don't remember why, I imagine I copied them from default.config.yml at somepoint) -- are these no longer needed in Drupal-VM 4.0? Or should I update them to reference the php5.6 versions?
|
I had this at some point but couldn't reproduce it so I thought it was fixed somehow. Might be related and fixable now that geerlingguy/ansible-role-php-xdebug#32 geerlingguy/ansible-role-php-xhprof#16 are merged. Would you mind creating a separate issue?
This is already fixed in master. c626a3e
You don't need to specify them. |
Doesn't work but I'm pushing to see if I can get travis to help out.
Sorry, I made a duplicate PR for this because rebasing caused a headache.