Fixed Fail2Ban for centos
This commit is contained in:
@@ -20,6 +20,7 @@ if [ "$shortdist" = "el8" ]; then
|
||||
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
|
||||
echo "d /run/php 0755 www-data www-data - -" > /usr/lib/tmpfiles.d/php-custom.conf
|
||||
#Centos php Bin
|
||||
sudo ln -s /usr/bin/php${phpver//.} /usr/bin/php
|
||||
#Centos SeLinux
|
||||
|
||||
Reference in New Issue
Block a user