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