feat(ansible/php): Met à jour l'installation et configuration pour PHP 8.4.
```
This commit is contained in:
Serreau Jovann
2026-01-27 08:49:32 +01:00
parent a067785bd7
commit 6466947c89
3 changed files with 21 additions and 19 deletions

View File

@@ -44,30 +44,30 @@
- name: Installation de PHP 8.3 et PHP 8.3-FPM avec les dépendances - name: Installation de PHP 8.3 et PHP 8.3-FPM avec les dépendances
ansible.builtin.apt: ansible.builtin.apt:
name: name:
- php8.3 - php8.4
- php8.3-fpm - php8.4-fpm
- php8.3-cli - php8.4-cli
- php8.3-common - php8.4-common
- php8.3-mysql - php8.4-mysql
- php8.3-pgsql - php8.4-pgsql
- php8.3-xml - php8.4-xml
- php8.3-mbstring - php8.4-mbstring
- php8.3-zip - php8.4-zip
- php8.3-intl - php8.4-intl
- php8.3-gd - php8.4-gd
- php8.3-curl - php8.4-curl
- php8.3-pdo - php8.4-pdo
- php8.3-opcache - php8.4-opcache
- php8.3-bcmath - php8.4-bcmath
- php8.3-redis - php8.4-redis
- php8.3-imagick - php8.4-imagick
- ffmpeg - ffmpeg
state: present state: present
when: ansible_os_family == "Debian" when: ansible_os_family == "Debian"
- name: Démarrage et activation du service PHP 8.3 FPM - name: Démarrage et activation du service PHP 8.3 FPM
ansible.builtin.systemd: ansible.builtin.systemd:
name: php8.3-fpm name: php8.4-fpm
state: started state: started
enabled: yes enabled: yes
when: ansible_os_family == "Debian" when: ansible_os_family == "Debian"

View File

@@ -40,7 +40,7 @@ intranet.ludikevent.fr, signature.ludikevent.fr, reservation.ludikevent.fr {
} }
# --- PHP FASTCGI --- # --- PHP FASTCGI ---
# Ici, Caddy transmet automatiquement tous les headers définis ci-dessus au socket PHP # Ici, Caddy transmet automatiquement tous les headers définis ci-dessus au socket PHP
php_fastcgi unix//run/php/php8.3-fpm.sock { php_fastcgi unix//run/php/php8.4-fpm.sock {
read_timeout 300s read_timeout 300s
write_timeout 300s write_timeout 300s
dial_timeout 100s dial_timeout 100s

View File

@@ -4,6 +4,7 @@ ORANGE='\033[0;33m'
GREEN='\033[0;32m' GREEN='\033[0;32m'
CYAN='\033[0;36m' CYAN='\033[0;36m'
RESET='\033[0m' # Reset color to default RESET='\033[0m' # Reset color to default
sudo update-alternatives --set php /usr/bin/php8.4
echo "${CYAN}####################################${RESET}" echo "${CYAN}####################################${RESET}"
echo "${CYAN}# LUDIKEVENT INTRANET UPDATE START #${RESET}" echo "${CYAN}# LUDIKEVENT INTRANET UPDATE START #${RESET}"
@@ -12,3 +13,4 @@ ansible-playbook -i ansible/hosts.ini ansible/playbook.yml
echo "${CYAN}##############${RESET}" echo "${CYAN}##############${RESET}"
echo "${CYAN}# END UPDATE #${RESET}" echo "${CYAN}# END UPDATE #${RESET}"
echo "${CYAN}##############${RESET}" echo "${CYAN}##############${RESET}"
sudo update-alternatives --set php /usr/bin/php8.3