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

Commit 95c0159

Browse files
committed
Fixes #2061: Update default PHP version to 7.4.
1 parent 279934a commit 95c0159

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
language: php
3-
php: 7.2
3+
php: 7.4
44
services: docker
55

66
env:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ COPY ./provisioning/docker/bin/* /usr/local/bin
1010
RUN ansible-playbook /etc/ansible/drupal-vm/provisioning/playbook.yml \
1111
-e "ansible_python_interpreter=/usr/bin/python3" \
1212
# Enable FPM. See https://github.com/geerlingguy/drupal-vm/issues/1366.
13-
&& systemctl enable php7.2-fpm.service
13+
&& systemctl enable php7.4-fpm.service
1414

1515
EXPOSE 80 443 3306 8025
1616

default.config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ firewall_disable_ufw: true
258258

259259
# PHP Configuration. Currently-supported versions: 7.2, 7.3, 7.4.
260260
# See version-specific notes: http://docs.drupalvm.com/en/latest/configurations/php/
261-
php_version: "7.2"
261+
php_version: "7.4"
262262
php_install_recommends: no
263263
php_memory_limit: "192M"
264264
php_display_errors: "On"

docs/configurations/php.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
Drupal VM defaults to PHP 7.2, but you can also install and use 7.3 or 7.4.
1+
Drupal VM defaults to PHP 7.4, but you can also install and use 7.2 or 7.3.
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.3"` or `"7.4"`.
5+
Ondřej Surý's PPA for PHP is used to install PHP 7.4, but you can switch versions by changing `php_version` inside `config.yml` to `"7.2"` or `"7.3"`.
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

1111
## RedHat/CentOS 7 or 8
1212

13-
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:
13+
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.4:
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.3"` or `"7.4"`.
16+
2. Change `php_version` inside `config.yml` to `"7.2"` or `"7.3"`.
1717

1818
## PHP 5.6 EOL
1919

docs/getting-started/configure-drupalvm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ vagrant_box: geerlingguy/centos8
1717
vagrant_hostname: my-custom-site.test
1818
vagrant_machine_name: my_custom_site
1919

20-
php_version: "7.2"
20+
php_version: "7.3"
2121
```
2222
2323
#### 3. vagrant.config.yml

docs/other/bigpipe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ This will disable the `mod_deflate` module for any requests inside that director
3737

3838
If you want to switch Apache to use `mod_php` instead of proxying requests through PHP-FPM, you can make the following changes in `config.yml`:
3939

40-
1. Add `libapache2-mod-php7.2` to `extra_packages` in `config.yml`.
40+
1. Add `libapache2-mod-php7.4` to `extra_packages` in `config.yml`.
4141
2. Delete the `extra_parameters` under any Drupal site in the list of `apache_vhosts` (so there is no `SetHandler` rule).
4242

4343
You can also disable PHP-FPM and remove the two `proxy` entries from `apache_mods_enabled` if you don't want to use PHP-FPM with Apache at all, but that's optional; it won't break anything to run Apache with `mod_php` and `mod_proxy_fastcgi` at the same time.

0 commit comments

Comments
 (0)