Skip to content

Commit 42acb6c

Browse files
authored
Merge pull request #43 from dotkernel/issue-42
Issue #42: Added PHP 8.4 to Ansible recipes
2 parents 1b021b4 + 20ae98e commit 42acb6c

File tree

5 files changed

+24
-23
lines changed

5 files changed

+24
-23
lines changed

wsl/os/almalinux9/FAQ.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,15 @@ Execute the following command:
88
sudo dnf module switch-to php:remi-{major}.{minor} -y
99
```
1010

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

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

16-
- `php74`: switch to PHP 7.4
17-
- `php80`: switch to PHP 8.0
1816
- `php81`: switch to PHP 8.1
1917
- `php82`: switch to PHP 8.2
2018
- `php83`: switch to PHP 8.3
19+
- `php84`: switch to PHP 8.4
2120

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

wsl/os/almalinux9/roles/system/templates/bash_profile.j2

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# PHP version switcher commands
2-
alias php74="sudo dnf module switch-to php:remi-7.4 -y"
3-
alias php80="sudo dnf module switch-to php:remi-8.0 -y"
42
alias php81="sudo dnf module switch-to php:remi-8.1 -y"
53
alias php82="sudo dnf module switch-to php:remi-8.2 -y"
64
alias php83="sudo dnf module switch-to php:remi-8.3 -y"
5+
alias php84="sudo dnf module switch-to php:remi-8.4 -y"
76

87
# Node.js version switcher commands
98
alias node18="sudo dnf remove nodejs -y && curl -fsSL https://rpm.nodesource.com/setup_18.x | sudo bash - && sudo dnf install nodejs -y"

wsl/os/ubuntu20/roles/php/tasks/php74.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
- name: Add ppa:ondrej/php repository
3+
apt_repository:
4+
repo: ppa:ondrej/php
5+
update_cache: true
6+
- name: Install PHP 8.4
7+
apt:
8+
name:
9+
- php8.4
10+
- php8.4-common
11+
- php8.4-bz2
12+
- php8.4-cli
13+
- php8.4-curl
14+
- php8.4-intl
15+
- php8.4-mbstring
16+
- php8.4-mysql
17+
- php8.4-xml
18+
- php8.4-zip
19+
- libapache2-mod-php8.4
20+
state: present
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
php_info_filename: info.php
33
php_versions:
4-
- "74"
54
- "81"
65
- "82"
6+
- "84"
77
- "83"

0 commit comments

Comments
 (0)