Everytime we install an update for php package (CentOS 7) the permissions on my /var/lib/session folder is reverted to root:apache with 600 permissions. As we enable yum cron for auto patching this is quiet anoying an breakes our nextcloud.
I would suggest to use a custom session directory in the php config, so the permissions are not altered by the update anymore.
One could add this config to the php-fpm file and add the directories to the file system with the needed permissions for nginx
; Set session path to a directory owned by process user
php_value[session.save_handler] = files
php_value[session.save_path] = /var/lib/php/nextcloud/session
php_value[soap.wsdl_cache_dir] = /var/lib/php/nextcloud/wsdlcache
Everytime we install an update for php package (CentOS 7) the permissions on my /var/lib/session folder is reverted to root:apache with 600 permissions. As we enable yum cron for auto patching this is quiet anoying an breakes our nextcloud.
I would suggest to use a custom session directory in the php config, so the permissions are not altered by the update anymore.
One could add this config to the php-fpm file and add the directories to the file system with the needed permissions for nginx
; Set session path to a directory owned by process user php_value[session.save_handler] = files php_value[session.save_path] = /var/lib/php/nextcloud/session php_value[soap.wsdl_cache_dir] = /var/lib/php/nextcloud/wsdlcache