Fixed php pkg list and SeLinux
This commit is contained in:
@@ -14,5 +14,18 @@ sed -i 's/; max_input_vars = 1000/max_input_vars = 10000/g' "$phpMainConf"
|
||||
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"
|
||||
|
||||
|
||||
if [ "$shortdist" = "cent8" ]; 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
|
||||
echo "mysql.default_socket = '/var/run/mysqld/mysqld.sock'" >> /etc/opt/remi/php${phpver//.}/php.d/60-mysql_sock.ini
|
||||
echo "mysqli.default_socket = '/var/run/mysqld/mysqld.sock'" >> /etc/opt/remi/php${phpver//.}/php.d/60-mysql_sock.ini
|
||||
#Centos php Bin
|
||||
sudo ln -s /usr/bin/php${phpver//.} /usr/bin/php
|
||||
#Centos SeLinux
|
||||
setsebool -P httpd_can_network_connect 1
|
||||
fi
|
||||
|
||||
systemctl start $phpFPMService
|
||||
systemctl enable $phpFPMService
|
||||
systemctl enable $phpFPMService
|
||||
|
||||
|
||||
Reference in New Issue
Block a user