-
-
Notifications
You must be signed in to change notification settings - Fork 645
PHP 7.3 CLI installed in addition to 7.1, breaks stuff. #1963
Comments
Hmm this looks like it's related to #1964 also |
If it is related to
|
If I set
Trying PHP 7.2 next. |
With So maybe upstream in ondrej's repo, there's an issue with one of the 7.1 packages causing 7.3 to also be installed... |
I'm troubleshooting the 7.1 install:
So it looks like |
To verify it's the xml package, I set the following in my php_packages:
- "php{{ php_version }}"
- "php{{ php_version }}-apcu"
- "php{{ php_version }}-cli"
- "php{{ php_version }}-common"
- "php{{ php_version }}-curl"
- "php{{ php_version }}-dev"
- "php{{ php_version }}-fpm"
- "php{{ php_version }}-gd"
- "php{{ php_version }}-imap"
- "php{{ php_version }}-json"
- "php{{ php_version }}-mbstring"
- "php{{ php_version }}-opcache"
- "php{{ php_version }}-sqlite3"
# - "php{{ php_version }}-xml"
- "php{{ php_version }}-yaml" But now:
Hmm... so:
So it looks like the YAML extension might be the problem. |
Weird, if I take Still get:
|
So this is strange... I noticed that libapache2-mod-php7.1 was also installed... apparently php7.1 depends on it?!
|
It is not required in PHP 7.2 or 7.3... weird. |
At first I thought it was definitely a bug in Ondrej's repos, but looking twice, it seems like the problem might be that when my php-versions role runs:
That still results in one leftover package being installed:
So I'm going to see if I can make it so it also purges |
It looks like my fix may have worked:
So now I need to fix it upstream in |
Opened upstream issue geerlingguy/ansible-role-php-versions#41 — testing there. |
Everything in that issue seems to check out. If tests pass, I'll tag a new release, then update Drupal VM, then I think I can close out all these PHP 7.1-related issues! |
…eerlingguy#1964: Purge php-common package when installing different PHP version.
Issue Type
Your Environment
Your OS
Full console output
https://gist.github.com/ndouglas/253528c85a35aca7b37f6ce7ae579478
Summary
php7.3-cli seems to get installed in addition to php7.1-cli.
This happens despite using the default
php_version
of "7.1" in myconfig.yml
(and not overridden in mylocal.config.yml
).This is a recent issue, only experienced by myself (and a coworker) when trying to get him set up with DrupalVM.
Since my extras, etc aren't installed for PHP 7.3, scripts fail. For instance, Drupal installation fails because there's no appropriate installation of pdo_mysql. I suspect this might also be the cause behind #1962 and #1961 and #1903 (latest comments) and possibly others.
If I simply do
sudo apt-get remove php7.3-cli
, the package is removed and everything works fine.I've poked around a small bit, but I haven't yet managed to figure out why the package is installed.
sudo aptitude why php7.3-cli
seems to blame php-yaml, but I suspect it's more complicated than that.The text was updated successfully, but these errors were encountered: