Fixed php session save permission problem

This commit is contained in:
2021-11-25 14:20:16 +01:00
parent 9b448938bf
commit 39724043fe
13 changed files with 44 additions and 1 deletions

View File

@@ -6,6 +6,8 @@ listen.owner = www-data
listen.group = www-data
php_admin_value[disable_functions] = exec,passthru,shell_exec,system
php_admin_value[error_log] = /var/log/php-fpm/error-SITEname.log
php_value[session.save_path] = /var/lib/php/sessions
; OPCACHE SETTINGS
php_admin_value[opcache.memory_consumption] = 256
php_admin_value[opcache.enable] = 0

View File

@@ -12,6 +12,7 @@ curl --retry 7 --retry-delay 5 -s "$repo"/raw/"$branchtype"/"$branch"/CMS/none/F
sed -i -e 's/PHPver/'$phpver'/g' -e 's/SITEname/'$sitename'/g' -e 's/DOMAINname/'$domain'/' "$phpPoolDir"/$sitename.conf
groupadd "$sitename"
useradd -g "$sitename" "$sitename"
usermod -a -G www-data "$sitename"
systemctl reload $phpFPMService
fi