1 default[:php][:version] = if platform?("debian")
2 case node[:platform_version].to_i
4 "8.4" # PHP version for Debian 13 Trixie
6 "8.2" # PHP version for Debian 12 Bookworm
8 elsif platform?("ubuntu")
9 case node[:lsb][:release].to_f
11 "8.3" # PHP version for Ubuntu 24.04
13 "8.1" # PHP version for Ubuntu 22.04
15 "7.4" # PHP version for Ubuntu 20.04
19 default[:php][:fpm][:options] = {}