Fixed php session save permission problem
This commit is contained in:
@@ -15,6 +15,10 @@ sed -i 's/upload_max_filesize = 2/upload_max_filesize = 128/g' "$phpMainConf"
|
||||
sed -i 's/post_max_size = 8/post_max_size = 64/g' "$phpMainConf"
|
||||
|
||||
|
||||
#Php session to disk
|
||||
chown www-data:www-data /var/lib/php/sessions
|
||||
chmod 1773 /var/lib/php/sessions
|
||||
|
||||
if [ "$shortdist" = "el8" ]; then
|
||||
# Centos Mysql config
|
||||
echo "pdo_mysql.default_socket = '/var/run/mysqld/mysqld.sock'" >> /etc/opt/remi/php${phpver//.}/php.d/60-mysql_sock.ini
|
||||
|
||||
@@ -12,7 +12,7 @@ elif [ "$shortdist" = "el8" ]; then
|
||||
phpMainConf=/etc/opt/remi/php${phpver//.}/php.ini
|
||||
phpFPMService=php${phpver//.}-php-fpm
|
||||
#Creating Socket directory
|
||||
mkdir -p /var/run/php
|
||||
mkdir -p /var/run/php /var/lib/php/sessions
|
||||
fi
|
||||
|
||||
#Setting php version branch
|
||||
|
||||
Reference in New Issue
Block a user