From 2e8619e5e6982b26b028005700cd4c55c8601e7d Mon Sep 17 00:00:00 2001 From: William Hirigoyen Date: Wed, 8 Nov 2023 12:03:14 +0100 Subject: [PATCH] Add sendmail_path and open_basedir in LXC PHP pool configs --- CHANGELOG.md | 2 ++ scripts/web-add.sh | 3 +++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3fb25fd..0a0592b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,8 @@ The **patch** part changes is incremented if multiple releases happen the same m ### Changed +* Add sendmail_path and open_basedir in LXC PHP pool configs + ### Fixed ### Removed diff --git a/scripts/web-add.sh b/scripts/web-add.sh index ae1a152..f1703e7 100755 --- a/scripts/web-add.sh +++ b/scripts/web-add.sh @@ -23,6 +23,7 @@ LOCAL_SCRIPT="$SCRIPTS_PATH/web-add.local.sh" PRE_LOCAL_SCRIPT="$SCRIPTS_PATH/web-add.pre-local.sh" TPL_AWSTATS="$SCRIPTS_PATH/awstats.XXX.conf" SSH_GROUP="evolinux-ssh" +HOST="$(hostname -s)" # Set to nginx if you use nginx and not apache WEB_SERVER="apache" @@ -456,6 +457,8 @@ pm.max_children = 10 pm.process_idle_timeout = 10s php_admin_value[error_log] = /home/${in_login}/log/php.log +php_admin_value[sendmail_path] = "/usr/sbin/sendmail -t -i -f www-${in_login}@${HOST}" +php_admin_value[open_basedir] = "/usr/share/php:/home/${in_login}:/tmp" EOT step_ok "Création du pool FPM ${php_version}" done