Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

Commit ac77e1e

Browse files
committed
Fixes #1993: Add PHP 7.4 support.
1 parent 4a7c7d2 commit ac77e1e

File tree

15 files changed

+53
-58
lines changed

15 files changed

+53
-58
lines changed

default.config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ firewall_log_dropped_packets: false
255255
firewall_disable_firewalld: true
256256
firewall_disable_ufw: true
257257

258-
# PHP Configuration. Currently-supported versions: 7.1, 7.2, 7.3.
258+
# PHP Configuration. Currently-supported versions: 7.2, 7.3, 7.4.
259259
# See version-specific notes: http://docs.drupalvm.com/en/latest/configurations/php/
260260
php_version: "7.2"
261261
php_install_recommends: no

docs/configurations/php.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
Drupal VM defaults to PHP 7.2, but you can also install and use 7.1 or 7.3.
1+
Drupal VM defaults to PHP 7.2, but you can also install and use 7.3 or 7.4.
22

33
## Ubuntu
44

5-
Ondřej Surý's PPA for PHP is used to install PHP 7.2, but you can switch versions by changing `php_version` inside `config.yml` to `"7.1"` or `"7.3"`.
5+
Ondřej Surý's PPA for PHP is used to install PHP 7.2, but you can switch versions by changing `php_version` inside `config.yml` to `"7.3"` or `"7.4"`.
66

77
If you're using Apache with `mod_php` you should also add `libapache2-mod-php{{ php_version }}` to the `extra_packages` list.
88

99
_Note: XHProf does currently not work with PHP 7.1+, make sure you don't have it listed in `installed_extras`._
1010

11-
## RedHat/CentOS 7
11+
## RedHat/CentOS 7 or 8
1212

1313
Remi's RPM repository is included with Drupal VM, and you can make the following changes to use it to install a different version of PHP than 7.2:
1414

1515
1. Make sure you've followed the directions for switching to CentOS 7 in the [use a different base OS](base-os.md) guide.
16-
2. Change `php_version` inside `config.yml` to `"7.1"` or `"7.3"`.
16+
2. Change `php_version` inside `config.yml` to `"7.3"` or `"7.4"`.
1717

1818
## PHP 5.6 EOL
1919

20-
PHP 5.6 was end-of-lifed (meaning no more community support or security fixes) at the end of 2018. Drupal VM does not officially support PHP 5.6 anymore, though some package maintainers are still publishing packages for it. So you can try using `php_version: "5.6"` or using PHP's source installation at your own risk.
20+
PHP 5.6 was end-of-lifed (meaning no more community support or security fixes) at the end of 2018, and is not supported by Drupal VM.
2121

2222
## Using default distribution packages
2323

provisioning/requirements.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
- src: geerlingguy.php-tideways
5757
version: 2.2.0
5858
- src: geerlingguy.php-versions
59-
version: 3.1.3
59+
version: 4.0.0
6060
- src: geerlingguy.php-xdebug
6161
version: 2.5.1
6262
- src: geerlingguy.php-xhprof

provisioning/roles/geerlingguy.php-versions/.travis.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,27 @@ env:
66
global:
77
- ROLE_NAME: php-versions
88
matrix:
9-
# Default PHP version (7.2).
9+
# Default PHP version (7.3).
10+
- MOLECULE_DISTRO: centos8
1011
- MOLECULE_DISTRO: centos7
1112
- MOLECULE_DISTRO: ubuntu1804
1213
- MOLECULE_DISTRO: ubuntu1604
13-
- MOLECULE_DISTRO: debian9
14+
- MOLECULE_DISTRO: debian10
1415

