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

Commit

Permalink
Fixes #2061: Update default PHP version to 7.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
geerlingguy committed Jul 6, 2020
1 parent 279934a commit 95c0159
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
language: php
php: 7.2
php: 7.4
services: docker

env:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ COPY ./provisioning/docker/bin/* /usr/local/bin
RUN ansible-playbook /etc/ansible/drupal-vm/provisioning/playbook.yml \
-e "ansible_python_interpreter=/usr/bin/python3" \
# Enable FPM. See https://github.com/geerlingguy/drupal-vm/issues/1366.
&& systemctl enable php7.2-fpm.service
&& systemctl enable php7.4-fpm.service

EXPOSE 80 443 3306 8025

Expand Down
2 changes: 1 addition & 1 deletion default.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ firewall_disable_ufw: true

# PHP Configuration. Currently-supported versions: 7.2, 7.3, 7.4.
# See version-specific notes: http://docs.drupalvm.com/en/latest/configurations/php/
php_version: "7.2"
php_version: "7.4"
php_install_recommends: no
php_memory_limit: "192M"
php_display_errors: "On"
Expand Down
8 changes: 4 additions & 4 deletions docs/configurations/php.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
Drupal VM defaults to PHP 7.2, but you can also install and use 7.3 or 7.4.
Drupal VM defaults to PHP 7.4, but you can also install and use 7.2 or 7.3.

## Ubuntu

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"`.
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"`.

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

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

## RedHat/CentOS 7 or 8

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:
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:

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

## PHP 5.6 EOL

Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started/configure-drupalvm.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ vagrant_box: geerlingguy/centos8
vagrant_hostname: my-custom-site.test
vagrant_machine_name: my_custom_site

php_version: "7.2"
php_version: "7.3"
```
#### 3. vagrant.config.yml
Expand Down
2 changes: 1 addition & 1 deletion docs/other/bigpipe.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ This will disable the `mod_deflate` module for any requests inside that director

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`:

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

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 comments on commit 95c0159

Please sign in to comment.