Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions wsl/os/almalinux9/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@ Execute the following command:
sudo dnf module switch-to php:remi-{major}.{minor} -y
```

where `{major}.{minor}` is one of the supported PHP versions: `8.3`, `8.2`, `8.1`, `8.0` and `7.4`.
where `{major}.{minor}` is one of the supported PHP versions: `8.4`, `8.3`, `8.2` and `8.1`.

Additionally, our setup includes predefined aliases for executing the above command.
The aliases are the following:

- `php74`: switch to PHP 7.4
- `php80`: switch to PHP 8.0
- `php81`: switch to PHP 8.1
- `php82`: switch to PHP 8.2
- `php83`: switch to PHP 8.3
- `php84`: switch to PHP 8.4

After switching to a different PHP version, test with the following command:

Expand Down
3 changes: 1 addition & 2 deletions wsl/os/almalinux9/roles/system/templates/bash_profile.j2
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# PHP version switcher commands
alias php74="sudo dnf module switch-to php:remi-7.4 -y"
alias php80="sudo dnf module switch-to php:remi-8.0 -y"
alias php81="sudo dnf module switch-to php:remi-8.1 -y"
alias php82="sudo dnf module switch-to php:remi-8.2 -y"
alias php83="sudo dnf module switch-to php:remi-8.3 -y"
alias php84="sudo dnf module switch-to php:remi-8.4 -y"

# Node.js version switcher commands
alias node18="sudo dnf remove nodejs -y && curl -fsSL https://rpm.nodesource.com/setup_18.x | sudo bash - && sudo dnf install nodejs -y"
Expand Down
17 changes: 0 additions & 17 deletions wsl/os/ubuntu20/roles/php/tasks/php74.yml

This file was deleted.

20 changes: 20 additions & 0 deletions wsl/os/ubuntu20/roles/php/tasks/php84.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
- name: Add ppa:ondrej/php repository
apt_repository:
repo: ppa:ondrej/php
update_cache: true
- name: Install PHP 8.4
apt:
name:
- php8.4
- php8.4-common
- php8.4-bz2
- php8.4-cli
- php8.4-curl
- php8.4-intl
- php8.4-mbstring
- php8.4-mysql
- php8.4-xml
- php8.4-zip
- libapache2-mod-php8.4
state: present
2 changes: 1 addition & 1 deletion wsl/os/ubuntu20/roles/php/vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
php_info_filename: info.php
php_versions:
- "74"
- "81"
- "82"
- "84"
- "83"