15-
# PHP 7.3.
16-
- MOLECULE_DISTRO: centos7
16+
# PHP 7.4.
17+
- MOLECULE_DISTRO: centos8
1718
MOLECULE_DOCKER_COMMAND: /usr/lib/systemd/systemd
18-
MOLECULE_PLAYBOOK: playbook-7.3.yml
19+
MOLECULE_PLAYBOOK: playbook-7.4.yml
1920
- MOLECULE_DISTRO: ubuntu1804
20-
MOLECULE_PLAYBOOK: playbook-7.3.yml
21-
- MOLECULE_DISTRO: ubuntu1604
22-
MOLECULE_PLAYBOOK: playbook-7.3.yml
23-
- MOLECULE_DISTRO: debian9
24-
MOLECULE_PLAYBOOK: playbook-7.3.yml
21+
MOLECULE_PLAYBOOK: playbook-7.4.yml
22+
- MOLECULE_DISTRO: debian10
23+
MOLECULE_PLAYBOOK: playbook-7.4.yml
2524

26-
# PHP 7.1.
27-
- MOLECULE_DISTRO: centos7
28-
MOLECULE_PLAYBOOK: playbook-7.1.yml
25+
# PHP 7.2.
26+
- MOLECULE_DISTRO: centos8
27+
MOLECULE_PLAYBOOK: playbook-7.2.yml
2928
- MOLECULE_DISTRO: ubuntu1804
30-
MOLECULE_PLAYBOOK: playbook-7.1.yml
29+
MOLECULE_PLAYBOOK: playbook-7.2.yml
3130

3231
install:
3332
# Install test dependencies.

provisioning/roles/geerlingguy.php-versions/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ N/A
1212

1313
Available variables are listed below, along with default values (see `defaults/main.yml`):
1414

15-
php_version: '7.2'
15+
php_version: '7.3'
1616

17-
The PHP version to be installed. Any [currently-supported PHP major version](http://php.net/supported-versions.php) is a valid option (e.g. `5.6`, `7.1`, `7.2`, `7.3`, etc.).
17+
The PHP version to be installed. Any [currently-supported PHP major version](http://php.net/supported-versions.php) is a valid option (e.g. `7.2`, `7.3`, `7.4` etc.).
1818

1919
php_versions_install_recommends: false
2020

@@ -30,7 +30,7 @@ The PHP version to be installed. Any [currently-supported PHP major version](htt
3030
- hosts: webservers
3131

3232
vars:
33-
php_version: '7.2'
33+
php_version: '7.3'
3434

3535
roles:
3636
- role: geerlingguy.repo-remi
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
# The PHP version to be installed.
3-
php_version: '7.2'
3+
php_version: '7.3'
44

55
# For Debian OSes only.
66
php_versions_install_recommends: false

provisioning/roles/geerlingguy.php-versions/meta/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ galaxy_info:
66
description: Allows different PHP versions to be installed.
77
company: "Midwestern Mac, LLC"
88
license: "MIT"
9-
issue_tracker_url: https://github.com/geerlingguy/drupal-vm/issues
9+
issue_tracker_url: https://github.com/geerlingguy/ansible-role-php-versions/issues
1010
min_ansible_version: 2.4
1111
platforms:
1212
- name: EL

provisioning/roles/geerlingguy.php-versions/molecule/default/playbook-7.1.yml renamed to provisioning/roles/geerlingguy.php-versions/molecule/default/playbook-7.2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
vars:
77
php_enable_webserver: false
8-
php_version: '7.1'
8+
php_version: '7.2'
99

1010
pre_tasks:
1111
- name: Update apt cache.

provisioning/roles/geerlingguy.php-versions/molecule/default/playbook-7.3.yml renamed to provisioning/roles/geerlingguy.php-versions/molecule/default/playbook-7.4.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
vars:
77
php_enable_webserver: false
8-
php_version: '7.3'
8+
php_version: '7.4'
99

1010
pre_tasks:
1111
- name: Update apt cache.

provisioning/roles/geerlingguy.php-versions/molecule/default/playbook.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
vars:
77
php_enable_webserver: false
8-
php_version: '7.2'
98

109
pre_tasks:
1110
- name: Update apt cache.

0 commit comments

Comments
 (0)