Skip to content

Commit 21ca2ba

Browse files
committed
ensure php sessions dir exists and is writable by www-data
1 parent 6687f5c commit 21ca2ba

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

conf/php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,7 @@ ${CGI_INI}=Configuration for scripts run via CGI${TAB}\
6060
${CLI_INI}=Configuration for command-line scripts
6161
EOF
6262
fi
63+
64+
# ensure php session dir exists and is writeable by the webserver user
65+
mkdir -p /var/lib/php/sessions
66+
chown -R www-data:www-data /var/lib/php/sessions

0 commit comments

Comments
 (0)