fix(tools.func): add PHP-FPM systemd override for LXC containers

This commit is contained in:
CanbiZ (MickLesk)
2026-01-28 11:39:48 +01:00
parent 3a5e2f9515
commit 03e660fdef

View File

@@ -4560,6 +4560,14 @@ EOF
if [[ "$PHP_FPM" == "YES" ]]; then
MODULE_LIST+=" php${PHP_VERSION}-fpm"
# Create systemd override for PHP-FPM to fix runtime directory issues in LXC containers
mkdir -p /etc/systemd/system/php${PHP_VERSION}-fpm.service.d/
cat <<EOF >/etc/systemd/system/php${PHP_VERSION}-fpm.service.d/override.conf
[Service]
RuntimeDirectory=php
RuntimeDirectoryMode=0755
EOF
$STD systemctl daemon-reload
fi
# install apache2 with PHP support if requested